Lines Matching refs:task_ledgers
165 struct _task_ledger_indices task_ledgers = {-1, -1, -1, -1, -1, -1, -1};
369 task_ledgers.cpu_time = ledger_entry_add(t, "cpu_time", "sched", "ns");
370 task_ledgers.tkm_private = ledger_entry_add(t, "tkm_private",
372 task_ledgers.tkm_shared = ledger_entry_add(t, "tkm_shared", "physmem",
374 task_ledgers.phys_mem = ledger_entry_add(t, "phys_mem", "physmem",
376 task_ledgers.wired_mem = ledger_entry_add(t, "wired_mem", "physmem",
378 task_ledgers.platform_idle_wakeups = ledger_entry_add(t, "platform_idle_wakeups", "power",
380 task_ledgers.interrupt_wakeups = ledger_entry_add(t, "interrupt_wakeups", "power",
383 if ((task_ledgers.cpu_time < 0) || (task_ledgers.tkm_private < 0) ||
384 (task_ledgers.tkm_shared < 0) || (task_ledgers.phys_mem < 0) ||
385 (task_ledgers.wired_mem < 0) || (task_ledgers.platform_idle_wakeups < 0) ||
386 (task_ledgers.interrupt_wakeups < 0)) {
620 ledger_get_entries(task->ledger, task_ledgers.interrupt_wakeups,
622 ledger_get_entries(task->ledger, task_ledgers.platform_idle_wakeups,
643 if (!ledger_get_entries(task->ledger, task_ledgers.tkm_private, &credit,
648 if (!ledger_get_entries(task->ledger, task_ledgers.tkm_shared, &credit,
1882 task_ledgers.tkm_private, &credit,
1889 task_ledgers.tkm_shared, &credit, &debit)) {
1897 task_ledgers.tkm_private, &credit, &debit)) {
1902 task_ledgers.tkm_shared, &credit, &debit)) {
2074 ledger_get_entries(task->ledger, task_ledgers.interrupt_wakeups,
2076 ledger_get_entries(task->ledger, task_ledgers.platform_idle_wakeups,