diff options
| author | Dave Marchevsky <[email protected]> | 2021-09-17 18:29:05 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-09-17 21:02:05 +0000 |
| commit | 10aceb629e198429c849d5e995c3bb1ba7a9aaa3 (patch) | |
| tree | 1aa48fcb75302b3a2b2ec4f515f456bac55c4ea9 /tools/lib/bpf/bpf_helpers.h | |
| parent | selftests/bpf: Stop using bpf_program__load (diff) | |
| download | kernel-10aceb629e198429c849d5e995c3bb1ba7a9aaa3.tar.gz kernel-10aceb629e198429c849d5e995c3bb1ba7a9aaa3.zip | |
bpf: Add bpf_trace_vprintk helper
This helper is meant to be "bpf_trace_printk, but with proper vararg
support". Follow bpf_snprintf's example and take a u64 pseudo-vararg
array. Write to /sys/kernel/debug/tracing/trace_pipe using the same
mechanism as bpf_trace_printk. The functionality of this helper was
requested in the libbpf issue tracker [0].
[0] Closes: https://github.com/libbpf/libbpf/issues/315
Signed-off-by: Dave Marchevsky <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
