aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-05-09 00:41:44 +0000
committerDaniel Borkmann <[email protected]>2022-05-09 15:15:32 +0000
commit7715f549a9d80a82428a7925fa4a00518c53c35c (patch)
tree6da1158d453283f609e69c478b59225c6fb4491c /tools/lib/bpf/bpf_helpers.h
parentselftests/bpf: Use both syntaxes for field-based CO-RE helpers (diff)
downloadkernel-7715f549a9d80a82428a7925fa4a00518c53c35c.tar.gz
kernel-7715f549a9d80a82428a7925fa4a00518c53c35c.zip
libbpf: Complete field-based CO-RE helpers with field offset helper
Add bpf_core_field_offset() helper to complete field-based CO-RE helpers. This helper can be useful for feature-detection and for some more advanced cases of field reading (e.g., reading flexible array members). Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions