hardware counter allocation More...
#include <stddef.h>#include "op_cpu_type.h"

Go to the source code of this file.
Functions | |
| size_t * | map_event_to_counter (struct op_event const *pev[], int nr_events, op_cpu cpu_type) |
hardware counter allocation
You can have silliness here.
| pev | array of selected event we want to bind to counter | |
| nr_events | size of pev array | |
| cpu_type | cpu type |
Try to calculate a binding between passed event in pev and counter number. The binding is returned in a size_t * where returned ptr[i] is the counter number bound to pev[i]
References op_get_cpu_type(), and op_get_nr_counters().
1.6.1