[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260128155225.31da0ec6@gandalf.local.home>
Date: Wed, 28 Jan 2026 15:52:25 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Vincent Donnefort <vdonnefort@...gle.com>
Cc: mhiramat@...nel.org, mathieu.desnoyers@...icios.com,
linux-trace-kernel@...r.kernel.org, maz@...nel.org, oliver.upton@...ux.dev,
joey.gouly@....com, suzuki.poulose@....com, yuzenghui@...wei.com,
kvmarm@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
jstultz@...gle.com, qperret@...gle.com, will@...nel.org,
aneesh.kumar@...nel.org, kernel-team@...roid.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v10 05/30] tracing: Introduce trace remotes
On Mon, 26 Jan 2026 10:43:54 +0000
Vincent Donnefort <vdonnefort@...gle.com> 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
Powered by blists - more mailing lists