commit | 58fc155b0e4bbd69584b7a241ab01d55ee7cfde6 | [log] [tgz] |
---|---|---|
author | Hengqi Chen <hengqi.chen@gmail.com> | Fri Oct 22 21:06:22 2021 +0800 |
committer | Andrii Nakryiko <andrii@kernel.org> | Fri Oct 22 16:09:14 2021 -0700 |
tree | 661fe8c7b5ccd91f68bab231fe3c91d6dea56117 | |
parent | 2d8f09fafc6351d77f724c208c8168d2512d5478 [diff] |
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