[PATCH v3 0/6] trace-cmd: Use BTF to show the arguments for function tracers
Steven Rostedt <[email protected]> Mon, 2 Feb 2026 17:36:55 -0500
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
From: "Steven Rostedt (Google)" <[email protected]> Have trace-cmd use the new BTF parsing to show the arguments of function tracing. Changes since v2: https://lore.kernel.org/all/[email protected] - Fixed tracecmd_append_btf_file() exiting out early when btf file doesn't exist. That would cause the offset to be incorrect and the next write to the trace.dat file would corrupt it. This happened with trace-cmd extract. Steven Rostedt (Google) (6): libtracecmd: Remove "compress" parameter from save_string_section() libtracecmd: Remove "compress" parameter from tcmd_out_compress*() functions libtracecmd: Add write_compress_section_header() for writing compress sections trace-cmd record / report: Record BTF file if function arguments are recorded libtracecmd: Add printing of arguments for function graph tracer trace-cmd documenatation: Update the trace.dat man page for BTF_FILE .../trace-cmd/trace-cmd.dat.v7.5.txt | 19 ++ Makefile | 9 + .../include/private/trace-cmd-private.h | 3 + lib/trace-cmd/include/trace-cmd-local.h | 7 +- lib/trace-cmd/trace-compress.c | 26 ++ lib/trace-cmd/trace-ftrace.c | 58 ++++- lib/trace-cmd/trace-input.c | 68 ++++-- lib/trace-cmd/trace-output.c | 228 ++++++++++-------- meson.build | 3 + tracecmd/trace-record.c | 42 +++- 10 files changed, 330 insertions(+), 133 deletions(-) -- 2.51.0