perf: Fix the software events state check
Fix the mistakenly inverted check of events state. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Stephane Eranian <eranian@google.com> Cc: <stable@kernel.org> LKML-Reference: <1299529629-18280-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
0837e3242c
commit
91b2f482e6
|
@ -5122,7 +5122,7 @@ static int perf_exclude_event(struct perf_event *event,
|
|||
struct pt_regs *regs)
|
||||
{
|
||||
if (event->hw.state & PERF_HES_STOPPED)
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
if (regs) {
|
||||
if (event->attr.exclude_user && user_mode(regs))
|
||||
|
|
Loading…
Reference in New Issue