[PATCH 1/3 v2] tracing: Protect tracer flags with trace_types_lock

2013-03-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Seems that the tracer flags have never been protected from synchronous writes. Luckily, admins don't usually modify the tracing flags via two different tasks. But if scripts were to be used to modify them, then they could get corrupted. Move the trace_types_lock

[PATCH 1/3 v2] tracing: Protect tracer flags with trace_types_lock

2013-03-14 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org Seems that the tracer flags have never been protected from synchronous writes. Luckily, admins don't usually modify the tracing flags via two different tasks. But if scripts were to be used to modify them, then they could get corrupted. Move the