Re: [PATCH v5 bpf-next 5/6] bpf: add bpf_seq_btf_write helper

2020-09-21 Thread Alexei Starovoitov
On Fri, Sep 18, 2020 at 02:34:34PM +0100, Alan Maguire wrote: > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index 9b89b67..c0815f1 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -3614,6 +3614,15 @@ struct bpf_stack_build_id { > * The

[PATCH v5 bpf-next 5/6] bpf: add bpf_seq_btf_write helper

2020-09-18 Thread Alan Maguire
A helper is added to allow seq file writing of kernel data structures using vmlinux BTF. Its signature is long bpf_seq_btf_write(struct seq_file *m, struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags); Flags and struct btf_ptr definitions/use are identical to the bpf_btf_snp