• P
    perf_events: Fix perf_event_attr layout · f13c12c6
    Peter Zijlstra 提交于
    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: NPeter 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: NIngo Molnar <mingo@elte.hu>
    f13c12c6
perf_event.c 121.0 KB