lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 6 Jun 2019 20:26:17 +0000
From:   Song Liu <songliubraving@...com>
To:     Hechao Li <hechaol@...com>
CC:     "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "daniel@...earbox.net" <daniel@...earbox.net>,
        Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH v3 bpf-next 0/2] bpf: Add a new API
 libbpf_num_possible_cpus()



> On Jun 6, 2019, at 12:39 PM, Hechao Li <hechaol@...com> 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@...com>

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
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ