aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2018-12-12 10:18:21 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-12-13 12:16:30 +0100
commit9e794163a69c103633fefb10a3879408d4e4e2c8 (patch)
treea1dc0e3054d7b2c184c58c9cdcba720c86fb34c7 /tools/bpf/bpftool/prog.c
parentMerge branch 'bpf-bpftool-license-update' (diff)
downloadlinux-dev-9e794163a69c103633fefb10a3879408d4e4e2c8.tar.xz
linux-dev-9e794163a69c103633fefb10a3879408d4e4e2c8.zip
bpf: Remove bpf_dump_raw_ok() check for func_info and line_info
The func_info and line_info have the bpf insn offset but they do not contain kernel address. They will still be useful for the userspace tool to annotate the xlated insn. This patch removes the bpf_dump_raw_ok() guard for the func_info and line_info during bpf_prog_get_info_by_fd(). The guard stays for jited_line_info which contains the kernel address. Although this bpf_dump_raw_ok() guard behavior has started since the earlier func_info patch series, I marked the Fixes tag to the latest line_info patch series which contains both func_info and line_info and this patch is fixing for both of them. Fixes: c454a46b5efd ("bpf: Add bpf_line_info support") Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions