bpf: add a new API libbpf_num_possible_cpus()
authorHechao Li <hechaol@fb.com>
Tue, 11 Jun 2019 00:56:50 +0000 (17:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Jun 2019 08:36:02 +0000 (10:36 +0200)
commit6446b3155521aab37f5a2b99ac264803ea7dced8
tree76c48512b43d492676d778e6b1d18fe1bef58b1c
parent89cceaa939171fafa153d4bf637b39e396bbd785
bpf: add a new API libbpf_num_possible_cpus()

Adding a new API libbpf_num_possible_cpus() that helps user with
per-CPU map operations.

Signed-off-by: Hechao Li <hechaol@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map