]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Separate open function from set_event and available_events
authorSteven Rostedt <srostedt@redhat.com>
Thu, 3 May 2012 18:57:28 +0000 (14:57 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 2 Nov 2012 14:21:49 +0000 (10:21 -0400)
commitd9176081ade7b1326035b6c049a427ad109e4d70
tree116948d50b079b2555ce66cc6b1436c2dc8c21da
parentc501578c12f0aaba8965f7b2c7391a27cb39e4a0
tracing: Separate open function from set_event and available_events

The open function used by available_events is the same as set_event even
though it uses different seq functions. This causes a side effect of
writing into available_events clearing all events, even though
available_events is suppose to be read only.

There's no reason to keep a single function for just the open and have
both use different functions for everything else. It is a little
confusing and causes strange behavior. Just have each have their own
function.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c