[PATCH v1 0/8] perf: Follow-up patches to improve time slice

From: Jin Yao
Date: Wed Jan 10 2018 - 02:05:47 EST


It's follow-up patches to improve the perf time slice feature
(perf report/script --time xxx)

1. Improve the error message
perf report: Improve error msg when no first/last sample time found
perf script: Improve error msg when no first/last sample time found

2. Fix an issue that illegal percent was accepted previously (e.g. 1abc%)
perf util: Improve error checking for time percent input

3. Omit the slice index if possible. For example,
perf report --stdio --time 10%/1 is equivalent to
perf report --stdio --time 10%

perf util: Support no index time percent slice

4. Add indication of time slices in perf report header.
perf report: Add an indication of what time slices are used

5. Remove the time slices number limitation in perf report/script
perf util: Allocate time slices buffer according to number of comma
perf report: Remove the time slices number limitation
perf script: Remove the time slices number limitation

Jin Yao (8):
perf report: Improve error msg when no first/last sample time found
perf script: Improve error msg when no first/last sample time found
perf util: Improve error checking for time percent input
perf util: Support no index time percent slice
perf report: Add an indication of what time slices are used
perf util: Allocate time slices buffer according to number of comma
perf report: Remove the time slices number limitation
perf script: Remove the time slices number limitation

tools/perf/Documentation/perf-report.txt | 2 +-
tools/perf/Documentation/perf-script.txt | 10 ++---
tools/perf/builtin-report.c | 30 +++++++++----
tools/perf/builtin-script.c | 21 +++++++---
tools/perf/util/time-utils.c | 72 +++++++++++++++++++++++++++++++-
tools/perf/util/time-utils.h | 2 +
6 files changed, 117 insertions(+), 20 deletions(-)

--
2.7.4