Lines Matching refs:acct

232 	struct cpu_accounting_data *acct = &local_paca->accounting;  in accumulate_stolen_time()  local
242 sst = scan_dispatch_log(acct->starttime_user); in accumulate_stolen_time()
243 ust = scan_dispatch_log(acct->starttime); in accumulate_stolen_time()
244 acct->stime -= sst; in accumulate_stolen_time()
245 acct->utime -= ust; in accumulate_stolen_time()
246 acct->steal_time += ust + sst; in accumulate_stolen_time()
274 static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, in vtime_delta_scaled() argument
283 deltascaled = nowscaled - acct->startspurr; in vtime_delta_scaled()
284 acct->startspurr = nowscaled; in vtime_delta_scaled()
285 utime = acct->utime - acct->utime_sspurr; in vtime_delta_scaled()
286 acct->utime_sspurr = acct->utime; in vtime_delta_scaled()
308 acct->utime_scaled += utime_scaled; in vtime_delta_scaled()
319 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_delta() local
324 stime = now - acct->starttime; in vtime_delta()
325 acct->starttime = now; in vtime_delta()
327 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
337 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_kernel() local
342 acct->steal_time += steal_time; in vtime_account_kernel()
345 acct->gtime += stime; in vtime_account_kernel()
347 acct->utime_scaled += stime_scaled; in vtime_account_kernel()
351 acct->hardirq_time += stime; in vtime_account_kernel()
353 acct->softirq_time += stime; in vtime_account_kernel()
355 acct->stime += stime; in vtime_account_kernel()
358 acct->stime_scaled += stime_scaled; in vtime_account_kernel()
367 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_idle() local
370 acct->idle_time += stime + steal_time; in vtime_account_idle()
374 struct cpu_accounting_data *acct) in vtime_flush_scaled() argument
377 if (acct->utime_scaled) in vtime_flush_scaled()
378 tsk->utimescaled += cputime_to_nsecs(acct->utime_scaled); in vtime_flush_scaled()
379 if (acct->stime_scaled) in vtime_flush_scaled()
380 tsk->stimescaled += cputime_to_nsecs(acct->stime_scaled); in vtime_flush_scaled()
382 acct->utime_scaled = 0; in vtime_flush_scaled()
383 acct->utime_sspurr = 0; in vtime_flush_scaled()
384 acct->stime_scaled = 0; in vtime_flush_scaled()
397 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_flush() local
399 if (acct->utime) in vtime_flush()
400 account_user_time(tsk, cputime_to_nsecs(acct->utime)); in vtime_flush()
402 if (acct->gtime) in vtime_flush()
403 account_guest_time(tsk, cputime_to_nsecs(acct->gtime)); in vtime_flush()
405 if (IS_ENABLED(CONFIG_PPC_SPLPAR) && acct->steal_time) { in vtime_flush()
406 account_steal_time(cputime_to_nsecs(acct->steal_time)); in vtime_flush()
407 acct->steal_time = 0; in vtime_flush()
410 if (acct->idle_time) in vtime_flush()
411 account_idle_time(cputime_to_nsecs(acct->idle_time)); in vtime_flush()
413 if (acct->stime) in vtime_flush()
414 account_system_index_time(tsk, cputime_to_nsecs(acct->stime), in vtime_flush()
417 if (acct->hardirq_time) in vtime_flush()
418 account_system_index_time(tsk, cputime_to_nsecs(acct->hardirq_time), in vtime_flush()
420 if (acct->softirq_time) in vtime_flush()
421 account_system_index_time(tsk, cputime_to_nsecs(acct->softirq_time), in vtime_flush()
424 vtime_flush_scaled(tsk, acct); in vtime_flush()
426 acct->utime = 0; in vtime_flush()
427 acct->gtime = 0; in vtime_flush()
428 acct->idle_time = 0; in vtime_flush()
429 acct->stime = 0; in vtime_flush()
430 acct->hardirq_time = 0; in vtime_flush()
431 acct->softirq_time = 0; in vtime_flush()