op_alloc_counter.c File Reference

hardware counter allocation More...

#include <stdlib.h>
#include <ctype.h>
#include <dirent.h>
#include "op_events.h"
#include "op_libiberty.h"
Include dependency graph for op_alloc_counter.c:


struct  counter_arc_head
struct  counter_arc


size_t * map_event_to_counter (struct op_event const *pev[], int nr_events, op_cpu cpu_type)

Detailed Description

hardware counter allocation

You can have silliness here.

Copyright 2002 OProfile authors
Read the file COPYING
John Levon
Philippe Elie

Function Documentation

size_t* map_event_to_counter ( struct op_event const *  pev[],
int  nr_events,
op_cpu  cpu_type 
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().

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1