Re: [RFC PATCH 3/5] bpf: Add helper function for fetching variables at probe point

2015-05-18 Thread Alexei Starovoitov
On 5/17/15 10:30 PM, He Kuang wrote: This helper function uses kernel structure trace_probe and related fetch functions for fetching variables described in 'SEC' to bpf stack. Signed-off-by: He Kuang ... +/* Store the value of each argument */ +static void +bpf_store_trace_args(struct pt_regs

[RFC PATCH 3/5] bpf: Add helper function for fetching variables at probe point

2015-05-17 Thread He Kuang
This helper function uses kernel structure trace_probe and related fetch functions for fetching variables described in 'SEC' to bpf stack. Signed-off-by: He Kuang --- include/uapi/linux/bpf.h | 1 + kernel/trace/bpf_trace.c | 38 ++ samples/bpf/bpf_helpers.