summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2013-09-23 03:44:59 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-10-04 20:16:04 +0200
commit6adb0b0ae26fcc35cfec068d71f13863faac5b44 (patch)
treeeb70b1b06241219f6767e86a1bb94c4162198788 /tools
parentperf/x86: Clean up cap_user_time* setting (diff)
downloadlinux-6adb0b0ae26fcc35cfec068d71f13863faac5b44.tar.xz
linux-6adb0b0ae26fcc35cfec068d71f13863faac5b44.zip
perf tools: Add default handler for mmap2 events
Commands that do not implement an mmap2 handler should at least not die with a segfault when processing files with MMAP2 events. Signed-off-by: David Ahern <dsahern@gmail.com> Link: http://lkml.kernel.org/r/1379900700-5186-5-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 70ffa41518f3..37c4718f6be1 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -256,6 +256,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool)
tool->sample = process_event_sample_stub;
if (tool->mmap == NULL)
tool->mmap = process_event_stub;
+ if (tool->mmap2 == NULL)
+ tool->mmap2 = process_event_stub;
if (tool->comm == NULL)
tool->comm = process_event_stub;
if (tool->fork == NULL)