#include <alarm.H>
Inherited by INSTLIB::ALARM_ADDRESS_COUNT, and INSTLIB::ALARM_ICOUNT.
Public Member Functions | |
| ARMED_COUNT (UINT64 max_threads, THREADID tid) | |
| INT64 | Count (THREADID tid=0) const |
| BOOL | CounterAdvance (THREADID tid, INT64 ninst=1) |
| BOOL | Active () const |
| VOID | ActivateCommon () |
| void | Set (INT64 orig_count, BOOL rearm, BOOL always_armed, THREADID tid) |
Protected Member Functions | |
| BOOL | Armed (THREADID tid=0) const |
| VOID | SetArmed (THREADID tid=0) |
| VOID | SetCount (THREADID tid, INT64 count) |
| VOID | ResetCount (THREADID tid) |
| VOID | Disarm (THREADID tid=0) |
Protected Attributes | |
| INT64 | _orig_count |
| INT64 * | _count |
| BOOL * | _armed |
| BOOL | _active |
| BOOL | _rearm |
| BOOL | _always_armed |
| UINT64 | _maxThreads |
| THREADID | _tid |
|
|
Set the alarm to be active. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Advance the counter
|
|
|
Set the armed value. If ALL_THREADS is supplied as a TID, this is not thread safe; Call before PIN_StartProgram. |
|
||||||||||||||||||||
|
Set several common fields |
|
|
Set the armed value. If ALL_THREADS is supplied as a TID, this is not thread safe; Call before PIN_StartProgram. |
|
||||||||||||
|
Set the count value. If ALL_THREADS is supplied as a TID, this is not thread safe; Call before PIN_StartProgram. |
1.4.6