[PATCH v2 1/2] bpf: support new field in BPF_MAP_LOOKUP_ELEM

Dmitry V. Levin ldv at altlinux.org
Thu Nov 28 20:42:29 UTC 2019


On Wed, Nov 27, 2019 at 03:10:16PM +0100, Paul Chaignon wrote:
> * bpf_attr.h (BPF_MAP_LOOKUP_ELEM_struct): New field introduced by Linux
> commit v5.1-rc1~178^2~375^2~4^2~3.
> * xlat/bpf_map_lookup_elem_flags.in: New file.
> * bpf.c: Include "xlat/bpf_map_lookup_elem_flags.h".
> (BEGIN_BPF_CMD_DECODER(BPF_MAP_LOOKUP_ELEM)): Decode the new field.
> * tests/bpf.c (BPF_MAP_LOOKUP_ELEM_checks): Update expected outputs.
> 
> Signed-off-by: Paul Chaignon <paul.chaignon at gmail.com>
On Wed, Nov 27, 2019 at 03:16:21PM +0100, Paul Chaignon wrote:
> * xlat/bpf_prog_types.in (BPF_PROG_TYPE_CGROUP_SOCK_ADDR): New constant
> introduced by Linux commit v4.17-rc1~148^2~19^2^2~6.
> (BPF_PROG_TYPE_LWT_SEG6LOCAL, BPF_PROG_TYPE_LIRC_MODE2,
> BPF_PROG_TYPE_LIRC_MODE2, BPF_PROG_TYPE_FLOW_DISSECTOR,
> BPF_PROG_TYPE_CGROUP_SYSCTL, BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE,
> BPF_PROG_TYPE_CGROUP_SOCKOPT): Update constant values following missing
> entry in enum.
> * tests/bpf.c (BPF_PROG_LOAD_checks): Update expected outputs and add test.
> * tests/kernel_version.c (print_bpf_attr, main): Likewise.
> 
> Fixes: v4.24~49 "xlat: update bpf(2)-related constants"
> Fixes: v4.25~58 "xlat: add BPF_PROG_TYPE_SK_REUSEPORT to bpf_prog_types.in"
> Fixes: v4.26~12 "xlat: add flow dissector bpf program type constants"
> Fixes: v5.2~38 "xlat: update BPF_* constants"
> Fixes: v5.3~60 "xlat: update BPF_* constants"
> Signed-off-by: Paul Chaignon <paul.chaignon at gmail.com>

As you've probably noticed already, both patches are now merged.
Thanks!


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20191128/ba261502/attachment.bin>


More information about the Strace-devel mailing list