Skip to content
Commit 0849e102 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

Merge branch 'support-flex-arrays'



Andrii Nakryiko says:

====================
Add support for flexible array accesses in a relocatable manner in BPF CO-RE.
It's a typical pattern in C, and kernel in particular, to provide
a fixed-length struct with zero-sized or dimensionless array at the end. In
such cases variable-sized array contents follows immediately after the end of
a struct. This patch set adds support for such access pattern by allowing
accesses to such arrays.

Patch #1 adds libbpf support. Patch #2 adds few test cases for validation.
====================

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parents 01c6f7aa 5f2eecef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment