aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorK.Prasad <[email protected]>2012-08-02 13:46:35 +0530
committerIngo Molnar <[email protected]>2012-09-04 17:29:53 +0200
commit500ad2d8b01390c98bc6dce068bccfa9534b8212 (patch)
treea7e1330e5380d4cb4be02820a86fbea1dc0da5c9 /tools/perf/util/trace-event-scripting.c
parent3ec18cd8b8f8395d0df604c62ab3bc2cf3a966b4 (diff)
perf/hwpb: Invoke __perf_event_disable() if interrupts are already disabled
While debugging a warning message on PowerPC while using hardware breakpoints, it was discovered that when perf_event_disable is invoked through hw_breakpoint_handler function with interrupts disabled, a subsequent IPI in the code path would trigger a WARN_ON_ONCE message in smp_call_function_single function. This patch calls __perf_event_disable() when interrupts are already disabled, instead of perf_event_disable(). Reported-by: Edjunior Barbosa Machado <[email protected]> Signed-off-by: K.Prasad <[email protected]> [[email protected]: v3: Check to make sure we target current task] Signed-off-by: Naveen N. Rao <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Fixed build error on MIPS. ] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions