acct 56 arch/powerpc/include/asm/cputime.h struct cpu_accounting_data *acct = get_accounting(current); acct 59 arch/powerpc/include/asm/cputime.h acct->starttime = acct0->starttime; acct 239 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct = &local_paca->accounting; acct 249 arch/powerpc/kernel/time.c sst = scan_dispatch_log(acct->starttime_user); acct 250 arch/powerpc/kernel/time.c ust = scan_dispatch_log(acct->starttime); acct 251 arch/powerpc/kernel/time.c acct->stime -= sst; acct 252 arch/powerpc/kernel/time.c acct->utime -= ust; acct 253 arch/powerpc/kernel/time.c acct->steal_time += ust + sst; acct 281 arch/powerpc/kernel/time.c static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, acct 290 arch/powerpc/kernel/time.c deltascaled = nowscaled - acct->startspurr; acct 291 arch/powerpc/kernel/time.c acct->startspurr = nowscaled; acct 292 arch/powerpc/kernel/time.c utime = acct->utime - acct->utime_sspurr; acct 293 arch/powerpc/kernel/time.c acct->utime_sspurr = acct->utime; acct 315 arch/powerpc/kernel/time.c acct->utime_scaled += utime_scaled; acct 326 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct = get_accounting(tsk); acct 331 arch/powerpc/kernel/time.c stime = now - acct->starttime; acct 332 arch/powerpc/kernel/time.c acct->starttime = now; acct 334 arch/powerpc/kernel/time.c *stime_scaled = vtime_delta_scaled(acct, now, stime); acct 344 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct = get_accounting(tsk); acct 349 arch/powerpc/kernel/time.c acct->steal_time += steal_time; acct 352 arch/powerpc/kernel/time.c acct->gtime += stime; acct 354 arch/powerpc/kernel/time.c acct->utime_scaled += stime_scaled; acct 358 arch/powerpc/kernel/time.c acct->hardirq_time += stime; acct 360 arch/powerpc/kernel/time.c acct->softirq_time += stime; acct 362 arch/powerpc/kernel/time.c acct->stime += stime; acct 365 arch/powerpc/kernel/time.c acct->stime_scaled += stime_scaled; acct 374 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct = get_accounting(tsk); acct 377 arch/powerpc/kernel/time.c acct->idle_time += stime + steal_time; acct 381 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct) acct 384 arch/powerpc/kernel/time.c if (acct->utime_scaled) acct 385 arch/powerpc/kernel/time.c tsk->utimescaled += cputime_to_nsecs(acct->utime_scaled); acct 386 arch/powerpc/kernel/time.c if (acct->stime_scaled) acct 387 arch/powerpc/kernel/time.c tsk->stimescaled += cputime_to_nsecs(acct->stime_scaled); acct 389 arch/powerpc/kernel/time.c acct->utime_scaled = 0; acct 390 arch/powerpc/kernel/time.c acct->utime_sspurr = 0; acct 391 arch/powerpc/kernel/time.c acct->stime_scaled = 0; acct 404 arch/powerpc/kernel/time.c struct cpu_accounting_data *acct = get_accounting(tsk); acct 406 arch/powerpc/kernel/time.c if (acct->utime) acct 407 arch/powerpc/kernel/time.c account_user_time(tsk, cputime_to_nsecs(acct->utime)); acct 409 arch/powerpc/kernel/time.c if (acct->gtime) acct 410 arch/powerpc/kernel/time.c account_guest_time(tsk, cputime_to_nsecs(acct->gtime)); acct 412 arch/powerpc/kernel/time.c if (IS_ENABLED(CONFIG_PPC_SPLPAR) && acct->steal_time) { acct 413 arch/powerpc/kernel/time.c account_steal_time(cputime_to_nsecs(acct->steal_time)); acct 414 arch/powerpc/kernel/time.c acct->steal_time = 0; acct 417 arch/powerpc/kernel/time.c if (acct->idle_time) acct 418 arch/powerpc/kernel/time.c account_idle_time(cputime_to_nsecs(acct->idle_time)); acct 420 arch/powerpc/kernel/time.c if (acct->stime) acct 421 arch/powerpc/kernel/time.c account_system_index_time(tsk, cputime_to_nsecs(acct->stime), acct 424 arch/powerpc/kernel/time.c if (acct->hardirq_time) acct 425 arch/powerpc/kernel/time.c account_system_index_time(tsk, cputime_to_nsecs(acct->hardirq_time), acct 427 arch/powerpc/kernel/time.c if (acct->softirq_time) acct 428 arch/powerpc/kernel/time.c account_system_index_time(tsk, cputime_to_nsecs(acct->softirq_time), acct 431 arch/powerpc/kernel/time.c vtime_flush_scaled(tsk, acct); acct 433 arch/powerpc/kernel/time.c acct->utime = 0; acct 434 arch/powerpc/kernel/time.c acct->gtime = 0; acct 435 arch/powerpc/kernel/time.c acct->idle_time = 0; acct 436 arch/powerpc/kernel/time.c acct->stime = 0; acct 437 arch/powerpc/kernel/time.c acct->hardirq_time = 0; acct 438 arch/powerpc/kernel/time.c acct->softirq_time = 0; acct 2769 fs/proc/base.c struct task_io_accounting acct = task->ioac; acct 2785 fs/proc/base.c task_io_accounting_add(&acct, &task->signal->ioac); acct 2787 fs/proc/base.c task_io_accounting_add(&acct, &t->ioac); acct 2799 fs/proc/base.c (unsigned long long)acct.rchar, acct 2800 fs/proc/base.c (unsigned long long)acct.wchar, acct 2801 fs/proc/base.c (unsigned long long)acct.syscr, acct 2802 fs/proc/base.c (unsigned long long)acct.syscw, acct 2803 fs/proc/base.c (unsigned long long)acct.read_bytes, acct 2804 fs/proc/base.c (unsigned long long)acct.write_bytes, acct 2805 fs/proc/base.c (unsigned long long)acct.cancelled_write_bytes); acct 59 include/linux/acct.h typedef struct acct acct_t; acct 289 include/linux/hugetlb.h struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct, acct 17 include/linux/netfilter/nfnetlink_acct.h void nfnl_acct_put(struct nf_acct *acct); acct 34 include/net/netfilter/nf_conntrack_acct.h struct nf_conn_acct *acct; acct 39 include/net/netfilter/nf_conntrack_acct.h acct = nf_ct_ext_add(ct, NF_CT_EXT_ACCT, gfp); acct 40 include/net/netfilter/nf_conntrack_acct.h if (!acct) acct 44 include/net/netfilter/nf_conntrack_acct.h return acct; acct 96 kernel/acct.c static void do_acct_process(struct bsd_acct_struct *acct); acct 101 kernel/acct.c static int check_free_space(struct bsd_acct_struct *acct) acct 105 kernel/acct.c if (time_is_after_jiffies(acct->needcheck)) acct 109 kernel/acct.c if (vfs_statfs(&acct->file->f_path, &sbuf)) acct 112 kernel/acct.c if (acct->active) { acct 116 kernel/acct.c acct->active = 0; acct 123 kernel/acct.c acct->active = 1; acct 128 kernel/acct.c acct->needcheck = jiffies + ACCT_TIMEOUT*HZ; acct 130 kernel/acct.c return acct->active; acct 172 kernel/acct.c struct bsd_acct_struct *acct = to_acct(pin); acct 173 kernel/acct.c mutex_lock(&acct->lock); acct 174 kernel/acct.c do_acct_process(acct); acct 175 kernel/acct.c schedule_work(&acct->work); acct 176 kernel/acct.c wait_for_completion(&acct->done); acct 177 kernel/acct.c cmpxchg(&acct->ns->bacct, pin, NULL); acct 178 kernel/acct.c mutex_unlock(&acct->lock); acct 180 kernel/acct.c acct_put(acct); acct 185 kernel/acct.c struct bsd_acct_struct *acct = container_of(work, struct bsd_acct_struct, work); acct 186 kernel/acct.c struct file *file = acct->file; acct 190 kernel/acct.c complete(&acct->done); acct 198 kernel/acct.c struct bsd_acct_struct *acct; acct 202 kernel/acct.c acct = kzalloc(sizeof(struct bsd_acct_struct), GFP_KERNEL); acct 203 kernel/acct.c if (!acct) acct 209 kernel/acct.c kfree(acct); acct 214 kernel/acct.c kfree(acct); acct 220 kernel/acct.c kfree(acct); acct 226 kernel/acct.c kfree(acct); acct 233 kernel/acct.c kfree(acct); acct 240 kernel/acct.c atomic_long_set(&acct->count, 1); acct 241 kernel/acct.c init_fs_pin(&acct->pin, acct_pin_kill); acct 242 kernel/acct.c acct->file = file; acct 243 kernel/acct.c acct->needcheck = jiffies; acct 244 kernel/acct.c acct->ns = ns; acct 245 kernel/acct.c mutex_init(&acct->lock); acct 246 kernel/acct.c INIT_WORK(&acct->work, close_work); acct 247 kernel/acct.c init_completion(&acct->done); acct 248 kernel/acct.c mutex_lock_nested(&acct->lock, 1); /* nobody has seen it yet */ acct 249 kernel/acct.c pin_insert(&acct->pin, mnt); acct 252 kernel/acct.c old = xchg(&ns->bacct, &acct->pin); acct 253 kernel/acct.c mutex_unlock(&acct->lock); acct 273 kernel/acct.c SYSCALL_DEFINE1(acct, const char __user *, name) acct 471 kernel/acct.c static void do_acct_process(struct bsd_acct_struct *acct) acct 476 kernel/acct.c struct file *file = acct->file; acct 490 kernel/acct.c if (!check_free_space(acct)) acct 504 kernel/acct.c struct pid_namespace *ns = acct->ns; acct 577 kernel/acct.c struct bsd_acct_struct *acct = acct_get(ns); acct 578 kernel/acct.c if (acct) { acct 579 kernel/acct.c do_acct_process(acct); acct 580 kernel/acct.c mutex_unlock(&acct->lock); acct 581 kernel/acct.c acct_put(acct); acct 129 kernel/sys_ni.c COND_SYSCALL(acct); acct 22 net/netfilter/nf_conntrack_acct.c module_param_named(acct, nf_ct_acct, bool, 0644); acct 23 net/netfilter/nf_conntrack_acct.c MODULE_PARM_DESC(acct, "Enable connection tracking flow accounting."); acct 871 net/netfilter/nf_conntrack_core.c struct nf_conn_acct *acct; acct 873 net/netfilter/nf_conntrack_core.c acct = nf_conn_acct_find(ct); acct 874 net/netfilter/nf_conntrack_core.c if (acct) { acct 875 net/netfilter/nf_conntrack_core.c struct nf_conn_counter *counter = acct->counter; acct 885 net/netfilter/nf_conntrack_core.c struct nf_conn_acct *acct; acct 887 net/netfilter/nf_conntrack_core.c acct = nf_conn_acct_find(loser_ct); acct 888 net/netfilter/nf_conntrack_core.c if (acct) { acct 889 net/netfilter/nf_conntrack_core.c struct nf_conn_counter *counter = acct->counter; acct 1789 net/netfilter/nf_conntrack_core.c goto acct; acct 1797 net/netfilter/nf_conntrack_core.c acct: acct 236 net/netfilter/nf_conntrack_netlink.c dump_counters(struct sk_buff *skb, struct nf_conn_acct *acct, acct 240 net/netfilter/nf_conntrack_netlink.c struct nf_conn_counter *counter = acct->counter; acct 273 net/netfilter/nf_conntrack_netlink.c struct nf_conn_acct *acct = nf_conn_acct_find(ct); acct 275 net/netfilter/nf_conntrack_netlink.c if (!acct) acct 278 net/netfilter/nf_conntrack_netlink.c if (dump_counters(skb, acct, IP_CT_DIR_ORIGINAL, type) < 0) acct 280 net/netfilter/nf_conntrack_netlink.c if (dump_counters(skb, acct, IP_CT_DIR_REPLY, type) < 0) acct 277 net/netfilter/nf_conntrack_standalone.c struct nf_conn_acct *acct; acct 280 net/netfilter/nf_conntrack_standalone.c acct = nf_conn_acct_find(ct); acct 281 net/netfilter/nf_conntrack_standalone.c if (!acct) acct 284 net/netfilter/nf_conntrack_standalone.c counter = acct->counter; acct 132 net/netfilter/nfnetlink_acct.c int event, struct nf_acct *acct) acct 150 net/netfilter/nfnetlink_acct.c if (nla_put_string(skb, NFACCT_NAME, acct->name)) acct 153 net/netfilter/nfnetlink_acct.c old_flags = acct->flags; acct 155 net/netfilter/nfnetlink_acct.c pkts = atomic64_xchg(&acct->pkts, 0); acct 156 net/netfilter/nfnetlink_acct.c bytes = atomic64_xchg(&acct->bytes, 0); acct 158 net/netfilter/nfnetlink_acct.c if (acct->flags & NFACCT_F_QUOTA) acct 159 net/netfilter/nfnetlink_acct.c clear_bit(NFACCT_OVERQUOTA_BIT, &acct->flags); acct 161 net/netfilter/nfnetlink_acct.c pkts = atomic64_read(&acct->pkts); acct 162 net/netfilter/nfnetlink_acct.c bytes = atomic64_read(&acct->bytes); acct 168 net/netfilter/nfnetlink_acct.c nla_put_be32(skb, NFACCT_USE, htonl(refcount_read(&acct->refcnt)))) acct 170 net/netfilter/nfnetlink_acct.c if (acct->flags & NFACCT_F_QUOTA) { acct 171 net/netfilter/nfnetlink_acct.c u64 *quota = (u64 *)acct->data; acct 405 net/netfilter/nfnetlink_acct.c struct nf_acct *cur, *acct = NULL; acct 420 net/netfilter/nfnetlink_acct.c acct = cur; acct 425 net/netfilter/nfnetlink_acct.c return acct; acct 429 net/netfilter/nfnetlink_acct.c void nfnl_acct_put(struct nf_acct *acct) acct 431 net/netfilter/nfnetlink_acct.c if (refcount_dec_and_test(&acct->refcnt)) acct 432 net/netfilter/nfnetlink_acct.c kfree_rcu(acct, rcu_head); acct 134 net/netfilter/nft_ct.c const struct nf_conn_acct *acct = nf_conn_acct_find(ct); acct 137 net/netfilter/nft_ct.c if (acct) acct 138 net/netfilter/nft_ct.c count = nft_ct_get_eval_counter(acct->counter, acct 144 net/netfilter/nft_ct.c const struct nf_conn_acct *acct = nf_conn_acct_find(ct); acct 147 net/netfilter/nft_ct.c if (acct) { acct 148 net/netfilter/nft_ct.c pcnt = nft_ct_get_eval_counter(acct->counter, acct 150 net/netfilter/nft_ct.c bcnt = nft_ct_get_eval_counter(acct->counter, acct 29 net/netfilter/xt_connbytes.c const struct nf_conn_acct *acct; acct 36 net/netfilter/xt_connbytes.c acct = nf_conn_acct_find(ct); acct 37 net/netfilter/xt_connbytes.c if (!acct) acct 40 net/netfilter/xt_connbytes.c counters = acct->counter; acct 62 security/apparmor/include/policy_ns.h struct aa_ns_acct acct;