aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-probe.c
diff options
context:
space:
mode:
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