bpf: use libbpf_num_possible_cpus internally
authorHechao Li <hechaol@fb.com>
Tue, 11 Jun 2019 00:56:52 +0000 (17:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Jun 2019 08:36:02 +0000 (10:36 +0200)
commit4c587c196d8237169405cbb2195669dbc00fd72b
tree2ed8d6d46425887dd31d8c2ff146aee98bd25e55
parentebb886078bae29bd60eba3157dc6edae4bbed3a1
bpf: use libbpf_num_possible_cpus internally

Use the newly added bpf_num_possible_cpus() in bpftool and selftests
and remove duplicate implementations.

Signed-off-by: Hechao Li <hechaol@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/common.c
tools/testing/selftests/bpf/bpf_util.h