bpf: Support fentry/fexit for functions with union args
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Support fentry/fexit for functions with union argskernel/ | +2 | 2 replies | |
| 2/2 | selftests/bpf: Add test to access union argument in tracing programnet/ tools/ | +25 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf-next 0/2] bpf: Support fentry/fexit for functions with union args
While tracing 'release_pages' with bpfsnoop[0], the verifier reports:
The function release_pages arg0 type UNION is unsupported.
However, it should be acceptable to trace functions that have 'union' arguments.
This patch set enables such support in the verifier by allowing 'union' as a valid argument type.
Links:
[0] https://github.com/bpfsnoop/bpfsnoop
Leon Hwang (2):
bpf: Allow tracing union-arg functions
selftests/bpf: Add test to access union argument in tracing program
kernel/bpf/btf.c | 4 ++-- net/bpf/test_run.c | 14 +++++++++++++- .../selftests/bpf/progs/verifier_btf_ctx_access.c | 12 ++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-)
--
2.50.1