]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Expect !info.func_info and insn_off name changes in test_btf/libbpf/bpftool
authorMartin KaFai Lau <kafai@fb.com>
Thu, 6 Dec 2018 01:35:47 +0000 (17:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Dec 2018 02:48:40 +0000 (18:48 -0800)
commit3f484276b6a9db82c826e5d91d23401b4c744859
treed1b34c120c66dd799428ca4e61bf8ed710f4ae3e
parentc1d52e511a411710509e690714d01ad6a598e11c
bpf: Expect !info.func_info and insn_off name changes in test_btf/libbpf/bpftool

Similar to info.jited_*, info.func_info could be 0 if
bpf_dump_raw_ok() == false.

This patch makes changes to test_btf and bpftool to expect info.func_info
could be 0.

This patch also makes the needed changes for s/insn_offset/insn_off/.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/prog.c
tools/bpf/bpftool/xlated_dumper.c
tools/lib/bpf/btf.c
tools/testing/selftests/bpf/test_btf.c