HPCToolkit
perf_skid.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PERF_EVENT_AUTODETECT_SKID   4
 
#define PERF_EVENT_SKID_ZERO_REQUIRED   3
 
#define PERF_EVENT_SKID_ZERO_REQUESTED   2
 
#define PERF_EVENT_SKID_CONSTANT   1
 
#define PERF_EVENT_SKID_ARBITRARY   0
 
#define PERF_EVENT_SKID_ERROR   -1
 

Functions

int perf_skid_parse_event (const char *event_string, char **event_string_without_skidmarks)
 
int perf_skid_set_max_precise_ip (struct perf_event_attr *attr)
 
u64 perf_skid_get_precise_ip (struct perf_event_attr *attr)
 

Macro Definition Documentation

◆ PERF_EVENT_AUTODETECT_SKID

#define PERF_EVENT_AUTODETECT_SKID   4

Definition at line 49 of file perf_skid.h.

◆ PERF_EVENT_SKID_ARBITRARY

#define PERF_EVENT_SKID_ARBITRARY   0

Definition at line 53 of file perf_skid.h.

◆ PERF_EVENT_SKID_CONSTANT

#define PERF_EVENT_SKID_CONSTANT   1

Definition at line 52 of file perf_skid.h.

◆ PERF_EVENT_SKID_ERROR

#define PERF_EVENT_SKID_ERROR   -1

Definition at line 54 of file perf_skid.h.

◆ PERF_EVENT_SKID_ZERO_REQUESTED

#define PERF_EVENT_SKID_ZERO_REQUESTED   2

Definition at line 51 of file perf_skid.h.

◆ PERF_EVENT_SKID_ZERO_REQUIRED

#define PERF_EVENT_SKID_ZERO_REQUIRED   3

Definition at line 50 of file perf_skid.h.

Function Documentation

◆ perf_skid_get_precise_ip()

u64 perf_skid_get_precise_ip ( struct perf_event_attr *  attr)

Definition at line 207 of file perf_skid.c.

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

◆ perf_skid_parse_event()

int perf_skid_parse_event ( const char *  event_string,
char **  event_string_without_skidmarks 
)

Definition at line 243 of file perf_skid.c.

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

◆ perf_skid_set_max_precise_ip()

int perf_skid_set_max_precise_ip ( struct perf_event_attr *  attr)

set precise_ip attribute to the max value

TODO: this method only works on some platforms, and not general enough on all the platforms.

Definition at line 176 of file perf_skid.c.

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