Barrelfish
Functions
perfmon.c File Reference

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...
 

Detailed Description

IA32 performance monitoring.

Function Documentation

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.

Parameters
handleThe handle to the dispatcher
counterWhich counter to use.
evtThe event to use
umaskThe mask on the event
kernelIs it kernel or user readable

Currently this only works for AMD machines and it has 4 counters (0-3).