BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: Support fentry/fexit for functions with union args
@ 2025-09-05 13:32 Leon Hwang
  2025-09-05 13:32 ` [PATCH bpf-next 1/2] " Leon Hwang
  2025-09-05 13:32 ` [PATCH bpf-next 2/2] selftests/bpf: Add test to access union argument in tracing program Leon Hwang
  0 siblings, 2 replies; 5+ messages in thread
From: Leon Hwang @ 2025-09-05 13:32 UTC (permalink / raw)
  To: bpf
  Cc: ast, andrii, daniel, martin.lau, eddyz87, song, yonghong.song,
	leon.hwang, kernel-patches-bot

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-12  2:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 13:32 [PATCH bpf-next 0/2] bpf: Support fentry/fexit for functions with union args Leon Hwang
2025-09-05 13:32 ` [PATCH bpf-next 1/2] " Leon Hwang
2025-09-10  0:54   ` Alexei Starovoitov
2025-09-12  2:52     ` Leon Hwang
2025-09-05 13:32 ` [PATCH bpf-next 2/2] selftests/bpf: Add test to access union argument in tracing program Leon Hwang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox