diff options
author | Yonghong Song <yhs@fb.com> | 2018-12-10 17:14:10 -0500 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-12-10 17:51:45 -0500 |
commit | cfc542411bd40ff4f8a70b3d061bd6acdfb05629 (patch) | |
tree | 5821df7fea9335a55010c21dcfba92e704c92d32 /tools/lib/bpf/bpf_prog_linfo.c | |
parent | b4f8623c0cefdfb818f99b3eb3c1e4c7708dd84e (diff) |
tools/bpf: rename *_info_cnt to nr_*_info
Rename all occurances of *_info_cnt field access
to nr_*_info in tools directory.
The local variables finfo_cnt, linfo_cnt and jited_linfo_cnt
in function do_dump() of tools/bpf/bpftool/prog.c are also
changed to nr_finfo, nr_linfo and nr_jited_linfo to
keep naming convention consistent.
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
-rw-r--r-- | tools/lib/bpf/bpf_prog_linfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/bpf_prog_linfo.c b/tools/lib/bpf/bpf_prog_linfo.c index b8af65145408..addd6e9971cc 100644 --- a/tools/lib/bpf/bpf_prog_linfo.c +++ b/tools/lib/bpf/bpf_prog_linfo.c | |||
@@ -105,7 +105,7 @@ struct bpf_prog_linfo *bpf_prog_linfo__new(const struct bpf_prog_info *info) | |||
105 | struct bpf_prog_linfo *prog_linfo; | 105 | struct bpf_prog_linfo *prog_linfo; |
106 | __u32 nr_linfo, nr_jited_func; | 106 | __u32 nr_linfo, nr_jited_func; |
107 | 107 | ||
108 | nr_linfo = info->line_info_cnt; | 108 | nr_linfo = info->nr_line_info; |
109 | 109 | ||
110 | /* | 110 | /* |
111 | * Test !info->line_info because the kernel may NULL | 111 | * Test !info->line_info because the kernel may NULL |
@@ -138,7 +138,7 @@ struct bpf_prog_linfo *bpf_prog_linfo__new(const struct bpf_prog_info *info) | |||
138 | nr_jited_func = info->nr_jited_ksyms; | 138 | nr_jited_func = info->nr_jited_ksyms; |
139 | if (!nr_jited_func || | 139 | if (!nr_jited_func || |
140 | !info->jited_line_info || | 140 | !info->jited_line_info || |
141 | info->jited_line_info_cnt != nr_linfo || | 141 | info->nr_jited_line_info != nr_linfo || |
142 | info->jited_line_info_rec_size < sizeof(__u64) || | 142 | info->jited_line_info_rec_size < sizeof(__u64) || |
143 | info->nr_jited_func_lens != nr_jited_func || | 143 | info->nr_jited_func_lens != nr_jited_func || |
144 | !info->jited_ksyms || | 144 | !info->jited_ksyms || |