49 #ifndef __PERF_MMAP_H__ 50 #define __PERF_MMAP_H__ 56 #include <linux/perf_event.h> 65 #define BUFFER_FRONT(current_perf_mmap) ((char *) current_perf_mmap + pagesize) 66 #define BUFFER_SIZE (tail_mask + 1) 67 #define BUFFER_OFFSET(tail) ((tail) & tail_mask) pe_mmap_t * set_mmap(int perf_fd)
int read_perf_buffer(pe_mmap_t *current_perf_mmap, struct perf_event_attr *attr, perf_mmap_data_t *mmap_info)
void perf_unmmap(pe_mmap_t *mmap)
struct perf_event_mmap_page pe_mmap_t
struct perf_event_header pe_header_t