]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kperf/task_samplers.c
xnu-3789.51.2.tar.gz
[apple/xnu.git] / osfmk / kperf / task_samplers.c
index ae49da4b420f3706a5db52431ead499d6b03b73c..f976518d4ec50eb7cfc401366f5ab9f4cfec9947 100644 (file)
@@ -33,8 +33,6 @@
 
 #include <kern/task.h>
 
-extern boolean_t workqueue_get_pwq_exceeded(void *v, boolean_t *exceeded_total,
-                                            boolean_t *exceeded_constrained);
 extern boolean_t memorystatus_proc_is_dirty_unsafe(void *v);
 
 void
@@ -43,8 +41,6 @@ kperf_task_snapshot_sample(struct kperf_task_snapshot *tksn,
 {
        thread_t thread;
        task_t task;
-       boolean_t wq_state_available = FALSE;
-       boolean_t exceeded_total, exceeded_constrained;
 
        BUF_INFO(PERF_TK_SNAP_SAMPLE | DBG_FUNC_START);
 
@@ -70,22 +66,6 @@ kperf_task_snapshot_sample(struct kperf_task_snapshot *tksn,
        }
 #endif
 
-       if (task->bsd_info) {
-               wq_state_available =
-                       workqueue_get_pwq_exceeded(task->bsd_info, &exceeded_total,
-                                                  &exceeded_constrained);
-       }
-       if (wq_state_available) {
-               tksn->kptksn_flags |= KPERF_TASK_FLAG_WQ_FLAGS_VALID;
-
-               if (exceeded_total) {
-                       tksn->kptksn_flags |= KPERF_TASK_FLAG_WQ_EXCEEDED_TOTAL;
-               }
-               if (exceeded_constrained) {
-                       tksn->kptksn_flags |= KPERF_TASK_FLAG_WQ_EXCEEDED_CONSTRAINED;
-               }
-       }
-
        tksn->kptksn_suspend_count = task->suspend_count;
        tksn->kptksn_pageins = task->pageins;
        tksn->kptksn_user_time_in_terminated_threads = task->total_user_time;