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
| ||
|
Date: Thu, 03 Oct 2019 19:21:00 +0200 From: Toke Høiland-Jørgensen <toke@...hat.com> To: Andrii Nakryiko <andrii.nakryiko@...il.com> Cc: Andrii Nakryiko <andriin@...com>, bpf <bpf@...r.kernel.org>, Networking <netdev@...r.kernel.org>, Alexei Starovoitov <ast@...com>, Daniel Borkmann <daniel@...earbox.net>, Kernel Team <kernel-team@...com> Subject: Re: [PATCH v2 bpf-next 4/7] selftests/bpf: split off tracing-only helpers into bpf_tracing.h Andrii Nakryiko <andrii.nakryiko@...il.com> writes: > On Thu, Oct 3, 2019 at 12:35 AM Toke Høiland-Jørgensen <toke@...hat.com> wrote: >> >> Andrii Nakryiko <andriin@...com> writes: >> >> > +/* a helper structure used by eBPF C program >> > + * to describe BPF map attributes to libbpf loader >> > + */ >> > +struct bpf_map_def { >> > + unsigned int type; >> > + unsigned int key_size; >> > + unsigned int value_size; >> > + unsigned int max_entries; >> > + unsigned int map_flags; >> > +}; >> >> Why is this still here? There's already an identical definition in libbpf.h... >> > > It's a BPF (kernel) side vs userspace side difference. bpf_helpers.h > are included from BPF program, while libbpf.h won't work on kernel > side. So we have to have a duplicate of bpf_map_def. Ah, yes, of course. Silly me :) -Toke
Powered by blists - more mailing lists