summaryrefslogtreecommitdiff
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-04-25 18:39:22 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-04-26 19:47:12 +0300
commitabe5449d2de6ccc58444451b6fed130100892097 (patch)
treee4464b0abcdcd2654c0394ea49f3372b6ff0d462 /tools/perf/util/map.h
parentd05b861e6da27ccb0d1b882f240890b0ed40adff (diff)
downloadlinux-abe5449d2de6ccc58444451b6fed130100892097.tar.xz
perf map: Shorten map_groups__find() signature
Removing the map_type, that is going away. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-18iiiw25r75xn7zlppjldk48@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index 8ff75be0a965..b4bcf569a131 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -214,12 +214,17 @@ static inline void map_groups__remove(struct map_groups *mg, struct map *map)
maps__remove(&mg->maps[map->type], map);
}
-static inline struct map *map_groups__find(struct map_groups *mg,
- enum map_type type, u64 addr)
+static inline struct map *__map_groups__find(struct map_groups *mg,
+ enum map_type type, u64 addr)
{
return maps__find(&mg->maps[type], addr);
}
+static inline struct map *map_groups__find(struct map_groups *mg, u64 addr)
+{
+ return __map_groups__find(mg, MAP__FUNCTION, addr);
+}
+
static inline struct map *map_groups__first(struct map_groups *mg,
enum map_type type)
{