Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0135C31DD86 for ; Tue, 3 Feb 2026 23:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770161663; cv=none; b=uVWn172RLCHyBlIfLXk/DPLKGTiYakkvi7sMqjKxHmpJu2dfBAIifrhsCW7y+wsIZx0oUvPfSWOnR1J3xaCkTug1cWQvuHeYNHoAOOQH4UP5aaXSWJZpWgODBIlfco6yunZWQ2I5rjAFj3LzI19tHlZr+AjY7gwP3fDFNBmklvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770161663; c=relaxed/simple; bh=Y4sXDb6kyq8nnOP36pDKKBU+4vLAeh3yp6bUhDnqDSM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MRO5b/v1tlctGqQGXBbiOa6KAfqr+7KmJmB0nElDI2bXrgV1gTCtZpBPd4X8BDOGknBFJaTJxQ1WVxYQ1Ow7RzpG/TeQw0eK+Dgrw2WgNa8o35Qgp8fwPL9wmwxo9EyO/mZnQOQtJXTZDJEoZWrqkGlPuCvaDaS84/IwRJqX0A8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1DBBC4AF09; Tue, 3 Feb 2026 23:34:22 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1vnPv2-00000008tFj-33iz; Tue, 03 Feb 2026 18:34:52 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Douglas Raillard , Masami Hiramatsu , Namhyung Kim , Takaya Saeki , Ian Rogers , "Steven Rostedt (Google)" Subject: [PATCH v4 6/6] trace-cmd documenatation: Update the trace.dat man page for BTF_FILE Date: Tue, 3 Feb 2026 18:32:29 -0500 Message-ID: <20260203233451.2118849-7-rostedt@goodmis.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260203233451.2118849-1-rostedt@goodmis.org> References: <20260203233451.2118849-1-rostedt@goodmis.org> Precedence: bulk X-Mailing-List: linux-trace-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Steven Rostedt (Google)" Now that the trace.dat file has a way to store the BTF file, update the documentation about it. Link: https://lore.kernel.org/all/10187dcc-c054-4aa1-b8e1-758aba13a3df@arm.com/ Suggested-by: Douglas Raillard Signed-off-by: Steven Rostedt (Google) --- .../trace-cmd/trace-cmd.dat.v7.5.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/trace-cmd/trace-cmd.dat.v7.5.txt b/Documentation/trace-cmd/trace-cmd.dat.v7.5.txt index 2f7e6a4a4654..73857d1a04f8 100644 --- a/Documentation/trace-cmd/trace-cmd.dat.v7.5.txt +++ b/Documentation/trace-cmd/trace-cmd.dat.v7.5.txt @@ -270,6 +270,11 @@ OPTIONS SECTION a null terminated ASCII string, trace clock used for events timestamps in this trace instance. + BTF_FILE: id 23, size 8 + The BTF_FILE option data is: + A compressed data from the host file /sys/kernel/btf/vmlinux, using the + compression algorthim defined by the trace.dat header. The compression data + includes the size of the uncompressed output. HEADER INFO SECTION ------------------- @@ -438,6 +443,20 @@ STRINGS SECTION meta data, which is the offset of the actual string into the string section. Strings can be stored into multiple string sections in the file. +BTF FILE SECTION +---------------- + + Section ID: 23 + + Directly after the section header comes the information mapping + a PID to a process name. + + The next 8 bytes contain a 64-bit word that holds the size of the + data mapping the PID to a process name. + + The next set of data is of the size defined by the previous 8 bytes + and contains the information from /sys/kernel/btf/vmlinux. + SEE ALSO -------- trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), -- 2.51.0