]> git.baikalelectronics.ru Git - kernel.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)
commit357c0b086980ba9b9e7041924473045cc4e161ee
tree04479b0a2b3a96ebeda6a414dfb8a32dc0d5467d
parent780b37555c49cd82523eb96f41ad408ef5090b0a
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