Re: [PATCH v10 05/30] tracing: Introduce trace remotes
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-01-28 20:52:23
Also in:
kvmarm, linux-arm-kernel, lkml
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-01-28 20:52:23
Also in:
kvmarm, linux-arm-kernel, lkml
On Mon, 26 Jan 2026 10:43:54 +0000 Vincent Donnefort [off-list ref] wrote:
+ if (!trace_create_file("tracing_on", TRACEFS_MODE_WRITE, remote_d, remote,
+ &tracing_on_fops) ||
+ !trace_create_file("buffer_size_kb", TRACEFS_MODE_WRITE, remote_d, remote,
+ &buffer_size_kb_fops) ||
+ !trace_create_file("trace_pipe", TRACEFS_MODE_READ, remote_d, remote,
+ &trace_pipe_fops))
+ goto err;
+Oh, and don't do this in an if statement. Make them each individually as: ret = trace_create_file(...); if (!ret) goto err; Linus hates complex if statements and I can see him having a conniption if he were to see this. -- Steve