From: Frederic Weisbecker Date: Mon, 7 Mar 2011 20:27:08 +0000 (+0100) Subject: perf: Fix the software events state check X-Git-Tag: v2.6.37.5~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=873a16379489db8a72ad416725c13f11c672a100;p=karo-tx-linux.git perf: Fix the software events state check commit 91b2f482e62ad0d444222253026a5cbca28c4ab9 upstream. Fix the mistakenly inverted check of events state. Signed-off-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: Stephane Eranian LKML-Reference: <1299529629-18280-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 785c66a2088a..bbdc9c572129 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c @@ -4414,7 +4414,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))