using example/minimal/ for use case #265
Unanswered
venumadhavjosyula
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using example/minimal/uprobe.bpf.c and example/minimal/uprobe.c for our use-case
In the code below
SEC("uprobe//home/vjosyula/work/bpftime_enunomia/building_from_source/dpdk_examples/The-DPDK-Examples/build/simple_l3fwd:fwd_pckt")
int do_uprobe_trace(struct pt_regs *ctx)
{
unsigned port_id;
bpf_probe_read(&port_id, sizeof(unsigned ), (void *)PT_REGS_PARM1(ctx));
bpf_printk("target_func called. Ox%x\n",port_id);
return 0;
}
The definition of fwd_pkt is as follows,
void fwd_pckt(struct rte_mbuf *pckt, unsigned port_id, struct rte_hash *route_tbl)
In in do_uprobe_trace , how do I access these three i/p params using struct pt_regs *ctx ?
Can you please suggest. I want to access i/p params of function being uprobed using *ctx
Beta Was this translation helpful? Give feedback.
All reactions