• Paul Mackerras's avatar
    perf_event: Make software events work again · 6e85158c
    Paul Mackerras authored
    Commit 6bde9b6c ("perf: Add
    group scheduling transactional APIs") added code to allow a
    group to be scheduled in a single transaction.  However, it
    introduced a bug in handling events whose pmu does not implement
    transactions -- at the end of scheduling in the events in the
    group, in the non-transactional case the code now falls through
    to the group_error label, and proceeds to unschedule all the
    events in the group and return failure.
    
    This fixes it by returning 0 (success) in the non-transactional
    case.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Lin Ming <ming.m.lin@intel.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: eranian@gmail.com
    LKML-Reference: <20100508105800.GB10650@brick.ozlabs.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    6e85158c
perf_event.c 129 KB