diff options
author | Paul E. McKenney <[email protected]> | 2024-07-01 09:49:49 -0700 |
---|---|---|
committer | Neeraj Upadhyay <[email protected]> | 2024-07-29 07:44:38 +0530 |
commit | c1972c8dc987769eac8e5dede536d3cff489c6ee (patch) | |
tree | 48faf64e9280f47395d36dda4184b7d780a7f35a /tools/perf/scripts/python | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
locking/csd_lock: Print large numbers as negatives
The CSD-lock-hold diagnostics from CONFIG_CSD_LOCK_WAIT_DEBUG are
printed in nanoseconds as unsigned long longs, which is a bit obtuse for
human readers when timing bugs result in negative CSD-lock hold times.
Yes, there are some people to whom it is immediately obvious that
18446744073709551615 is really -1, but for the rest of us...
Therefore, print these numbers as signed long longs, making the negative
hold times immediately apparent.
Reported-by: Rik van Riel <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Cc: Imran Khan <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Leonardo Bras <[email protected]>
Cc: "Peter Zijlstra (Intel)" <[email protected]>
Cc: Rik van Riel <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Signed-off-by: Neeraj Upadhyay <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions