|
Public Types |
enum | { Event = 1,
Result = 2
} |
Static Public Member Functions |
static Tracebuffer_status
*const | status () |
static void | clear_tbuf () |
| Clear tracebuffer.
|
static Tb_entry * | new_entry () |
| Return pointer to new tracebuffer entry.
|
static void | commit_entry () |
| Commit tracebuffer entry.
|
static Mword | unfiltered_entries () |
| Return number of entries currently allocated in tracebuffer.
|
static Mword | entries () |
static Mword | max_entries () |
| Return maximum number of entries in tracebuffer.
|
static void | max_entries (Mword num) |
| Set maximum number of entries in tracebuffer.
|
static int | event_valid (Mword idx) |
| Check if event is valid.
|
static Tb_entry * | unfiltered_lookup (Mword idx) |
| Return pointer to tracebuffer event.
|
static Tb_entry * | lookup (Mword look_idx) |
| Return pointer to tracebuffer event.
|
static Mword | unfiltered_idx (Tb_entry *e) |
static Mword | idx (Tb_entry *e) |
| Tb_entry => tracebuffer index.
|
static Tb_entry * | search (Mword nr) |
| Event number => Tb_entry.
|
static Mword | search_to_idx (Mword nr) |
| Event number => tracebuffer index.
|
static int | event (Mword idx, Mword *number, Unsigned32 *kclock, Unsigned64 *tsc, Unsigned32 *pmc1, Unsigned32 *pmc2) |
| Return some information about log event.
|
static Tb_entry * | ipc_pair_event (Mword idx, Unsigned8 *type) |
| Search the paired event to an ipc event or ipc result event.
|
static Tb_entry * | pf_pair_event (Mword idx, Unsigned8 *type) |
| Search the paired event to a pagefault / result event.
|
static int | diff_tsc (Mword idx, Signed64 *delta) |
| Get difference CPU cycles between event idx and event idx+1.
|
static int | diff_pmc (Mword idx, Mword nr, Signed32 *delta) |
| Get difference perfcnt cycles between event idx and event idx+1.
|
static void | enable_filter () |
static void | disable_filter () |
Static Public Attributes |
static void(* | direct_log_entry )(Tb_entry *, const char *) = &direct_log_dummy |
Static Protected Member Functions |
static Tb_entry_fit *const | buffer () |
Static Protected Attributes |
static Tb_entry_fit * | tbuf_act |
static Tb_entry_fit * | tbuf_max |
static Mword | _entries |
static Mword | _max_entries |
static Mword | _filter_enabled |
static Mword | number |
static Mword | count_mask1 |
static Mword | count_mask2 |
static Observer * | observer |