Skip to content

Commit

Permalink
bpf/trace: use bpf_get_func_ip() instead of ctx->ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwinger233 committed Mar 28, 2024
1 parent 52ac985 commit c84a6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace/kern/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ filter_l3_and_l4(struct sk_buff *skb)
static __always_inline void
set_meta(struct meta *meta, struct sk_buff *skb, struct pt_regs *ctx)
{
meta->pc = BPF_CORE_READ(ctx, ip);
meta->pc = bpf_get_func_ip(ctx);
meta->skb = (__u64)skb;
meta->second_param = PT_REGS_PARM2(ctx);
meta->mark = BPF_CORE_READ(skb, mark);
Expand Down

0 comments on commit c84a6a9

Please sign in to comment.