diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2011-03-07 15:27:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-03-16 09:04:13 -0400 |
commit | 91b2f482e62ad0d444222253026a5cbca28c4ab9 (patch) | |
tree | 4ce0c4bd27c85182481e5330033de2546e322873 /kernel | |
parent | 0837e3242c73566fc1c0196b4ec61779c25ffc93 (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index ed253aa24ba4..974e2e64a43a 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -5122,7 +5122,7 @@ static int perf_exclude_event(struct perf_event *event, | |||
5122 | struct pt_regs *regs) | 5122 | struct pt_regs *regs) |
5123 | { | 5123 | { |
5124 | if (event->hw.state & PERF_HES_STOPPED) | 5124 | if (event->hw.state & PERF_HES_STOPPED) |
5125 | return 0; | 5125 | return 1; |
5126 | 5126 | ||
5127 | if (regs) { | 5127 | if (regs) { |
5128 | if (event->attr.exclude_user && user_mode(regs)) | 5128 | if (event->attr.exclude_user && user_mode(regs)) |