X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eb6b6ca394357805f2bdba989abae309f718b4d8..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tools/lldbmacros/workqueue.py diff --git a/tools/lldbmacros/workqueue.py b/tools/lldbmacros/workqueue.py index 26bb400f7..a3b91bf26 100755 --- a/tools/lldbmacros/workqueue.py +++ b/tools/lldbmacros/workqueue.py @@ -100,7 +100,7 @@ def GetWorkqueueThreadRequestSummary(proc, req): if req.tr_kq_wakeup: state += "*" thread = 0 - if int(req.tr_state) in [3, 4]: + if int(req.tr_state) in [4, 5]: # BINDING or BOUND thread = req.tr_thread qos = int(req.tr_qos) @@ -159,11 +159,11 @@ def ShowProcWorkqueue(cmd_args=None, cmd_options={}, O=None): print "" if wq.wq_event_manager_threadreq: print GetWorkqueueThreadRequestSummary(proc, wq.wq_event_manager_threadreq) - for req in IteratePriorityQueue(wq.wq_overcommit_queue, 'struct workq_threadreq_s', 'tr_entry'): + for req in IterateSchedPriorityQueue(wq.wq_overcommit_queue, 'struct workq_threadreq_s', 'tr_entry'): print GetWorkqueueThreadRequestSummary(proc, req) - for req in IteratePriorityQueue(wq.wq_constrained_queue, 'struct workq_threadreq_s', 'tr_entry'): + for req in IterateSchedPriorityQueue(wq.wq_constrained_queue, 'struct workq_threadreq_s', 'tr_entry'): print GetWorkqueueThreadRequestSummary(proc, req) - for req in IteratePriorityQueue(wq.wq_special_queue, 'struct workq_threadreq_s', 'tr_entry'): + for req in IterateSchedPriorityQueue(wq.wq_special_queue, 'struct workq_threadreq_s', 'tr_entry'): print GetWorkqueueThreadRequestSummary(proc, req) with O.table(GetWQThreadSummary.header, indent=True):