aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/bp_signal_overflow.c
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2015-11-16 12:10:13 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-11-18 20:51:04 +0000
commita08357d8dc7d3025d1094f727ad1f7e837766f93 (patch)
tree9a53b2c350d1fcc8f93512b29ddca4a21846d8d4 /tools/perf/tests/bp_signal_overflow.c
parentperf bpf: Add prologue for BPF programs for fetching arguments (diff)
downloadkernel-a08357d8dc7d3025d1094f727ad1f7e837766f93.tar.gz
kernel-a08357d8dc7d3025d1094f727ad1f7e837766f93.zip
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/tests/bp_signal_overflow.c')
0 files changed, 0 insertions, 0 deletions