#include <kperf/context.h>
#include <kperf/action.h>
-#include <chud/chud_xnu.h>
-
uint32_t kpc_actionid[KPC_MAX_COUNTERS];
#define COUNTERBUF_SIZE_PER_CPU (KPC_MAX_COUNTERS * sizeof(uint64_t))
task_lock(task);
if (state)
- task->t_chud |= TASK_KPC_FORCED_ALL_CTRS;
+ task->t_kpc |= TASK_KPC_FORCED_ALL_CTRS;
else
- task->t_chud &= ~TASK_KPC_FORCED_ALL_CTRS;
+ task->t_kpc &= ~TASK_KPC_FORCED_ALL_CTRS;
task_unlock(task);
}
kpc_task_get_forced_all_ctrs(task_t task)
{
assert(task);
- return task->t_chud & TASK_KPC_FORCED_ALL_CTRS ? TRUE : FALSE;
+ return task->t_kpc & TASK_KPC_FORCED_ALL_CTRS ? TRUE : FALSE;
}
int