[PATCH v10 05/30] tracing: Introduce trace remotes

Steven Rostedt rostedt at goodmis.org
Wed Jan 28 12:52:25 PST 2026


On Mon, 26 Jan 2026 10:43:54 +0000
Vincent Donnefort <vdonnefort at google.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



More information about the linux-arm-kernel mailing list