History

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".

Martin KaFai Lau committed 7 years ago

Commit d30d42e1 parent 73372242 files · +10 −10Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−1
@@ -2991,7 +2991,7 @@ struct bpf_flow_keys { · 2990 unmodified lines
2991};2991};
2992 2992
2993struct bpf_func_info {2993struct bpf_func_info {
2994 __u32 insn_offset;2994 __u32 insn_off;
2995 __u32 type_id;2995 __u32 type_id;
2996};2996};
2997 2997