]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use match_string() instead of open coding it in trace_set_options()
authorYisheng Xie <xieyisheng1@huawei.com>
Thu, 17 May 2018 08:36:03 +0000 (16:36 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 5 Jun 2018 20:19:39 +0000 (16:19 -0400)
commit432da88dab6169358a601bdf8f5d71117fef0195
treeb750268257835c9736e46837e6fb526c378a6cb7
parentb33d4ee2ba8304c4cd62eb49db0a8f81441e64ed
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/1526546163-4609-1-git-send-email-xieyisheng1@huawei.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c