linux-kernelorg-stable/tools/bpf/bpftool
Kumar Kartikeya Dwivedi 876f5ebd58 bpftool: Add support for dumping streams
Add support for printing the BPF stream contents of a program in
bpftool. The new bpftool prog tracelog command is extended to take
stdout and stderr arguments, and then the prog specification.

The bpf_prog_stream_read() API added in previous patch is simply reused
to grab data and then it is dumped to the respective file. The stdout
data is sent to stdout, and stderr is printed to stderr.

Cc: Quentin Monnet <qmo@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250703204818.925464-12-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-07-03 19:30:07 -07:00
..
Documentation bpftool: Add support for dumping streams 2025-07-03 19:30:07 -07:00
bash-completion bpftool: Add support for dumping streams 2025-07-03 19:30:07 -07:00
skeleton
.gitignore
Makefile bpf-next-6.15 2025-03-30 12:43:03 -07:00
btf.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
btf_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
cfg.c bpftool: Fix control flow graph segfault during edge creation 2025-01-10 14:16:13 -08:00
cfg.h
cgroup.c bpftool: Fix cgroup command to only show cgroup bpf programs 2025-05-08 11:34:56 -07:00
common.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
feature.c bpftool: Probe for ISA v4 instruction set extension 2024-12-12 17:25:17 +01:00
gen.c bpftool: Using the right format specifiers 2025-02-10 16:08:13 -08:00
iter.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
jit_disasm.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
json_writer.c
json_writer.h
link.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
main.c bpftool: Fix JSON writer resource leak in version command 2025-06-17 13:28:26 -07:00
main.h bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
map.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
map_perf_ring.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
net.c bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure 2025-06-20 11:32:36 -07:00
netlink_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
netlink_dumper.h
perf.c
pids.c bpftool: ensure task comm is always NUL-terminated 2024-11-05 17:12:29 -08:00
prog.c bpftool: Add support for dumping streams 2025-07-03 19:30:07 -07:00
struct_ops.c
tracelog.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
xlated_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
xlated_dumper.h