Lines Matching refs:acct
242 struct cpu_accounting_data *acct = &local_paca->accounting; in accumulate_stolen_time() local
252 sst = scan_dispatch_log(acct->starttime_user); in accumulate_stolen_time()
253 ust = scan_dispatch_log(acct->starttime); in accumulate_stolen_time()
254 acct->stime -= sst; in accumulate_stolen_time()
255 acct->utime -= ust; in accumulate_stolen_time()
256 acct->steal_time += ust + sst; in accumulate_stolen_time()
291 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_delta() local
297 stime = now - acct->starttime; in vtime_delta()
298 acct->starttime = now; in vtime_delta()
299 deltascaled = nowscaled - acct->startspurr; in vtime_delta()
300 acct->startspurr = nowscaled; in vtime_delta()
304 utime = acct->utime - acct->utime_sspurr; in vtime_delta()
305 acct->utime_sspurr = acct->utime; in vtime_delta()
327 acct->utime_scaled += utime_scaled; in vtime_delta()
335 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_system() local
340 acct->steal_time += steal_time; in vtime_account_system()
343 acct->gtime += stime; in vtime_account_system()
344 acct->utime_scaled += stime_scaled; in vtime_account_system()
347 acct->hardirq_time += stime; in vtime_account_system()
349 acct->softirq_time += stime; in vtime_account_system()
351 acct->stime += stime; in vtime_account_system()
353 acct->stime_scaled += stime_scaled; in vtime_account_system()
361 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_idle() local
364 acct->idle_time += stime + steal_time; in vtime_account_idle()
376 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_flush() local
378 if (acct->utime) in vtime_flush()
379 account_user_time(tsk, cputime_to_nsecs(acct->utime)); in vtime_flush()
381 if (acct->utime_scaled) in vtime_flush()
382 tsk->utimescaled += cputime_to_nsecs(acct->utime_scaled); in vtime_flush()
384 if (acct->gtime) in vtime_flush()
385 account_guest_time(tsk, cputime_to_nsecs(acct->gtime)); in vtime_flush()
387 if (acct->steal_time) in vtime_flush()
388 account_steal_time(cputime_to_nsecs(acct->steal_time)); in vtime_flush()
390 if (acct->idle_time) in vtime_flush()
391 account_idle_time(cputime_to_nsecs(acct->idle_time)); in vtime_flush()
393 if (acct->stime) in vtime_flush()
394 account_system_index_time(tsk, cputime_to_nsecs(acct->stime), in vtime_flush()
396 if (acct->stime_scaled) in vtime_flush()
397 tsk->stimescaled += cputime_to_nsecs(acct->stime_scaled); in vtime_flush()
399 if (acct->hardirq_time) in vtime_flush()
400 account_system_index_time(tsk, cputime_to_nsecs(acct->hardirq_time), in vtime_flush()
402 if (acct->softirq_time) in vtime_flush()
403 account_system_index_time(tsk, cputime_to_nsecs(acct->softirq_time), in vtime_flush()
406 acct->utime = 0; in vtime_flush()
407 acct->utime_scaled = 0; in vtime_flush()
408 acct->utime_sspurr = 0; in vtime_flush()
409 acct->gtime = 0; in vtime_flush()
410 acct->steal_time = 0; in vtime_flush()
411 acct->idle_time = 0; in vtime_flush()
412 acct->stime = 0; in vtime_flush()
413 acct->stime_scaled = 0; in vtime_flush()
414 acct->hardirq_time = 0; in vtime_flush()
415 acct->softirq_time = 0; in vtime_flush()