Lines Matching refs:acct

239 	struct cpu_accounting_data *acct = &local_paca->accounting;  in accumulate_stolen_time()  local
249 sst = scan_dispatch_log(acct->starttime_user); in accumulate_stolen_time()
250 ust = scan_dispatch_log(acct->starttime); in accumulate_stolen_time()
251 acct->stime -= sst; in accumulate_stolen_time()
252 acct->utime -= ust; in accumulate_stolen_time()
253 acct->steal_time += ust + sst; in accumulate_stolen_time()
281 static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, in vtime_delta_scaled() argument
290 deltascaled = nowscaled - acct->startspurr; in vtime_delta_scaled()
291 acct->startspurr = nowscaled; in vtime_delta_scaled()
292 utime = acct->utime - acct->utime_sspurr; in vtime_delta_scaled()
293 acct->utime_sspurr = acct->utime; in vtime_delta_scaled()
315 acct->utime_scaled += utime_scaled; in vtime_delta_scaled()
326 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_delta() local
331 stime = now - acct->starttime; in vtime_delta()
332 acct->starttime = now; in vtime_delta()
334 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
344 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_system() local
349 acct->steal_time += steal_time; in vtime_account_system()
352 acct->gtime += stime; in vtime_account_system()
354 acct->utime_scaled += stime_scaled; in vtime_account_system()
358 acct->hardirq_time += stime; in vtime_account_system()
360 acct->softirq_time += stime; in vtime_account_system()
362 acct->stime += stime; in vtime_account_system()
365 acct->stime_scaled += stime_scaled; in vtime_account_system()
374 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_account_idle() local
377 acct->idle_time += stime + steal_time; in vtime_account_idle()
381 struct cpu_accounting_data *acct) in vtime_flush_scaled() argument
384 if (acct->utime_scaled) in vtime_flush_scaled()
385 tsk->utimescaled += cputime_to_nsecs(acct->utime_scaled); in vtime_flush_scaled()
386 if (acct->stime_scaled) in vtime_flush_scaled()
387 tsk->stimescaled += cputime_to_nsecs(acct->stime_scaled); in vtime_flush_scaled()
389 acct->utime_scaled = 0; in vtime_flush_scaled()
390 acct->utime_sspurr = 0; in vtime_flush_scaled()
391 acct->stime_scaled = 0; in vtime_flush_scaled()
404 struct cpu_accounting_data *acct = get_accounting(tsk); in vtime_flush() local
406 if (acct->utime) in vtime_flush()
407 account_user_time(tsk, cputime_to_nsecs(acct->utime)); in vtime_flush()
409 if (acct->gtime) in vtime_flush()
410 account_guest_time(tsk, cputime_to_nsecs(acct->gtime)); in vtime_flush()
412 if (IS_ENABLED(CONFIG_PPC_SPLPAR) && acct->steal_time) { in vtime_flush()
413 account_steal_time(cputime_to_nsecs(acct->steal_time)); in vtime_flush()
414 acct->steal_time = 0; in vtime_flush()
417 if (acct->idle_time) in vtime_flush()
418 account_idle_time(cputime_to_nsecs(acct->idle_time)); in vtime_flush()
420 if (acct->stime) in vtime_flush()
421 account_system_index_time(tsk, cputime_to_nsecs(acct->stime), in vtime_flush()
424 if (acct->hardirq_time) in vtime_flush()
425 account_system_index_time(tsk, cputime_to_nsecs(acct->hardirq_time), in vtime_flush()
427 if (acct->softirq_time) in vtime_flush()
428 account_system_index_time(tsk, cputime_to_nsecs(acct->softirq_time), in vtime_flush()
431 vtime_flush_scaled(tsk, acct); in vtime_flush()
433 acct->utime = 0; in vtime_flush()
434 acct->gtime = 0; in vtime_flush()
435 acct->idle_time = 0; in vtime_flush()
436 acct->stime = 0; in vtime_flush()
437 acct->hardirq_time = 0; in vtime_flush()
438 acct->softirq_time = 0; in vtime_flush()