commit | 76654e67f3a01c50dc13dd6dea75e58943413956 | [log] [tgz] |
---|---|---|
author | Alan Maguire <[email protected]> | Mon Sep 28 12:31:03 2020 +0100 |
committer | Alexei Starovoitov <[email protected]> | Mon Sep 28 18:26:58 2020 -0700 |
tree | f976fd5c02589db4e9fe3673240fcf716f6bba56 | |
parent | a871b04310248024e022e104eba3ec81d144cc64 [diff] [blame] |
bpf: Provide function to get vmlinux BTF information It will be used later for BPF structure display support Signed-off-by: Alan Maguire <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index b89a307..e620a4b 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h
@@ -1364,6 +1364,8 @@ int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, union bpf_attr __user *uattr); void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth); +struct btf *bpf_get_btf_vmlinux(void); + /* Map specifics */ struct xdp_buff; struct sk_buff;