From 2c8477c60f474647cb0b27f58fdaaf9243849b18 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Tue, 27 Sep 2022 21:24:16 +0000 Subject: [PATCH] bpf: use krobe.multi Signed-off-by: Vincent Li Co-authored-by: Martynas Pumputis --- bpf/kprobe_pwru.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bpf/kprobe_pwru.c b/bpf/kprobe_pwru.c index 73e54631..1639fedb 100644 --- a/bpf/kprobe_pwru.c +++ b/bpf/kprobe_pwru.c @@ -380,35 +380,35 @@ handle_everything(struct sk_buff *skb, struct pt_regs *ctx) { return 0; } -SEC("kprobe/skb-1") +SEC("kprobe.multi/skb-1") int kprobe_skb_1(struct pt_regs *ctx) { struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM1(ctx); return handle_everything(skb, ctx); } -SEC("kprobe/skb-2") +SEC("kprobe.multi/skb-2") int kprobe_skb_2(struct pt_regs *ctx) { struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM2(ctx); return handle_everything(skb, ctx); } -SEC("kprobe/skb-3") +SEC("kprobe.multi/skb-3") int kprobe_skb_3(struct pt_regs *ctx) { struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM3(ctx); return handle_everything(skb, ctx); } -SEC("kprobe/skb-4") +SEC("kprobe.multi/skb-4") int kprobe_skb_4(struct pt_regs *ctx) { struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM4(ctx); return handle_everything(skb, ctx); } -SEC("kprobe/skb-5") +SEC("kprobe.multi/skb-5") int kprobe_skb_5(struct pt_regs *ctx) { struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM5(ctx);