HPCToolkit
|
Go to the source code of this file.
Macros | |
#define | BUFFER_FRONT(current_perf_mmap) ((char *) current_perf_mmap + pagesize) |
#define | BUFFER_SIZE (tail_mask + 1) |
#define | BUFFER_OFFSET(tail) ((tail) & tail_mask) |
Typedefs | |
typedef struct perf_event_header | pe_header_t |
Functions | |
void | perf_mmap_init () |
pe_mmap_t * | set_mmap (int perf_fd) |
void | perf_unmmap (pe_mmap_t *mmap) |
int | read_perf_buffer (pe_mmap_t *current_perf_mmap, struct perf_event_attr *attr, perf_mmap_data_t *mmap_info) |
#define BUFFER_FRONT | ( | current_perf_mmap | ) | ((char *) current_perf_mmap + pagesize) |
Definition at line 65 of file perf_mmap.h.
#define BUFFER_OFFSET | ( | tail | ) | ((tail) & tail_mask) |
Definition at line 67 of file perf_mmap.h.
#define BUFFER_SIZE (tail_mask + 1) |
Definition at line 66 of file perf_mmap.h.
typedef struct perf_event_header pe_header_t |
Definition at line 73 of file perf_mmap.h.
void perf_mmap_init | ( | ) |
initialize perf_mmap. caller needs to call this in the beginning before calling any API.
Definition at line 537 of file perf_mmap.c.
void perf_unmmap | ( | pe_mmap_t * | mmap | ) |
int read_perf_buffer | ( | pe_mmap_t * | current_perf_mmap, |
struct perf_event_attr * | attr, | ||
perf_mmap_data_t * | mmap_info | ||
) |
Definition at line 430 of file perf_mmap.c.
pe_mmap_t* set_mmap | ( | int | perf_fd | ) |
Definition at line 498 of file perf_mmap.c.