Skip to content

tracing: Clean up of set_tracer_flag()

Steven Rostedt linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing: Exit out immediately after update_marker_trace()kernel/trace/trace.c+4 -11 reply
2/2tracing: Use switch statement instead of ifs in set_tracer_flag()kernel/trace/trace.c+23 -152 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMasami Hiramatsu (Google)
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)