commit | 591a033dc17ff6f684b6b6d1d7426e22d178194f | [log] [tgz] |
---|---|---|
author | Yisheng Xie <xieyisheng1@huawei.com> | Thu May 17 16:36:03 2018 +0800 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Tue Jun 05 16:19:39 2018 -0400 |
tree | b750268257835c9736e46837e6fb526c378a6cb7 | |
parent | 2026d35741f2c3ece73c11eb7e4a15d7c2df9ebe [diff] |
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>