Skip to content
Snippets Groups Projects
Commit 7e2c7a3f authored by Martin KaFai Lau's avatar Martin KaFai Lau
Browse files

Merge branch 'libbpf: further struct_ops fixes and improvements'


Andrii Nakryiko says:

====================
Fix yet another case of mishandling SEC("struct_ops") programs that were
nulled out programmatically through BPF skeleton by the user.

While at it, add some improvements around detecting and reporting errors,
specifically a common case of declaring SEC("struct_ops") program, but
forgetting to actually make use of it by setting it as a callback
implementation in SEC(".struct_ops") variable (i.e., map) declaration.

A bunch of new selftests are added as well.
====================

Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parents 93d1c2da 7b9959b8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment