diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-25 16:28:55 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-26 12:47:15 -0400 |
commit | dce0478b5fa05147a69dc6dd6cfcaac2f0e0eb2f (patch) | |
tree | 5d79b042fb948164fd6e5c901238aae4081c41bc /tools/perf/util/vdso.c | |
parent | a2f1c160fec491de394dbec930b192da98618803 (diff) |
perf map: Remove enum_type arg to map_groups__first()
Only the symbol core needs to use that, so provide a __ variant for that
case, that will end up removed when we ditch the MAP__ split.
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-x29k9e1ohastsoqbilp3mguh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/vdso.c')
-rw-r--r-- | tools/perf/util/vdso.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/vdso.c b/tools/perf/util/vdso.c index 0acb1ec0e2f0..741af209b19d 100644 --- a/tools/perf/util/vdso.c +++ b/tools/perf/util/vdso.c | |||
@@ -139,12 +139,10 @@ static enum dso_type machine__thread_dso_type(struct machine *machine, | |||
139 | struct thread *thread) | 139 | struct thread *thread) |
140 | { | 140 | { |
141 | enum dso_type dso_type = DSO__TYPE_UNKNOWN; | 141 | enum dso_type dso_type = DSO__TYPE_UNKNOWN; |
142 | struct map *map; | 142 | struct map *map = map_groups__first(thread->mg); |
143 | struct dso *dso; | ||
144 | 143 | ||
145 | map = map_groups__first(thread->mg, MAP__FUNCTION); | ||
146 | for (; map ; map = map_groups__next(map)) { | 144 | for (; map ; map = map_groups__next(map)) { |
147 | dso = map->dso; | 145 | struct dso *dso = map->dso; |
148 | if (!dso || dso->long_name[0] != '/') | 146 | if (!dso || dso->long_name[0] != '/') |
149 | continue; | 147 | continue; |
150 | dso_type = dso__type(dso, machine); | 148 | dso_type = dso__type(dso, machine); |