bpf: Two trampoline cleanups
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
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Initialize ftrace_managed in bpf_trampoline_get()kernel/ | +2 | 0 replies | Applied |
| 2/2 | bpf: Drop unnecessary ftrace_location() in register/unregister/modify_fentry_multi()kernel/ | +3 | 0 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Olsa |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/2] bpf: Two trampoline cleanups
Split these two cleanups for trampoline from the series
"[PATCH bpf-next v2 00/21] bpf: Add tracing_multi link support for bpf progs" [1].
Since the tr->ip is ftrace_location()-ed in bpf_trampoline_lookup(), no need to call ftrace_location(tr->ip) again in register/unregister/modify_fentry_multi(). Also no need to call ftrace_location() for the target addr in register_fentry(), when initialize ftrace_managed in bpf_trampoline_get().
Links:
[1] https://lore.kernel.org/bpf/[email protected]/
Leon Hwang (2):
bpf: Initialize ftrace_managed in bpf_trampoline_get()
bpf: Drop unnecessary ftrace_location() in
register/unregister/modify_fentry_multi()
kernel/bpf/trampoline.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-)
Signature · 1 line
2.55.0