tracing: Use match_string() instead of open coding it in trace_set_options()
authorYisheng Xie <[email protected]>
Thu, 17 May 2018 08:36:03 +0000 (16:36 +0800)
committerSteven Rostedt (VMware) <[email protected]>
Tue, 5 Jun 2018 20:19:39 +0000 (16:19 -0400)
commit591a033dc17ff6f684b6b6d1d7426e22d178194f
treeb750268257835c9736e46837e6fb526c378a6cb7
parent2026d35741f2c3ece73c11eb7e4a15d7c2df9ebe
tracing: Use match_string() instead of open coding it in trace_set_options()

match_string() returns the index of an array for a matching string,
which can be used to simplify the code.

Link: http://lkml.kernel.org/r/[email protected]
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Yisheng Xie <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
kernel/trace/trace.c