Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1549602
| From | Jiri Olsa <jolsa@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/7] perf tools: Add switch-output size and time threshold options |
| Date | 2017-01-03 09:30 +0100 |
| Message-ID | <sVsDM-3nL-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
hi,
adding a way to configure switch data output
for size and time, like:
$ sudo perf record -e 'sched:*' --switch-output=10M -avg
callchain: type FP
switch-output with 10M size threshold
mmap size 528384B
[ perf record: dump data: Woken up 37 times ]
[ perf record: Dump perf.data.2017010309135512 ]
[ perf record: dump data: Woken up 39 times ]
[ perf record: Dump perf.data.2017010309135771 ]
[ perf record: dump data: Woken up 38 times ]
[ perf record: Dump perf.data.2017010309140005 ]
^C[ perf record: Woken up 16 times to write data ]
[ perf record: Dump perf.data.2017010309140111 ]
[ perf record: Captured and wrote 4.748 MB perf.data.<timestamp> ]
...
the default for switch-output option stays
and does the SIGUSR2 output switch
Also available in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
Cc: Wang Nan <wangnan0@huawei.com>
---
Jiri Olsa (7):
tools lib subcmd: Add OPT_STRING_OPTARG_SET option
perf record: Make __record_options static
perf record: Fix --switch-output documentation and comment
perf record: Add struct switch_output
perf record: Change switch-output option to take optional argument
perf record: Add switch-output size option argument
perf record: Add switch-output time option argument
tools/lib/subcmd/parse-options.c | 3 ++
tools/lib/subcmd/parse-options.h | 5 ++++
tools/perf/Documentation/perf-record.txt | 13 +++++++--
tools/perf/builtin-record.c | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------
4 files changed, 139 insertions(+), 16 deletions(-)
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/7] perf tools: Add switch-output size and time threshold options Jiri Olsa <jolsa@kernel.org> - 2017-01-03 09:30 +0100
[PATCH 1/7] tools lib subcmd: Add OPT_STRING_OPTARG_SET option Jiri Olsa <jolsa@kernel.org> - 2017-01-03 09:30 +0100
[tip:perf/urgent] tools lib subcmd: Add OPT_STRING_OPTARG_SET option tip-bot for Jiri Olsa <tipbot@zytor.com> - 2017-01-05 09:00 +0100
[PATCH 4/7] perf record: Add struct switch_output Jiri Olsa <jolsa@kernel.org> - 2017-01-03 09:30 +0100
[PATCH 5/7] perf record: Change switch-output option to take optional argument Jiri Olsa <jolsa@kernel.org> - 2017-01-03 09:30 +0100
Re: [PATCH 0/7] perf tools: Add switch-output size and time threshold options "Wangnan (F)" <wangnan0@huawei.com> - 2017-01-03 11:00 +0100
Re: [PATCH 0/7] perf tools: Add switch-output size and time threshold options Jiri Olsa <jolsa@redhat.com> - 2017-01-03 11:40 +0100
Re: [PATCH 0/7] perf tools: Add switch-output size and time threshold options Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-10 14:40 +0100
Re: [PATCH 0/7] perf tools: Add switch-output size and time threshold options Jiri Olsa <jolsa@redhat.com> - 2017-01-10 19:50 +0100
csiph-web