aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2016-04-08 15:07:24 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-04-12 01:17:45 +0000
commitd78885739a7df111dc7b081f8a09e08a5fcfecc2 (patch)
treeb1bf3df9c925992b7e2192835d62c3dedfaa7e9d /tools/perf/builtin-script.c
parentperf dwarf: Guard !x86_64 definitions under #ifdef else clause (diff)
downloadkernel-d78885739a7df111dc7b081f8a09e08a5fcfecc2.tar.gz
kernel-d78885739a7df111dc7b081f8a09e08a5fcfecc2.zip
perf bpf: Clone bpf stdout events in multiple bpf scripts
This patch allows cloning bpf-output event configuration among multiple bpf scripts. If there exist a map named '__bpf_output__' and not configured using 'map:__bpf_output__.event=', this patch clones the configuration of another '__bpf_stdout__' map. For example, following command: # perf trace --ev bpf-output/no-inherit,name=evt/ \ --ev ./test_bpf_trace.c/map:__bpf_stdout__.event=evt/ \ --ev ./test_bpf_trace2.c usleep 100000 equals to: # perf trace --ev bpf-output/no-inherit,name=evt/ \ --ev ./test_bpf_trace.c/map:__bpf_stdout__.event=evt/ \ --ev ./test_bpf_trace2.c/map:__bpf_stdout__.event=evt/ \ usleep 100000 Signed-off-by: Wang Nan <[email protected]> Suggested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[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/builtin-script.c')
0 files changed, 0 insertions, 0 deletions