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;
63 typedef union event_union {
64 struct perf_event_header header;
66 struct mmap_event mmap;
67 struct comm_event comm;
68 struct fork_event fork;
69 struct lost_event lost;
70 struct read_event read;
74 struct list_head node;
78 u64 (*map_ip)(struct map *, u64);
82 static inline u64 map__map_ip(struct map *map, u64 ip)
84 return ip - map->start + map->pgoff;
87 static inline u64 vdso__map_ip(struct map *map __used, u64 ip)
92 struct map *map__new(struct mmap_event *event, char *cwd, int cwdlen);
93 struct map *map__clone(struct map *self);
94 int map__overlap(struct map *l, struct map *r);
95 size_t map__fprintf(struct map *self, FILE *fp);