aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-probe.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-04 13:19:29 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:10 -0500
commitde1764892a61a3ed212973cc028c80dd083179dd (patch)
tree677ee82901a5c1e5ea34d8218e5fa859641de7dc /tools/perf/builtin-probe.c
parentf92cb24c78a7c853435e46a20d1bd5c894378132 (diff)
perf session: Keep pointers to the vmlinux maps
So that tools such as 'perf probe' don't have to lookup '[kernel.kallsyms]' but instead access them directly after perf_session__create_kernel_maps or map_groups__create_kernel_maps. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Masami Hiramatsu <mhiramat@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: <1262629169-22797-4-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-probe.c')
-rw-r--r--tools/perf/builtin-probe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c
index c1e6774fd3ed..ffdd3fe87b4a 100644
--- a/tools/perf/builtin-probe.c
+++ b/tools/perf/builtin-probe.c
@@ -235,9 +235,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __used)
235 session.psession = perf_session__new(NULL, O_WRONLY, false); 235 session.psession = perf_session__new(NULL, O_WRONLY, false);
236 if (session.psession == NULL) 236 if (session.psession == NULL)
237 die("Failed to init perf_session."); 237 die("Failed to init perf_session.");
238 session.kmap = map_groups__find_by_name(&session.psession->kmaps, 238 session.kmap = session.psession->vmlinux_maps[MAP__FUNCTION];
239 MAP__FUNCTION,
240 "[kernel.kallsyms]");
241 if (!session.kmap) 239 if (!session.kmap)
242 die("Could not find kernel map.\n"); 240 die("Could not find kernel map.\n");
243 241