aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2019-03-01 12:35:36 +0200
committerArnaldo Carvalho de Melo <[email protected]>2019-03-01 14:48:30 -0300
commit076333870c2f5bdd9b6d31e7ca1909cf0c84cbfa (patch)
tree22562c2f3c6a1cfe9bfd63c23ab1eca1052fb657 /tools/perf/scripts/python
parentc1c49204b0114daf210c79d66a5980c8e6f8f8fb (diff)
perf intel-pt: Fix divide by zero when TSC is not available
When TSC is not available, "timeless" decoding is used but a divide by zero occurs if perf_time_to_tsc() is called. Ensure the divisor is not zero. Signed-off-by: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: [email protected] # v4.9+ Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions