- Main Page
- Modules
- Classes

- Search for |

# ALARM_ADDRESS_COUNT
[ALARM]

## Classes

class | INSTLIB::ALARM_ADDRESS_COUNT

## Functions

ADDRINT | INSTLIB::ALARM_ADDRESS_COUNT::Address () const
VOID | INSTLIB::ALARM_ADDRESS_COUNT::SetAlarm (UINT64 count, ALARM_HANDLER handler, VOID *val, THREADID tid=0, BOOL rearm=FALSE, BOOL always_armed=FALSE)
VOID | INSTLIB::ALARM_ADDRESS_COUNT::Activate (ADDRINT address)

## Detailed Description

Signal an alarm when the specified address has been executed n times in each thread.

## Function Documentation

VOID INSTLIB::ALARM_ADDRESS_COUNT::Activate | ( | ADDRINT | address | ) | `[inline, inherited]`

| This function initializes an alarm and must be called before PIN_StartProgram. It does turn the alarm on. Use SetAlarm.

Parameters:

  | address | Address for alarm

ADDRINT INSTLIB::ALARM_ADDRESS_COUNT::Address | ( |  | ) | const`[inline, inherited]`

Returns:
  Code address for alarm

VOID INSTLIB::ALARM_ADDRESS_COUNT::SetAlarm | ( | UINT64 | count,
|  | ALARM_HANDLER | handler,
|  | VOID * | val,
|  | THREADID | tid = `0`,
|  | BOOL | rearm = `FALSE`,
|  | BOOL | always_armed = `FALSE`
| ) | `[inline, inherited]`

| Turn on an alarm. You should call Activate for this alarm before PIN_StartProgram

Parameters:

  | count | Number of times to execute this address before alarm fires
  | handler | Call this function when alarm fires
  | val | Pass this value to the handler when the alarm fires