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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Jun 6, 2019, at 12:39 PM, Hechao Li <hechaol@xxxxxx> 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 selftests.
> 
> Hechao Li (2):
>  bpf: add a new API libbpf_num_possible_cpus()
>  bpf: use libbpf_num_possible_cpus in bpftool and selftests

For the series:

Acked-by: Song Liu <songliubraving@xxxxxx>

Thanks for the patch!

> 
> tools/bpf/bpftool/common.c             | 53 +++---------------------
> tools/lib/bpf/libbpf.c                 | 57 ++++++++++++++++++++++++++
> tools/lib/bpf/libbpf.h                 | 16 ++++++++
> tools/lib/bpf/libbpf.map               |  1 +
> tools/testing/selftests/bpf/bpf_util.h | 37 +++--------------
> 5 files changed, 84 insertions(+), 80 deletions(-)
> 
> -- 
> 2.17.1
> 





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux