aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
author晏艳(采苓) <[email protected]>2023-05-06 15:42:53 +0800
committerPeter Zijlstra <[email protected]>2023-05-08 10:58:39 +0200
commita6fcdd8d95f7486150b3faadfea119fc3dfc3b74 (patch)
tree855ebc124be72a6d5a0def233150e5b9b7b3985a /tools/perf/scripts/python
parentbf2dc42d6beb890c995b8b09f881ef1b37259107 (diff)
sched/debug: Correct printing for rq->nr_uninterruptible
Commit e6fe3f422be1 ("sched: Make multiple runqueue task counters 32-bit") changed the type for rq->nr_uninterruptible from "unsigned long" to "unsigned int", but left wrong cast print to /sys/kernel/debug/sched/debug and to the console. For example, nr_uninterruptible's value is fffffff7 with type "unsigned int", (long)nr_uninterruptible shows 4294967287 while (int)nr_uninterruptible prints -9. So using int cast fixes wrong printing. Signed-off-by: Yan Yan <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions