op_alloc_counter.h File Reference

#include <stddef.h>
#include "op_cpu_type.h"
Include dependency graph for op_alloc_counter.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

hardware counter allocation

You can have silliness here.

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

Definition in file op_alloc_counter.h.


Function Documentation

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

Definition at line 202 of file op_alloc_counter.c.

References allocate_counter(), build_counter_arc(), delete_counter_arc(), op_get_counter_mask(), op_get_cpu_type(), and op_get_nr_counters().

Referenced by oprof_start::alloc_selected_events(), do_test(), and resolve_events().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1