2 #define __PERF_MMAP_H 1 4 #include <linux/compiler.h> 5 #include <linux/refcount.h> 6 #include <linux/types.h> 7 #include <asm/barrier.h> 73 struct perf_event_mmap_page *pc = mm->
base;
74 u64 head = READ_ONCE(pc->data_head);
81 struct perf_event_mmap_page *pc = md->
base;
95 int push(
void *to,
void *buf,
size_t size));
char event_copy [PERF_SAMPLE_MAX_SIZE] __aligned(8)
void perf_mmap__read_done(struct perf_mmap *map)
union perf_event * perf_mmap__read_event(struct perf_mmap *map)
size_t perf_mmap__mmap_len(struct perf_mmap *map)
static void perf_mmap__write_tail(struct perf_mmap *md, u64 tail)
void perf_mmap__consume(struct perf_mmap *map)
void perf_mmap__munmap(struct perf_mmap *map)
void perf_mmap__put(struct perf_mmap *map)
int perf_mmap__read_init(struct perf_mmap *md)
int perf_mmap__push(struct perf_mmap *md, void *to, int push(void *to, void *buf, size_t size))
#define PERF_SAMPLE_MAX_SIZE
int perf_mmap__mmap(struct perf_mmap *map, struct mmap_params *mp, int fd)
void perf_mmap__get(struct perf_mmap *map)
static u64 perf_mmap__read_head(struct perf_mmap *mm)
union perf_event * perf_mmap__read_forward(struct perf_mmap *map)