OSDN Git Service

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)
commit84ecc1f98ca7ce28ede9bc5cc70a557fdfa09caa
treed1b34c120c66dd799428ca4e61bf8ed710f4ae3e
parent555249df711b146a2898949ac80503be29fe7340
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