5 #include <linux/list.h>
14 * PERF_SAMPLE_IP | PERF_SAMPLE_TID | *
17 struct perf_event_header header;
20 unsigned char __more_data[];
24 struct perf_event_header header;
29 char filename[PATH_MAX];
33 struct perf_event_header header;
39 struct perf_event_header header;
46 struct perf_event_header header;
52 * PERF_FORMAT_ENABLED | PERF_FORMAT_RUNNING | PERF_FORMAT_ID
55 struct perf_event_header header;
64 struct perf_event_header header;
69 typedef union event_union {
70 struct perf_event_header header;
72 struct mmap_event mmap;
73 struct comm_event comm;
74 struct fork_event fork;
75 struct lost_event lost;
76 struct read_event read;
77 struct sample_event sample;
81 struct list_head node;
85 u64 (*map_ip)(struct map *, u64);
89 static inline u64 map__map_ip(struct map *map, u64 ip)
91 return ip - map->start + map->pgoff;
94 static inline u64 vdso__map_ip(struct map *map __used, u64 ip)
99 struct map *map__new(struct mmap_event *event, char *cwd, int cwdlen);
100 struct map *map__clone(struct map *self);
101 int map__overlap(struct map *l, struct map *r);
102 size_t map__fprintf(struct map *self, FILE *fp);