Linux Trace Kernel
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Vincent Donnefort" <vdonnefort@google.com>,
	linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v10 18/19] Documentation: tracing/remotes: Add detailed tracefs layout
Date: Thu, 03 Dec 2026 19:48:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-248557@kernel.org> (raw)
In-Reply-To: <20261203190007.2431041-19-vdonnefort@google.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] docs: tracing/remotes: broken ReST cross-reference to The File
  System
- [Low] docs: tracing/remotes: omitted eventfs files and per-event
  hierarchy
- [Low] docs: tracing/remotes: buffer_size_kb omits trace readers
  blocking unload
--

commit d1b0e4a6d81170e159f06b3fe1658adfee818cd6
Author: Vincent Donnefort <vdonnefort@google.com>

Documentation: tracing/remotes: Add detailed tracefs layout

This commit fixes a couple of grammar errors in
Documentation/trace/remotes.rst and adds a section describing the tracefs
files exposed by a remote tracing instance.

> diff --git a/Documentation/trace/remotes.rst b/Documentation/trace/remotes.rst
> index 1f9d764f69aa6..b02ebed4a03f4 100644
> --- a/Documentation/trace/remotes.rst
> +++ b/Documentation/trace/remotes.rst

[ ... ]

> @@ -28,8 +28,66 @@ consuming reading.
>  .. kernel-doc:: include/linux/trace_remote.h
>  
>  Once registered, an instance will appear for this remote in the Tracefs
> -directory **remotes/**. Buffers can then be read using the usual Tracefs files
> -**trace_pipe** and **trace**.
> +directory **remotes/**. The files within this directory allow configuring
> +and reading the remote buffer (see `The File System` below).

[Severity: Low]
Should this reference have a trailing underscore so Sphinx renders it as an
internal link to The File System section?  Without it, docutils uses the
default title-reference role and emits plain emphasized text instead of a
hyperlink.

[ ... ]

> +  buffer_size_kb
> +	This file displays and allows changing the size of the per-CPU ring
> +	buffers used by the remote. It also shows if the buffer is **loaded** or
> +	**unloaded**. To change the size, the remote buffers must be unloaded
> +	first. Remote buffers are automatically unloaded when **tracing_on** is
> +	off, no one is reading the buffer (either by accessing **trace_pipe** or
> +	when **dmesg** is on) and no events remain in the buffer.

[Severity: Low]
Do open readers on trace and per_cpu/cpuX/{trace,trace_pipe} also prevent
automatic unloading here?

In kernel/trace/trace_remote.c, trace_open() calls trace_remote_iter() with
TRI_NONCONSUMING, which calls trace_remote_get() and increments
remote->nr_readers when loaded.  trace_remote_try_unload() bails out while
remote->nr_readers is non-zero, so writes to buffer_size_kb fail with -EBUSY.

[ ... ]

> +  events/
> +	This directory contains remote events that can be enabled or disabled.
> +
> +  events/enable
> +	Allows enabling or disabling all the remote events.

[Severity: Low]
Should this section also document the remaining files and directories under
events/?

In kernel/trace/trace_remote.c, trace_remote_init_eventfs() also creates
events/header_page, events/header_event, and the per-event hierarchy
events/<remote_name>/<event_name>/{enable,id,format}.

In addition, trace_remote_register_events() only creates events/ when the
remote registers at least one event.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203190007.2431041-1-vdonnefort@google.com?part=18

  reply	other threads:[~2026-12-03 19:48 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 18:59 [PATCH v10 00/19] tracing/remotes: Add printk, dump_on_panic and boot parameters Vincent Donnefort
2026-12-03 18:59 ` [PATCH v10 01/19] tracing/remotes: Gate tracefs files opening on trace remote registration Vincent Donnefort
2026-12-03 19:20   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 02/19] tracing/remotes: Release tracefs,eventfs on registration failure Vincent Donnefort
2026-12-03 19:24   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 03/19] tracing/remotes: Use kstrtobool for boolean tracefs files Vincent Donnefort
2026-12-03 18:59 ` [PATCH v10 04/19] tracing/remotes: Initialise pos in trace_start() Vincent Donnefort
2026-12-03 19:18   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 05/19] tracing/remotes: Annotate remote shared fields with READ_ONCE/WRITE_ONCE Vincent Donnefort
2026-12-03 19:19   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 06/19] tracing/remotes: Use a single per-remote polling work Vincent Donnefort
2026-12-03 18:59 ` [PATCH v10 07/19] tracing/simple_ring_buffer: Add support for compressed length Vincent Donnefort
2026-12-03 18:59 ` [PATCH v10 08/19] tracing/remotes: Add dmesg tracefs file Vincent Donnefort
2026-12-03 19:43   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 09/19] tracing/remotes: selftests: Add a test for the " Vincent Donnefort
2026-12-03 19:39   ` sashiko-bot
2026-12-03 18:59 ` [PATCH v10 10/19] tracing/remotes: selftests: Prefix hypervisor folder Vincent Donnefort
2026-12-03 18:59 ` [PATCH v10 11/19] ring-buffer: Use panic-friendly locking in ring_buffer_iter interface Vincent Donnefort
2026-12-03 19:38   ` sashiko-bot
2026-12-03 19:00 ` [PATCH v10 12/19] ring-buffer: Add kerneldoc for ring_buffer_poll_remote Vincent Donnefort
2026-12-03 19:00 ` [PATCH v10 13/19] tracing/remotes: Use ring_buffer_capacity() in trace_remote_has_cpu() Vincent Donnefort
2026-12-03 19:00 ` [PATCH v10 14/19] tracing/remotes: Add dump_on_panic tracefs file Vincent Donnefort
2026-12-03 19:52   ` sashiko-bot
2026-12-03 19:00 ` [PATCH v10 15/19] tracing/remotes: selftests: Add a test for the " Vincent Donnefort
2026-12-03 19:50   ` sashiko-bot
2026-12-03 19:00 ` [PATCH v10 16/19] tracing/remotes: Add poll_ms " Vincent Donnefort
2026-12-03 19:50   ` sashiko-bot
2026-12-03 19:00 ` [PATCH v10 17/19] tracing/remotes: Add trace_remote cmdline options Vincent Donnefort
2026-12-03 19:58   ` sashiko-bot
2026-12-03 19:00 ` [PATCH v10 18/19] Documentation: tracing/remotes: Add detailed tracefs layout Vincent Donnefort
2026-12-03 19:48   ` sashiko-bot [this message]
2026-12-03 19:00 ` [PATCH v10 19/19] Documentation/kernel-parameters: Add trace_remote Vincent Donnefort
2026-12-03 19:53   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-248557@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vdonnefort@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox