aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/trace/trace_events_user.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-02-19 16:43:33 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-03-06 13:35:27 -0500
commit06889030f585a3daa34f1aa43bc3a70cb9aba8a1 (patch)
tree367ff89d5b5447d3ee3d2380d190e7185b2847d8 /kernel/trace/trace_events_user.c
parenttracing/user_events: Don't use %pK through printk (diff)
downloadwireguard-linux-06889030f585a3daa34f1aa43bc3a70cb9aba8a1.tar.xz
wireguard-linux-06889030f585a3daa34f1aa43bc3a70cb9aba8a1.zip
tracing/user_events: Slightly simplify user_seq_show()
2 seq_puts() calls can be merged. It saves a few lines of code and a few cycles, should it matter. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/845caa94b74cea8d72c158bf1994fe250beee28c.1739979791.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events_user.c')
-rw-r--r--kernel/trace/trace_events_user.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c
index 3effc6fce20e..af42aaa3d172 100644
--- a/kernel/trace/trace_events_user.c
+++ b/kernel/trace/trace_events_user.c
@@ -2793,11 +2793,8 @@ static int user_seq_show(struct seq_file *m, void *p)
seq_printf(m, "%s", EVENT_TP_NAME(user));
- if (status != 0)
- seq_puts(m, " #");
-
if (status != 0) {
- seq_puts(m, " Used by");
+ seq_puts(m, " # Used by");
if (status & EVENT_STATUS_FTRACE)
seq_puts(m, " ftrace");
if (status & EVENT_STATUS_PERF)