diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-09-04 12:35:16 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-04 18:46:51 -0400 |
commit | f633903af2ceb0cec07d45e499a072b6593d0ed1 (patch) | |
tree | 9a484fa299142a00d0dbb5a97e1108031db96e70 /kernel/trace/trace_power.c | |
parent | 2f26ebd549b9ab55ac756b836ec759c11fe93f81 (diff) | |
download | kernel-crypto-f633903af2ceb0cec07d45e499a072b6593d0ed1.tar.gz kernel-crypto-f633903af2ceb0cec07d45e499a072b6593d0ed1.tar.xz kernel-crypto-f633903af2ceb0cec07d45e499a072b6593d0ed1.zip |
tracing: make tracing_reset safe for external use
Reseting the trace buffer without first disabling the buffer and
waiting for any writers to complete, can corrupt the ring buffer.
This patch makes the external version of tracing_reset safe from
corruption by disabling the ring buffer and calling synchronize_sched.
This version can no longer be called from interrupt context. But all those
callers have been removed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_power.c')
0 files changed, 0 insertions, 0 deletions