On Fri, Aug 27, 2021 at 10:20 PM Dave Marchevsky <davemarchevsky@xxxxxx> wrote: > > 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. > > Signed-off-by: Dave Marchevsky <davemarchevsky@xxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > include/linux/bpf.h | 1 + > include/uapi/linux/bpf.h | 9 ++++++ > kernel/bpf/core.c | 5 ++++ > kernel/bpf/helpers.c | 2 ++ > kernel/trace/bpf_trace.c | 52 +++++++++++++++++++++++++++++++++- > tools/include/uapi/linux/bpf.h | 9 ++++++ > 6 files changed, 77 insertions(+), 1 deletion(-) > [...]