aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index c2e62be62798..6b5be56a8271 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -82,6 +82,7 @@ struct map {
82 u64 end; 82 u64 end;
83 u64 pgoff; 83 u64 pgoff;
84 u64 (*map_ip)(struct map *, u64); 84 u64 (*map_ip)(struct map *, u64);
85 u64 (*unmap_ip)(struct map *, u64);
85 struct dso *dso; 86 struct dso *dso;
86}; 87};
87 88
@@ -90,7 +91,12 @@ static inline u64 map__map_ip(struct map *map, u64 ip)
90 return ip - map->start + map->pgoff; 91 return ip - map->start + map->pgoff;
91} 92}
92 93
93static inline u64 vdso__map_ip(struct map *map __used, u64 ip) 94static inline u64 map__unmap_ip(struct map *map, u64 ip)
95{
96 return ip + map->start - map->pgoff;
97}
98
99static inline u64 identity__map_ip(struct map *map __used, u64 ip)
94{ 100{
95 return ip; 101 return ip;
96} 102}