Re: [PATCH 0/5] trace-cmd: Use BTF to parse function arguments
Steven Rostedt <[email protected]> Mon, 4 Aug 2025 10:36:22 -0400
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 4 Aug 2025 15:28:58 +0100 Douglas Raillard <[email protected]> wrote: > Sounds like a good idea. If you want to support passing BTF at report time to supplement a BTF-less trace.dat, > it would make sense to also support getting BTF from the ELF section so that people can pass the real > vmlinux file directly (not the BTF blob in sysfs, the actual ELF vmlinux from Kbuild). > > It seems libbpf allows to do that with bpf_object__open_file(): > https://docs.ebpf.io/ebpf-library/libbpf/userspace/bpf_object__open_file/ > Yeah, but then it adds a dependency that I'm trying to limit. Parsing elf files for sections is quite trivial. I've done that a lot. I may just add a: --btf-elf /path/to/elf-file -- Steve