aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2018-12-06 01:35:44 +0000
committerAlexei Starovoitov <[email protected]>2018-12-06 02:48:40 +0000
commitd30d42e08c76cb9323ec6121190eb026b07f773b (patch)
tree784239f20eb96e116b16ba0bacfaa037f713ce3a /tools/bpf/bpftool/prog.c
parentbpf: Improve the info.func_info and info.func_info_rec_size behavior (diff)
downloadkernel-d30d42e08c76cb9323ec6121190eb026b07f773b.tar.gz
kernel-d30d42e08c76cb9323ec6121190eb026b07f773b.zip
bpf: Change insn_offset to insn_off in bpf_func_info
The later patch will introduce "struct bpf_line_info" which has member "line_off" and "file_off" referring back to the string section in btf. The line_"off" and file_"off" are more consistent to the naming convention in btf.h that means "offset" (e.g. name_off in "struct btf_type"). The to-be-added "struct bpf_line_info" also has another member, "insn_off" which is the same as the "insn_offset" in "struct bpf_func_info". Hence, this patch renames "insn_offset" to "insn_off" for "struct bpf_func_info". Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions