perf: Fix mmap_page capabilities and docs
authorPeter Zijlstra <peterz@infradead.org>
Thu, 22 Mar 2012 16:26:36 +0000 (17:26 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 23 Mar 2012 08:52:16 +0000 (09:52 +0100)
commitc7206205d00ab375839bd6c7ddb247d600693c09
tree24b9d66a5eaef77c1fc40bc8f6f28acfd167bf5b
parentc5bc437702b24817cabd65a6a57971ff91a7712c
perf: Fix mmap_page capabilities and docs

Complete the syscall-less self-profiling feature and address
all complaints, namely:

 - capabilities, so we can detect what is actually available at runtime

     Add a capabilities field to perf_event_mmap_page to indicate
     what is actually available for use.

 - on x86: RDPMC weirdness due to being 40/48 bits and not sign-extending
   properly.

 - ABI documentation as to how all this stuff works.

Also improve the documentation for the new features.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Vince Weaver <vweaver1@eecs.utk.edu>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1332433596.2487.33.camel@twins
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c
include/linux/perf_event.h
kernel/events/core.c