diff options
| author | Jiri Olsa <[email protected]> | 2020-12-26 23:20:37 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-01-20 17:34:21 +0000 |
| commit | f186cd614878dc886edea5df42ca3225d5ab97ea (patch) | |
| tree | e6debe3d3e27007dd83dee68cdfac16ed155c1a3 /tools/perf/builtin-script.c | |
| parent | perf tools: Add 'evlist' control command (diff) | |
| download | kernel-f186cd614878dc886edea5df42ca3225d5ab97ea.tar.gz kernel-f186cd614878dc886edea5df42ca3225d5ab97ea.zip | |
perf tools: Add 'stop' control command
Adding control 'stop' command to stop perf record.
When it is received, perf will set the 'done' variable to 1 to stop its
mmap ring buffer reading loop.
Example session:
terminal 1:
# mkfifo control ack
# perf record --control=fifo:control,ack
terminal 2:
# echo stop > control
terminal 1:
[ perf record: Woken up 7 times to write data ]
[ perf record: Captured and wrote 3.214 MB perf.data (38280 samples) ]
#
Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alexei Budankov <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[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
