• Peter Zijlstra's avatar
    perf_counter: Rework the sample ABI · e6e18ec7
    Peter Zijlstra authored
    The PERF_EVENT_READ implementation made me realize we don't
    actually need the sample_type int the output sample, since
    we already have that in the perf_counter_attr information.
    
    Therefore, remove the PERF_EVENT_MISC_OVERFLOW bit and the
    event->type overloading, and imply put counter overflow
    samples in a PERF_EVENT_SAMPLE type.
    
    This also fixes the issue that event->type was only 32-bit
    and sample_type had 64 usable bits.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    e6e18ec7
builtin-annotate.c 28.8 KB