Re: [RFC PATCH 2/5] bpf: Pass trace_probe to bpf_prog for variable fetching

2015-05-18 Thread Alexei Starovoitov
On 5/17/15 10:30 PM, He Kuang wrote: Add new structure bpf_pt_regs, which contains both original 'ctx'(pt_regs) and trabe_probe pointer, and pass this new pointer to bpf prog for variable fetching. Signed-off-by: He Kuang --- kernel/trace/trace_kprobe.c | 11 +-- kernel/trace/trace_p

[RFC PATCH 2/5] bpf: Pass trace_probe to bpf_prog for variable fetching

2015-05-17 Thread He Kuang
Add new structure bpf_pt_regs, which contains both original 'ctx'(pt_regs) and trabe_probe pointer, and pass this new pointer to bpf prog for variable fetching. Signed-off-by: He Kuang --- kernel/trace/trace_kprobe.c | 11 +-- kernel/trace/trace_probe.h | 5 + 2 files changed, 14 i