aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2023-05-17 17:02:08 -1000
committerTejun Heo <[email protected]>2023-05-17 17:02:08 -1000
commit725e8ec59c56c65fb92e343c10a8842cd0d4f194 (patch)
treeb357ac51c47bdc4c24f87090a0d2191a84419b81 /drivers/fpga/fpga-mgr.c
parent854f5cc5b7355ceebf2bdfed97ea8f3c5d47a0c3 (diff)
workqueue: Add pwq->stats[] and a monitoring script
Currently, the only way to peer into workqueue operations is through tracing. While possible, it isn't easy or convenient to monitor per-workqueue behaviors over time this way. Let's add pwq->stats[] that track relevant events and a drgn monitoring script - tools/workqueue/wq_monitor.py. It's arguable whether this needs to be configurable. However, it currently only has several counters and the runtime overhead shouldn't be noticeable given that they're on pwq's which are per-cpu on per-cpu workqueues and per-numa-node on unbound ones. Let's keep it simple for the time being. v2: Patch reordered to earlier with fewer fields. Field will be added back gradually. Help message improved. Signed-off-by: Tejun Heo <[email protected]> Cc: Lai Jiangshan <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions