]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/profile.c
xnu-517.tar.gz
[apple/xnu.git] / osfmk / kern / profile.c
index 1b3bfa0c35fd320a16b2c74a0cbb7ead81e69a69..29f57a3eb7e9ef2dc83fbcb64d4e689d27b86476 100644 (file)
@@ -464,10 +464,10 @@ task_sample(
            profile_thread_id = /* then start profile thread. */
                kernel_thread(kernel_task, profile_thread);
        task->task_profiled = turnon;  
-       actual = task->thr_act_count; 
-       for (i = 0, thr_act = (thread_act_t)queue_first(&task->thr_acts);
+       actual = task->thread_count; 
+       for (i = 0, thr_act = (thread_act_t)queue_first(&task->threads);
             i < actual;
-            i++, thr_act = (thread_act_t)queue_next(&thr_act->thr_acts)) {
+            i++, thr_act = (thread_act_t)queue_next(&thr_act->task_threads)) {
                  if (!thr_act->act_profiled_own) {
                    thr_act->act_profiled = turnon;
                    if (turnon) {