Re: [PATCH v3 bpf-next 0/2] bpf: Add a new API libbpf_num_possible_cpus()

2019-06-06 Thread Song Liu
> On Jun 6, 2019, at 12:39 PM, Hechao Li wrote: > > Getting number of possible CPUs is commonly used for per-CPU BPF maps > and perf_event_maps. Add a new API libbpf_num_possible_cpus() that > helps user with per-CPU related operations and remove duplicate > implementations in bpftool and self

[PATCH v3 bpf-next 0/2] bpf: Add a new API libbpf_num_possible_cpus()

2019-06-06 Thread Hechao Li
Getting number of possible CPUs is commonly used for per-CPU BPF maps and perf_event_maps. Add a new API libbpf_num_possible_cpus() that helps user with per-CPU related operations and remove duplicate implementations in bpftool and selftests. Hechao Li (2): bpf: add a new API libbpf_num_possible