diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2019-06-04 09:00:17 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-10 15:20:13 -0400 |
commit | a77a05e2337df1347f4de96bfa313db7008fe8bd (patch) | |
tree | fe2b2112319ea8ed48a12c215d83687d74118084 /tools/perf/Documentation | |
parent | e39a12cbd2496edb4cab0f99efb0d217c55ba273 (diff) |
perf time-utils: Add support for multiple explicit time intervals
Currently only a single explicit time range is accepted. Add support for
multiple ranges separated by spaces, which requires the string to be
quoted. Update the time utils test accordingly.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190604130017.31207-20-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-diff.txt | 8 | ||||
-rw-r--r-- | tools/perf/Documentation/perf-report.txt | 3 | ||||
-rw-r--r-- | tools/perf/Documentation/perf-script.txt | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index 5732f69580ab..facd91e4e945 100644 --- a/tools/perf/Documentation/perf-diff.txt +++ b/tools/perf/Documentation/perf-diff.txt | |||
@@ -145,9 +145,11 @@ OPTIONS | |||
145 | <start>,<stop>. Times have the format seconds.nanoseconds. If 'start' | 145 | <start>,<stop>. Times have the format seconds.nanoseconds. If 'start' |
146 | is not given (i.e. time string is ',x.y') then analysis starts at | 146 | is not given (i.e. time string is ',x.y') then analysis starts at |
147 | the beginning of the file. If stop time is not given (i.e. time | 147 | the beginning of the file. If stop time is not given (i.e. time |
148 | string is 'x.y,') then analysis goes to the end of the file. Time string is | 148 | string is 'x.y,') then analysis goes to the end of the file. |
149 | 'a1.b1,c1.d1:a2.b2,c2.d2'. Use ':' to separate timestamps for different | 149 | Multiple ranges can be separated by spaces, which requires the argument |
150 | perf.data files. | 150 | to be quoted e.g. --time "1234.567,1234.789 1235," |
151 | Time string is'a1.b1,c1.d1:a2.b2,c2.d2'. Use ':' to separate timestamps | ||
152 | for different perf.data files. | ||
151 | 153 | ||
152 | For example, we get the timestamp information from 'perf script'. | 154 | For example, we get the timestamp information from 'perf script'. |
153 | 155 | ||
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index 3de029f6881d..8c4372819e11 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt | |||
@@ -415,7 +415,8 @@ OPTIONS | |||
415 | have the format seconds.nanoseconds. If start is not given (i.e. time | 415 | have the format seconds.nanoseconds. If start is not given (i.e. time |
416 | string is ',x.y') then analysis starts at the beginning of the file. If | 416 | string is ',x.y') then analysis starts at the beginning of the file. If |
417 | stop time is not given (i.e. time string is 'x.y,') then analysis goes | 417 | stop time is not given (i.e. time string is 'x.y,') then analysis goes |
418 | to end of file. | 418 | to end of file. Multiple ranges can be separated by spaces, which |
419 | requires the argument to be quoted e.g. --time "1234.567,1234.789 1235," | ||
419 | 420 | ||
420 | Also support time percent with multiple time ranges. Time string is | 421 | Also support time percent with multiple time ranges. Time string is |
421 | 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. | 422 | 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. |
diff --git a/tools/perf/Documentation/perf-script.txt b/tools/perf/Documentation/perf-script.txt index 878349cce968..d4e2e18a5881 100644 --- a/tools/perf/Documentation/perf-script.txt +++ b/tools/perf/Documentation/perf-script.txt | |||
@@ -364,7 +364,8 @@ include::itrace.txt[] | |||
364 | have the format seconds.nanoseconds. If start is not given (i.e. time | 364 | have the format seconds.nanoseconds. If start is not given (i.e. time |
365 | string is ',x.y') then analysis starts at the beginning of the file. If | 365 | string is ',x.y') then analysis starts at the beginning of the file. If |
366 | stop time is not given (i.e. time string is 'x.y,') then analysis goes | 366 | stop time is not given (i.e. time string is 'x.y,') then analysis goes |
367 | to end of file. | 367 | to end of file. Multiple ranges can be separated by spaces, which |
368 | requires the argument to be quoted e.g. --time "1234.567,1234.789 1235," | ||
368 | 369 | ||
369 | Also support time percent with multiple time ranges. Time string is | 370 | Also support time percent with multiple time ranges. Time string is |
370 | 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. | 371 | 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'. |