• Peter Zijlstra's avatar
    perf: Fix mmap_page capabilities and docs · c7206205
    Peter Zijlstra authored
    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: default avatarPeter 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@twinsSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    c7206205
core.c 166 KB