diff options
author | Adrian Hunter <[email protected]> | 2020-09-02 13:57:07 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-04 14:38:15 -0300 |
commit | a8fcbd269b4340c36dbf99b4453bcbfe128d93fb (patch) | |
tree | cae1fe729dd0558552f4956691a529ec21cbab94 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1f4390d825cc04e91a276c78f984dd2d7fe01e62 (diff) |
perf tools: Add FIFO file names as alternative options to --control
Enable the --control option to accept file names as an alternative to
file descriptors.
Example:
$ mkfifo perf.control
$ mkfifo perf.ack
$ cat perf.ack &
[1] 6808
$ perf record --control fifo:perf.control,perf.ack -- sleep 300 &
[2] 6810
$ echo disable > perf.control
$ Events disabled
ack
$ echo enable > perf.control
$ Events enabled
ack
$ echo disable > perf.control
$ Events disabled
ack
$ kill %2
[ perf record: Woken up 4 times to write data ]
$ [ perf record: Captured and wrote 0.018 MB perf.data (7 samples) ]
[1]- Done cat perf.ack
[2]+ Terminated perf record --control fifo:perf.control,perf.ack -- sleep 300
$
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Alexey Budankov <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions