diff options
author | Kan Liang <kan.liang@intel.com> | 2014-11-18 11:38:18 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-11-19 10:33:48 -0500 |
commit | 68ca9d65b88420c2c97948a0640bad13405129e7 (patch) | |
tree | 381d35b2efea297e072dd2791be40170f8c812c5 | |
parent | b2d53671cdb0cf5070d56359821eb812669bb1ad (diff) |
perf diff: Add missing handler for PERF_RECORD_MMAP2 events
Without mmap2, perf diff fails to find the symbol name. The default
symbol sort key doesn't work well.
Signed-off-by: Kan Liang <kan.liang@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1416328700-1836-2-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 25114c9a6801..1ce425d101a9 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -357,6 +357,7 @@ static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, | |||
357 | static struct perf_tool tool = { | 357 | static struct perf_tool tool = { |
358 | .sample = diff__process_sample_event, | 358 | .sample = diff__process_sample_event, |
359 | .mmap = perf_event__process_mmap, | 359 | .mmap = perf_event__process_mmap, |
360 | .mmap2 = perf_event__process_mmap2, | ||
360 | .comm = perf_event__process_comm, | 361 | .comm = perf_event__process_comm, |
361 | .exit = perf_event__process_exit, | 362 | .exit = perf_event__process_exit, |
362 | .fork = perf_event__process_fork, | 363 | .fork = perf_event__process_fork, |