tracing: Use trace_create_file() to simplify creation of tracefs entries
authorYuntao Wang <ytcoode@gmail.com>
Fri, 14 Jan 2022 13:10:52 +0000 (21:10 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 27 May 2022 01:12:52 +0000 (21:12 -0400)
commite4931b824a6f36cae9cc5632709f015cfa748a25
tree950d5010d7f1c4707951801ad6dd09b9539512ae
parente35c2d8e22745751cf304ec3fe39616643db2e0a
tracing: Use trace_create_file() to simplify creation of tracefs entries

Creating tracefs entries with tracefs_create_file() followed by pr_warn()
is tedious and repetitive, we can use trace_create_file() to simplify
this process and make the code more readable.

Link: https://lkml.kernel.org/r/20220114131052.534382-1-ytcoode@gmail.com
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace_dynevent.c
kernel/trace/trace_events.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_recursion_record.c