aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2009-08-13 09:51:55 +0200
committerIngo Molnar <[email protected]>2009-08-13 12:18:43 +0200
commitbcfc2602e8541ac13b1def38e2591dca072cff7a (patch)
tree0e5601dac2fbc4ca1ff452cebd1adb345b710599 /tools/perf/scripts/python
parent8fd101f20bdf771949a8f3a5a779877d09b2fb56 (diff)
perf_counter: Fix swcounter context invariance
perf_swcounter_is_counting() uses a lock, which means we cannot use swcounters from NMI or when holding that particular lock, this is unintended. The below removes the lock, this opens up race window, but not worse than the swcounters already experience due to RCU traversal of the context in perf_swcounter_ctx_event(). This also fixes the hard lockups while opening a lockdep tracepoint counter. Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: stephane eranian <[email protected]> Cc: Corey J Ashford <[email protected]> LKML-Reference: <1250149915.10001.66.camel@twins> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions