Barrelfish
|
IA32 performance monitoring. More...
Functions | |
errval_t | perfmon_setup (dispatcher_handle_t handle, perfmon_counter_t counter, perfmon_event_t evt, perfmon_mask_t umask, bool kernel) |
Setup use of performance counter. More... | |
IA32 performance monitoring.
errval_t perfmon_setup | ( | dispatcher_handle_t | handle, |
perfmon_counter_t | counter, | ||
perfmon_event_t | evt, | ||
perfmon_mask_t | umask, | ||
bool | kernel | ||
) |
Setup use of performance counter.
handle | The handle to the dispatcher |
counter | Which counter to use. |
evt | The event to use |
umask | The mask on the event |
kernel | Is it kernel or user readable |
Currently this only works for AMD machines and it has 4 counters (0-3).