[PATCH 0/2] tracing: Clean up of set_tracer_flag()

Steven Rostedt posted 2 patches 1 month, 1 week ago
kernel/trace/trace.c | 41 ++++++++++++++++++++++++++---------------
1 file changed, 26 insertions(+), 15 deletions(-)
[PATCH 0/2] tracing: Clean up of set_tracer_flag()
Posted by Steven Rostedt 1 month, 1 week ago
The set_tracer_flag() function takes a mask that has a single bit set.
It then goes through a bunch of "if ()" statements looking at what the
mask is to perform the necessary operations. It is simpler to switch that
over to a "switch ()" statement.

Steven Rostedt (2):
      tracing: Exit out immediately after update_marker_trace()
      tracing: Use switch statement instead of ifs in set_tracer_flag()

----
 kernel/trace/trace.c | 41 ++++++++++++++++++++++++++---------------
 1 file changed, 26 insertions(+), 15 deletions(-)