• Peter Zijlstra's avatar
    perf_events: Fix perf_event_attr layout · f13c12c6
    Peter Zijlstra authored
    The miss-alignment of bp_addr created a 32bit hole, causing
    different structure packings on 32 and 64 bit machines.
    
    Fix that by moving __reserve_2 into that hole.
    
    Further, remove the useless struct and redundant __bp_reserve
    muck.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    LKML-Reference: <1260902591.8023.781.camel@laptop>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    f13c12c6
perf_event.c 121 KB