Lines Matching defs:ac
478 acct_t ac;
501 memset((caddr_t)&ac, 0, sizeof(acct_t));
503 ac.ac_version = ACCT_VERSION | ACCT_BYTEORDER;
504 strlcpy(ac.ac_comm, current->comm, sizeof(ac.ac_comm));
514 ac.ac_etime = encode_float(elapsed);
516 ac.ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ?
523 ac.ac_etime_hi = etime >> 16;
524 ac.ac_etime_lo = (u16) etime;
528 ac.ac_btime = get_seconds() - elapsed;
530 ac.ac_uid = orig_cred->uid;
531 ac.ac_gid = orig_cred->gid;
533 ac.ac_ahz = AHZ;
537 ac.ac_uid16 = ac.ac_uid;
538 ac.ac_gid16 = ac.ac_gid;
541 ac.ac_pid = task_tgid_nr_ns(current, ns);
543 ac.ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), ns);
549 ac.ac_tty = tty ? old_encode_dev(tty_devnum(tty)) : 0;
550 ac.ac_utime = encode_comp_t(jiffies_to_AHZ(cputime_to_jiffies(pacct->ac_utime)));
551 ac.ac_stime = encode_comp_t(jiffies_to_AHZ(cputime_to_jiffies(pacct->ac_stime)));
552 ac.ac_flag = pacct->ac_flag;
553 ac.ac_mem = encode_comp_t(pacct->ac_mem);
554 ac.ac_minflt = encode_comp_t(pacct->ac_minflt);
555 ac.ac_majflt = encode_comp_t(pacct->ac_majflt);
556 ac.ac_exitcode = pacct->ac_exitcode;
558 ac.ac_io = encode_comp_t(0 /* current->io_usage */); /* %% */
559 ac.ac_rw = encode_comp_t(ac.ac_io / 1024);
560 ac.ac_swaps = encode_comp_t(0);
573 file->f_op->write(file, (char *)&ac,