Skip to content

Commit

Permalink
bpf: use krobe.multi
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Li <[email protected]>
Co-authored-by: Martynas Pumputis <[email protected]>
  • Loading branch information
vincentmli and brb committed Sep 27, 2022
1 parent c358b14 commit 2c8477c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bpf/kprobe_pwru.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2c8477c

Please sign in to comment.