2.6.38-stable review patch. If anyone has any objections, please let us know.
------------------ From: Frederic Weisbecker <[email protected]> commit a0f7d0f7fc02465bb9758501f611f63381792996 upstream. 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 <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Stephane Eranian <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> --- kernel/perf_event.c | 2 ++ 1 file changed, 2 insertions(+) --- a/kernel/perf_event.c +++ b/kernel/perf_event.c @@ -4923,6 +4923,8 @@ static int perf_tp_event_match(struct pe struct perf_sample_data *data, struct pt_regs *regs) { + if (event->hw.state & PERF_HES_STOPPED) + return 0; /* * All tracepoints are from kernel-space. */ _______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
