From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796327311; b=O62ZgX/JPkG4Hj5yHBT+l53opSM0McSNFekLiSoLdYB5j6oFnDZ/Y06Um9xi5Ax9fPBA oNvCDUcXtrQ1a8uXYi/2IgSi0yvybIfbUA48H5DjieoU0KaVApD7oT4rtTj0k0NMuQvAW 5BLhtt3tKUElV6PNQT7urHOsE4u7KpUe324DEB0QSZrQs4sdkAViFEqFSVdFjoQjSayGH 2s57qoDPd3SOocl40w6/Q7L/BhzbpRtxvAlLjgIz7qoi0x9gYZnJij6NB6MrEdhJre3uj rxfvp6Ol9ntuFnE8I0SgciIk8fm9vnbF3PsVrPxd1J5CVNEaiXImCEsoH8D+v8wBwag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796327311; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ZNOp7ZNj0CX9WEuyIXrAClrCYCOok1I7LQigG9XmY2A=; b=yeZ/65sfSvr3EvO8EQ3M1T8WjR9jtTpjTXOl/+/yMKVHFTpB6cA7dCTzQif90UPEIFdu +lX5OYNpyxgZW7afJZ7SeaNydKi178neM/Z+Vlse/qTGNahbPhexBAaMjB2Kk12ElyuIw VjoPVcAAdEz/YhRHO8PtV5eqIsiPCNICB9VhxkX1ijdmkDx8f7BBhLp8/MubJu5h2Ir/S 6DDf0cQBWVrLtEclG8XYFvq9QqkxhIctPlhiPWjDSeIm7SKojIIhNR96hHOTpuq1a5Ypm xSXpv4dvDBs9JybOp7Y/AtygL5YWQZQ8AeCGChP82FrVI5O1rGb8790guXILYj+gkYQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YlANUblC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F643606A330 for ; Thu, 3 Dec 2026 19:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YlANUblC Received: by smtp.kernel.org (Postfix) with ESMTPSA id B78561F000C2; Thu, 3 Dec 2026 19:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796327310; bh=ZNOp7ZNj0CX9WEuyIXrAClrCYCOok1I7LQigG9XmY2A=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=YlANUblCuO0y6qPdTkYMlq3MqSm5uRcAwCUMVW/UtqcfEENEnMbydF9F/9SHvfMMX 8o09zxK2UgkWaQg+7c8S/bSuzKmdLTjVZdBm3l8+joPP/D/e/e5FgqNXzqExw+qu0M SYx/W2L/u0n63IeLKimXwziZTvOraXFczveUJdWYERZa5FdSNdSsVa9r7gLZ4P1M0N SETuk/Vrd6hgoxhTVxwzXyv043KsGf1YpNW6hA1Q8FNgeAX+7dgaDf2B+ZFodyvGvT o5cNPtWtAWilakol6yIsX4EEv6qRAohWJcPxIIFFzO/fsVgoUaFasBixqfKlsRfagM BJFi5hCM/OKRA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v10 18/19] Documentation: tracing/remotes: Add detailed tracefs layout Reply-To: sashiko-reviews@lists.linux.dev To: "Vincent Donnefort" , linux-trace-kernel@vger.kernel.org In-Reply-To: <20261203190007.2431041-19-vdonnefort@google.com> References: <20261203190007.2431041-1-vdonnefort@google.com> <20261203190007.2431041-19-vdonnefort@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 19:48:30 +0000 X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/remote= s.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 > =20 > 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 -EBUS= Y. [ ... ] > + 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///{enable,id,format}. In addition, trace_remote_register_events() only creates events/ when the remote registers at least one event. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203190007.2431= 041-1-vdonnefort@google.com?part=3D18