diff options
author | Wang Yong <[email protected]> | 2023-02-13 14:08:08 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-04-08 13:45:36 -0700 |
commit | eca7de7cdc382eb6e0d344c07b1449ed75f5b435 (patch) | |
tree | 3ba1c86dc613b4a5647c82a00d2c73403c494850 /scripts/gdb/linux/rbtree.py | |
parent | aa318c48808c0aa73216bd94c54c4553d3663add (diff) |
delayacct: improve the average delay precision of getdelay tool to microsecond
Improve the average delay precision of getdelay tool to microsecond. When
using the getdelay tool, it is sometimes found that the average delay
except CPU is not 0, but display is 0, because the precison is too low.
For example, see delay average of SWAP below when using ZRAM.
print delayacct stats ON
PID 32915
CPU count real total virtual total delay total delay average
339202 2793871936 9233585504 7951112 0.000ms
IO count delay total delay average
41 419296904 10ms
SWAP count delay total delay average
242589 1045792384 0ms
This wrong display is misleading, so improve the millisecond precision of
the average delay to microsecond just like CPU. Then user would get more
accurate information of delay time.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wang Yong <[email protected]>
Reviewed-by: Yang Yang <[email protected]>
Cc: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/rbtree.py')
0 files changed, 0 insertions, 0 deletions