perf tools: Add attr->mmap2 support
This patch adds support for the new PERF_RECORD_MMAP2 record type exposed by the kernel. This is an extended PERF_RECORD_MMAP record. It adds for each file-backed mapping the device major, minor number and the inode number and generation. This triplet uniquely identifies the source of a file-backed mapping. It can be used to detect identical virtual mappings between processes, for instance. The patch will prefer MMAP2 over MMAP. Signed-off-by:Stephane Eranian <eranian@google.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1377079825-19057-3-git-send-email-eranian@google.com [ Cope with 314add6b "Change machine__findnew_thread() to set thread pid", fix 'perf test' regression test entry affected, use perf_missing_features.mmap2 to fallback to not using .mmap2 in older kernels, so that new tools can work with kernels where this feature is not present ] Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-annotate.c 1 addition, 0 deletionstools/perf/builtin-annotate.c
- tools/perf/builtin-inject.c 15 additions, 0 deletionstools/perf/builtin-inject.c
- tools/perf/builtin-mem.c 1 addition, 0 deletionstools/perf/builtin-mem.c
- tools/perf/builtin-report.c 1 addition, 0 deletionstools/perf/builtin-report.c
- tools/perf/builtin-script.c 1 addition, 0 deletionstools/perf/builtin-script.c
- tools/perf/tests/perf-record.c 11 additions, 4 deletionstools/perf/tests/perf-record.c
- tools/perf/util/build-id.c 1 addition, 0 deletionstools/perf/util/build-id.c
- tools/perf/util/event.c 44 additions, 12 deletionstools/perf/util/event.c
- tools/perf/util/event.h 19 additions, 0 deletionstools/perf/util/event.h
- tools/perf/util/evsel.c 12 additions, 4 deletionstools/perf/util/evsel.c
- tools/perf/util/header.c 3 additions, 0 deletionstools/perf/util/header.c
- tools/perf/util/machine.c 52 additions, 1 deletiontools/perf/util/machine.c
- tools/perf/util/machine.h 1 addition, 0 deletionstools/perf/util/machine.h
- tools/perf/util/map.c 7 additions, 1 deletiontools/perf/util/map.c
- tools/perf/util/map.h 6 additions, 2 deletionstools/perf/util/map.h
- tools/perf/util/session.c 24 additions, 1 deletiontools/perf/util/session.c
- tools/perf/util/tool.h 1 addition, 0 deletionstools/perf/util/tool.h
Loading
Please register or sign in to comment