On Mon, Oct 12, 2026 at 11:40:11PM +0800, Leon Hwang wrote:
SNIP
> @@ -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