aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorJin Yao <[email protected]>2017-12-08 13:13:43 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-01-08 14:39:09 +0000
commit13a70f350665580708ab11f725d3578eaacbf2d0 (patch)
tree028ed4503bee5310fe88cf54134e869efb8fe0bb /tools/perf/scripts/python/intel-pt-events.py
parentperf record: Record the first and last sample time in the header (diff)
downloadkernel-13a70f350665580708ab11f725d3578eaacbf2d0.tar.gz
kernel-13a70f350665580708ab11f725d3578eaacbf2d0.zip
perf tools: Create function to parse time percent
Current perf report/script/... have a --time option to limit the time range of output. But right now it only supports absolute time, add support for time percentage. For example: 1. Select the second 10% time slice perf report --time 10%/2 2. Select from 0% to 10% time slice perf report --time 0%-10% It also support the multiple time ranges. 3. Select the first and second 10% time slices perf report --time 10%/1,10%/2 4. Select from 0% to 10% and 30% to 40% slices perf report --time 0%-10%,30%-40% Changelog: v4: An issue is found. Following passes. perf script --time 10%/10x12321xsdfdasfdsafdsafdsa Now it uses strtol to replace atoi. Committer notes: This just puts in place the infrastructure, so the examples in this cset comment will only work later, after more patches in this series are applied. Signed-off-by: Jin Yao <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions