Lines Matching full:ac

415 static void fill_ac(acct_t *ac)  in fill_ac()  argument
426 memset(ac, 0, sizeof(acct_t)); in fill_ac()
428 ac->ac_version = ACCT_VERSION | ACCT_BYTEORDER; in fill_ac()
429 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
437 ac->ac_etime = encode_float(elapsed); in fill_ac()
439 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac()
447 ac->ac_etime_hi = etime >> 16; in fill_ac()
448 ac->ac_etime_lo = (u16) etime; in fill_ac()
453 ac->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX); in fill_ac()
455 ac->ac_ahz = AHZ; in fill_ac()
460 ac->ac_tty = tty ? old_encode_dev(tty_devnum(tty)) : 0; in fill_ac()
461 ac->ac_utime = encode_comp_t(nsec_to_AHZ(pacct->ac_utime)); in fill_ac()
462 ac->ac_stime = encode_comp_t(nsec_to_AHZ(pacct->ac_stime)); in fill_ac()
463 ac->ac_flag = pacct->ac_flag; in fill_ac()
464 ac->ac_mem = encode_comp_t(pacct->ac_mem); in fill_ac()
465 ac->ac_minflt = encode_comp_t(pacct->ac_minflt); in fill_ac()
466 ac->ac_majflt = encode_comp_t(pacct->ac_majflt); in fill_ac()
467 ac->ac_exitcode = pacct->ac_exitcode; in fill_ac()
475 acct_t ac; in do_acct_process() local
495 fill_ac(&ac); in do_acct_process()
497 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process()
498 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
501 ac.ac_uid16 = ac.ac_uid; in do_acct_process()
502 ac.ac_gid16 = ac.ac_gid; in do_acct_process()
508 ac.ac_pid = task_tgid_nr_ns(current, ns); in do_acct_process()
510 ac.ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), in do_acct_process()
522 __kernel_write(file, &ac, sizeof(acct_t), &pos); in do_acct_process()