]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf: Add attr->mmap2 attribute to an event
authorStephane Eranian <eranian@google.com>
Wed, 21 Aug 2013 10:10:24 +0000 (12:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 2 Sep 2013 06:42:48 +0000 (08:42 +0200)
commit13d7a2410fa637f450a29ecb515ac318ee40c741
tree04479b0a2b3a96ebeda6a414dfb8a32dc0d5467d
parent1fa64180fbf7a33b7a30636a2f174a5cad68d48f
perf: Add attr->mmap2 attribute to an event

Adds a new PERF_RECORD_MMAP2 record type which is essence
an expanded version of PERF_RECORD_MMAP.

Used to request mmap records with more information about
the mapping, including device major, minor and the inode
number and generation for mappings associated with files
or shared memory segments. Works for code and data
(with attr->mmap_data set).

Existing PERF_RECORD_MMAP record is unmodified by this patch.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Link: http://lkml.kernel.org/r/1377079825-19057-2-git-send-email-eranian@google.com
[ Added Al to the Cc:. Are the ino, maj/min exports of vma->vm_file OK? ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/uapi/linux/perf_event.h
kernel/events/core.c