summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorChangwoo Min <changwoo@igalia.com>2025-02-02 06:37:48 +0300
committerTejun Heo <tj@kernel.org>2025-02-02 20:40:35 +0300
commit029b6ce733712a41421955194b113f283dcb1026 (patch)
tree8d2c2c469c98fb917c338fdbb61e13395660c3cf /tools/perf/scripts/python/task-analyzer.py
parent1626e5ef0b00386a4fd083fa7c46c8edbd75f9b4 (diff)
downloadlinux-029b6ce733712a41421955194b113f283dcb1026.tar.xz
sched_ext: Fix incorrect time delta calculation in time_delta()
When (s64)(after - before) > 0, the code returns the result of (s64)(after - before) > 0 while the intended result should be (s64)(after - before). That happens because the middle operand of the ternary operator was omitted incorrectly, returning the result of (s64)(after - before) > 0. Thus, add the middle operand -- (s64)(after - before) -- to return the correct time calculation. Fixes: d07be814fc71 ("sched_ext: Add time helpers for BPF schedulers") Signed-off-by: Changwoo Min <changwoo@igalia.com> Acked-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions