aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2018-12-12 17:37:46 +0000
committerDaniel Borkmann <[email protected]>2018-12-13 11:22:28 +0000
commitc872bdb38febb4c31ece3599c52cf1f833b89f4e (patch)
treec1c80b2023415abfa68f19e8ac66d6f36f3a35bb /tools/bpf/bpftool/prog.c
parentMerge branch 'bpf-fix-kptr-checks' (diff)
downloadkernel-c872bdb38febb4c31ece3599c52cf1f833b89f4e.tar.gz
kernel-c872bdb38febb4c31ece3599c52cf1f833b89f4e.zip
bpf: include sub program tags in bpf_prog_info
Changes v2 -> v3: 1. remove check for bpf_dump_raw_ok(). Changes v1 -> v2: 1. Fix error path as Martin suggested. This patch adds nr_prog_tags and prog_tags to bpf_prog_info. This is a reliable way for user space to get tags of all sub programs. Before this patch, user space need to find sub program tags via kallsyms. This feature will be used in BPF introspection, where user space queries information about BPF programs via sys_bpf. Signed-off-by: Song Liu <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions