HPCToolkit
perfmon-util.h File Reference
#include <linux/perf_event.h>
#include "perf-util.h"
Include dependency graph for perfmon-util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int pfmu_init ()
 
int pfmu_showEventList ()
 
int pfmu_isSupported (const char *eventname)
 
int pfmu_getEventType (const char *eventname, u64 *code, u64 *type)
 
int pfmu_getEventAttribute (const char *eventname, struct perf_event_attr *event_attr)
 
void pfmu_fini ()
 

Function Documentation

◆ pfmu_fini()

void pfmu_fini ( )

Definition at line 109 of file perfmon-util-dummy.c.

◆ pfmu_getEventAttribute()

int pfmu_getEventAttribute ( const char *  eventname,
struct perf_event_attr *  event_attr 
)

get the complete perf event attribute for a given pmu

Returns
1 if successful -1 otherwise

Definition at line 69 of file perfmon-util-dummy.c.

Here is the caller graph for this function:

◆ pfmu_getEventType()

int pfmu_getEventType ( const char *  eventname,
u64 code,
u64 type 
)

Definition at line 78 of file perfmon-util-dummy.c.

Here is the caller graph for this function:

◆ pfmu_init()

int pfmu_init ( )

Initializing perfmon return 1 if the initialization passes successfully

Definition at line 102 of file perfmon-util-dummy.c.

Here is the caller graph for this function:

◆ pfmu_isSupported()

int pfmu_isSupported ( const char *  eventname)

Definition at line 91 of file perfmon-util-dummy.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pfmu_showEventList()

int pfmu_showEventList ( )

Definition at line 119 of file perfmon-util-dummy.c.

Here is the call graph for this function:
Here is the caller graph for this function: