commit | 694860760f47dfe4e89230df4d0ffc76286e7a20 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Thu May 11 08:01:03 2023 -1000 |
committer | Tejun Heo <tj@kernel.org> | Thu May 11 08:01:03 2023 -1000 |
tree | a463e4ca7f4a2c0cf60b66bf55a8e31ac97f2393 | |
parent | 339778cdff67ad3278e47e1b43017fcd9975b6e2 [diff] |
workqueue: Track and monitor per-workqueue CPU time usage Now that wq_worker_tick() is there, we can easily track the rough CPU time consumption of each workqueue by charging the whole tick whenever a tick hits an active workqueue. While not super accurate, it provides reasonable visibility into the workqueues that consume a lot of CPU cycles. wq_monitor.py is updated to report the per-workqueue CPU times. Signed-off-by: Tejun Heo <tj@kernel.org>