[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a0f7d0f7fc02465bb9758501f611f63381792996@git.kernel.org>
Date: Wed, 16 Mar 2011 13:58:52 GMT
From: tip-bot for Frederic Weisbecker <fweisbec@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, eranian@...gle.com, paulus@...ba.org,
acme@...hat.com, hpa@...or.com, mingo@...hat.com,
a.p.zijlstra@...llo.nl, fweisbec@...il.com, stable@...nel.org,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/urgent] perf: Handle stopped state with tracepoints
Commit-ID: a0f7d0f7fc02465bb9758501f611f63381792996
Gitweb: http://git.kernel.org/tip/a0f7d0f7fc02465bb9758501f611f63381792996
Author: Frederic Weisbecker <fweisbec@...il.com>
AuthorDate: Mon, 7 Mar 2011 21:27:09 +0100
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 16 Mar 2011 14:04:14 +0100
perf: Handle stopped state with tracepoints
We toggle the state from start and stop callbacks but actually
don't check it when the event triggers. Do it so that
these callbacks actually work.
Signed-off-by: Frederic Weisbecker <fweisbec@...il.com>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Stephane Eranian <eranian@...gle.com>
Cc: <stable@...nel.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
LKML-Reference: <1299529629-18280-2-git-send-email-fweisbec@...il.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/perf_event.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 974e2e6..533f715 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -5478,6 +5478,8 @@ static int perf_tp_event_match(struct perf_event *event,
struct perf_sample_data *data,
struct pt_regs *regs)
{
+ if (event->hw.state & PERF_HES_STOPPED)
+ return 0;
/*
* All tracepoints are from kernel-space.
*/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists