Thread (44 messages) 44 messages, 6 authors, 6d ago

Re: [PATCH bpf-next v2 09/21] bpf: Add bpf_trampoline_multi_prog_attach/detach()

flat view

From: Jiri Olsa <hidden>
Date: 2026-10-14 21:43:18
Also in: bpf, linux-kselftest, lkml

On Mon, Oct 12, 2026 at 11:40:11PM +0800, Leon Hwang wrote:

SNIP
quoted hunk ↗ jump to hunk
@@ -2089,10 +2101,25 @@ struct bpf_tracing_link {
 	struct bpf_prog *tgt_prog;
 };
 
+enum bpf_text_poke_type {
+	BPF_MOD_NOP,
+	BPF_MOD_CALL,
+	BPF_MOD_JUMP,
+};
+
+struct bpf_text_poke {
+	void *ip;
+	void *old_addr;
+	void *new_addr;
+	enum bpf_text_poke_type old_t;
+	enum bpf_text_poke_type new_t;
+};
+
 struct bpf_tracing_multi_node {
 	struct bpf_tramp_node node;
 	struct bpf_trampoline *trampoline;
 	struct ftrace_func_entry entry;
+	struct bpf_text_poke poke;
could we have union of entry and poke ?

jirka
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help