diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2009-11-27 18:29:15 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-11-27 19:21:58 +0000 |
| commit | 605ca4ba017455d39ac6991c58eb1e80fb8af48d (patch) | |
| tree | c037d9c0cecf549bafa131e9520a28c9d2d9dee0 /tools/perf/builtin-annotate.c | |
| parent | perf symbols: Split the dsos list into kernel and user parts (diff) | |
| download | kernel-605ca4ba017455d39ac6991c58eb1e80fb8af48d.tar.gz kernel-605ca4ba017455d39ac6991c58eb1e80fb8af48d.zip | |
perf symbols: Unexport kernel_map__functions
perf annotate was the only user, and it doesn't really need it.
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 377cb7c9bdda..0846c8a155ed 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -169,7 +169,6 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) level = '.'; map = thread__find_map(thread, ip); if (map != NULL) { -got_map: ip = map->map_ip(map, ip); sym = map__find_function(map, ip, symbol_filter); } else { @@ -183,10 +182,9 @@ got_map: * the "[vdso]" dso, but for now lets use the old * trick of looking in the whole kernel symbol list. */ - if ((long long)ip < 0) { - map = kernel_map__functions; - goto got_map; - } + if ((long long)ip < 0) + sym = kernel_maps__find_function(ip, &map, + symbol_filter); } dump_printf(" ...... dso: %s\n", map ? map->dso->long_name : "<not found>"); |
