perf symbols: Do lazy symtab loading for the kernel & modules too
Just like we do with the other DSOs. This also simplifies the kernel_maps setup process, now all that the tools need to do is to call kernel_maps__init and the maps for the modules and kernel will be created, then, later, when kernel_maps__find_symbol() is used, it will also call maps__find_symbol that already checks if the symtab was loaded, loading it if needed. Now if one does 'perf top --hide_kernel_symbols' we won't pay the price of loading the (many) symbols in /proc/kallsyms or vmlinux. Signed-off-by:Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1258757489-5978-4-git-send-email-acme@infradead.org> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- tools/perf/builtin-annotate.c 4 additions, 4 deletionstools/perf/builtin-annotate.c
- tools/perf/builtin-report.c 3 additions, 3 deletionstools/perf/builtin-report.c
- tools/perf/builtin-top.c 7 additions, 28 deletionstools/perf/builtin-top.c
- tools/perf/util/data_map.c 2 additions, 2 deletionstools/perf/util/data_map.c
- tools/perf/util/event.h 3 additions, 0 deletionstools/perf/util/event.h
- tools/perf/util/header.c 3 additions, 3 deletionstools/perf/util/header.c
- tools/perf/util/map.c 23 additions, 0 deletionstools/perf/util/map.c
- tools/perf/util/symbol.c 59 additions, 114 deletionstools/perf/util/symbol.c
- tools/perf/util/symbol.h 3 additions, 6 deletionstools/perf/util/symbol.h
- tools/perf/util/thread.h 2 additions, 1 deletiontools/perf/util/thread.h
Loading
Please register or sign in to comment