Re: [RFC PATCH v8 47/49] perf tools: Generate prologue for BPF programs

From: Alexei Starovoitov
Date: Fri Jun 26 2015 - 04:40:50 EST


On 6/24/15 5:31 AM, Wang Nan wrote:
This patch generates prologue for each 'struct probe_trace_event' for
fetching arguments for BPF programs.

After bpf__probe(), iterate over each programs to check whether
prologue is required. If non of tev have argument, simply skip
preprocessor hooking. For those who prologue is required, calls
bpf__gen_prologue() and paste original instruction after prologue.

please don't abbreviate tev, pev in commit logs. It's hard to read
for anyone but core perf experts.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/