tools/bpf: rename *_info_cnt to nr_*_info
authorYonghong Song <yhs@fb.com>
Mon, 10 Dec 2018 22:14:10 +0000 (14:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 10 Dec 2018 22:51:45 +0000 (14:51 -0800)
commitcfc542411bd40ff4f8a70b3d061bd6acdfb05629
tree5821df7fea9335a55010c21dcfba92e704c92d32
parentb4f8623c0cefdfb818f99b3eb3c1e4c7708dd84e
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>
tools/bpf/bpftool/prog.c
tools/lib/bpf/bpf_prog_linfo.c
tools/testing/selftests/bpf/test_btf.c