allow kfuncs in tracepoint and perf event
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesApplied 2/2
- v23 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- map tracepoint and perf event progs to tracing kfunc hook
- expand existing verifier tests for kfuncs
- remove explicit registrations from v2
- no longer including kprobes
Patches in v3 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: allow kfuncs within tracepoint and perf event programskernel/ | +2 | 0 replies | Applied |
| 2/2 | bpf/selftests: coverage for tp and perf event progs using kfuncstools/ | +48 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH bpf-next v3 0/2] allow kfuncs in tracepoint and perf event
It is possible to call a cpumask kfunc within a raw tp_btf program but not possible within tracepoint or perf event programs. Currently, the verifier receives -EACCESS from fetch_kfunc_meta() as a result of not finding any kfunc hook associated with these program types.
This patch series associates tracepoint and perf event program types with the tracing hook and includes test coverage.
Pre-submission CI run: https://github.com/kernel-patches/bpf/pull/7674
v3:
- map tracepoint and perf event progs to tracing kfunc hook
- expand existing verifier tests for kfuncs
- remove explicit registrations from v2
- no longer including kprobes
v2:
- create new kfunc hooks for tracepoint and perf event
- map tracepoint, and perf event prog types to kfunc hooks
- register cpumask kfuncs with prog types in focus
- expand existing verifier tests for cpumask kfuncs
v1:
- map tracepoint type progs to tracing kfunc hook
- new selftests for calling cpumask kfuncs in tracepoint prog
---
JP Kobryn (2):
bpf: allow kfuncs within tracepoint and perf event programs bpf/selftests: coverage for new program types using cpumask kfuncs
kernel/bpf/btf.c | 2 ++ .../bpf/progs/verifier_kfunc_prog_types.c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+)
Signature · 1 line
2.46.0