]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/workqueue.py
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / tools / lldbmacros / workqueue.py
index 26bb400f7a566a0a4e66abe04a366bbb82928cdc..a3b91bf26a182386729f1fcf848e00c807034eb9 100755 (executable)
@@ -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):