]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Switch to new btf__type_cnt API
authorHengqi Chen <hengqi.chen@gmail.com>
Fri, 22 Oct 2021 13:06:22 +0000 (21:06 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Oct 2021 23:09:14 +0000 (16:09 -0700)
commitf8adc4cfcf0e8708967c9f005de97821c75124fc
tree661fe8c7b5ccd91f68bab231fe3c91d6dea56117
parent011914d248a521092b50a437c519db2101fda3af
bpftool: Switch to new btf__type_cnt API

Replace the call to btf__get_nr_types with new API btf__type_cnt.
The old API will be deprecated in libbpf v0.7+. No functionality
change.

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211022130623.1548429-5-hengqi.chen@gmail.com
tools/bpf/bpftool/btf.c
tools/bpf/bpftool/gen.c