Repository navigation
Commit d30d42e
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 <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 7337224 commit d30d42e
2 files changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2991 | 2991 | | |
2992 | 2992 | | |
2993 | 2993 | | |
2994 | | - | |
| 2994 | + | |
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4707 | 4707 | | |
4708 | 4708 | | |
4709 | 4709 | | |
4710 | | - | |
| 4710 | + | |
4711 | 4711 | | |
4712 | | - | |
| 4712 | + | |
4713 | 4713 | | |
4714 | | - | |
4715 | | - | |
| 4714 | + | |
| 4715 | + | |
4716 | 4716 | | |
4717 | 4717 | | |
4718 | 4718 | | |
4719 | | - | |
| 4719 | + | |
4720 | 4720 | | |
4721 | 4721 | | |
4722 | | - | |
| 4722 | + | |
4723 | 4723 | | |
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
4727 | | - | |
| 4727 | + | |
4728 | 4728 | | |
4729 | 4729 | | |
4730 | 4730 | | |
| |||
4739 | 4739 | | |
4740 | 4740 | | |
4741 | 4741 | | |
4742 | | - | |
| 4742 | + | |
4743 | 4743 | | |
4744 | 4744 | | |
4745 | 4745 | | |
| |||
4762 | 4762 | | |
4763 | 4763 | | |
4764 | 4764 | | |
4765 | | - | |
| 4765 | + | |
4766 | 4766 | | |
4767 | 4767 | | |
4768 | 4768 | | |
| |||
0 commit comments