diff options
author | Wang Nan <[email protected]> | 2015-11-16 12:10:13 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-11-18 17:51:04 -0300 |
commit | a08357d8dc7d3025d1094f727ad1f7e837766f93 (patch) | |
tree | 9a53b2c350d1fcc8f93512b29ddca4a21846d8d4 /tools/perf/scripts/python | |
parent | bfc077b4cf106793b30bf942e426ee99f1f4ac44 (diff) |
perf bpf: Generate prologue for BPF programs
This patch generates a prologue for each 'struct probe_trace_event' for
fetching arguments for BPF programs.
After bpf__probe(), iterate over each program to check whether prologues are
required. If none of the 'struct perf_probe_event' programs will attach to have
at least one argument, simply skip preprocessor hooking. For those who a
prologue is required, call bpf__gen_prologue() and paste the original
instruction after the prologue.
Signed-off-by: Wang Nan <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions