/linux/kernel/ |
H A D | acct.c | 116 static void fill_ac(struct bsd_acct_struct *acct); 117 static void acct_write_process(struct bsd_acct_struct *acct); 122 static bool check_free_space(struct bsd_acct_struct *acct) in check_free_space() argument 126 if (!acct->check_space) in check_free_space() 127 return acct->active; in check_free_space() 130 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space() 131 return acct->active; in check_free_space() 133 if (acct->active) { in check_free_space() 137 acct->active = false; in check_free_space() 144 acct->active = true; in check_free_space() [all …]
|
H A D | Makefile | 70 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
|
H A D | sys_ni.c | 76 COND_SYSCALL(acct);
|
/linux/io_uring/ |
H A D | io-wq.c | 113 struct io_wq_acct acct[IO_WQ_ACCT_NR]; member 141 struct io_wq_acct *acct, 159 return &wq->acct[bound ? IO_WQ_ACCT_BOUND : IO_WQ_ACCT_UNBOUND]; in io_get_acct() 191 struct io_wq_acct *acct = io_wq_get_acct(worker); in io_worker_cancel_cb() local 194 atomic_dec(&acct->nr_running); in io_worker_cancel_cb() 196 acct->nr_workers--; in io_worker_cancel_cb() 247 static inline bool __io_acct_run_queue(struct io_wq_acct *acct) in __io_acct_run_queue() argument 249 return !test_bit(IO_ACCT_STALLED_BIT, &acct->flags) && in __io_acct_run_queue() 250 !wq_list_empty(&acct->work_list); in __io_acct_run_queue() 257 static inline bool io_acct_run_queue(struct io_wq_acct *acct) in io_acct_run_queue() argument [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | cputime.h | 48 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_entry() local 50 acct->utime += (tb - acct->starttime_user); in account_cpu_user_entry() 51 acct->starttime = tb; in account_cpu_user_entry() 57 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_exit() local 59 acct->stime += (tb - acct->starttime); in account_cpu_user_exit() 60 acct->starttime_user = tb; in account_cpu_user_exit()
|
/linux/net/netfilter/ |
H A D | nfnetlink_acct.c | 143 int event, struct nf_acct *acct) in nfnl_acct_fill_info() argument 156 if (nla_put_string(skb, NFACCT_NAME, acct->name)) in nfnl_acct_fill_info() 159 old_flags = acct->flags; in nfnl_acct_fill_info() 161 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info() 162 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info() 164 if (acct->flags & NFACCT_F_QUOTA) in nfnl_acct_fill_info() 165 clear_bit(NFACCT_OVERQUOTA_BIT, &acct->flags); in nfnl_acct_fill_info() 167 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info() 168 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info() 174 nla_put_be32(skb, NFACCT_USE, htonl(refcount_read(&acct->refcnt)))) in nfnl_acct_fill_info() [all …]
|
H A D | xt_connbytes.c | 29 const struct nf_conn_acct *acct; in connbytes_mt() local 36 acct = nf_conn_acct_find(ct); in connbytes_mt() 37 if (!acct) in connbytes_mt() 40 counters = acct->counter; in connbytes_mt()
|
H A D | nf_conntrack_acct.c | 22 module_param_named(acct, nf_ct_acct, bool, 0644); 23 MODULE_PARM_DESC(acct, "Enable connection tracking flow accounting.");
|
H A D | nft_ct.c | 126 const struct nf_conn_acct *acct = nf_conn_acct_find(ct); in nft_ct_get_eval() local 129 if (acct) in nft_ct_get_eval() 130 count = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval() 136 const struct nf_conn_acct *acct = nf_conn_acct_find(ct); in nft_ct_get_eval() local 139 if (acct) { in nft_ct_get_eval() 140 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval() 142 bcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
|
H A D | nf_conntrack_core.c | 951 struct nf_conn_acct *acct; in nf_ct_acct_add() local 953 acct = nf_conn_acct_find(ct); in nf_ct_acct_add() 954 if (acct) { in nf_ct_acct_add() 955 struct nf_conn_counter *counter = acct->counter; in nf_ct_acct_add() 966 struct nf_conn_acct *acct; in nf_ct_acct_merge() local 968 acct = nf_conn_acct_find(loser_ct); in nf_ct_acct_merge() 969 if (acct) { in nf_ct_acct_merge() 970 struct nf_conn_counter *counter = acct->counter; in nf_ct_acct_merge() 2091 goto acct; in __nf_ct_refresh_acct() 2099 acct: in __nf_ct_refresh_acct()
|
/linux/include/net/netfilter/ |
H A D | nf_conntrack_acct.h | 34 struct nf_conn_acct *acct; in nf_ct_acct_ext_add() local 39 acct = nf_ct_ext_add(ct, NF_CT_EXT_ACCT, gfp); in nf_ct_acct_ext_add() 40 if (!acct) in nf_ct_acct_ext_add() 44 return acct; in nf_ct_acct_ext_add()
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 86 struct mtk_foe_accounting *acct; in mtk_ppe_debugfs_foe_show() local 100 acct = mtk_foe_entry_get_mib(ppe, i, NULL); in mtk_ppe_debugfs_foe_show() 164 acct ? acct->packets : 0, acct ? acct->bytes : 0); in mtk_ppe_debugfs_foe_show()
|
H A D | mtk_ppe.c | 526 struct mtk_foe_accounting *acct; in __mtk_foe_entry_clear() local 528 acct = ppe->acct_table + entry->hash * sizeof(*acct); in __mtk_foe_entry_clear() 529 acct->packets = 0; in __mtk_foe_entry_clear() 530 acct->bytes = 0; in __mtk_foe_entry_clear() 854 struct mtk_foe_accounting *acct; in mtk_foe_entry_get_mib() local 864 acct = ppe->acct_table + index * size; in mtk_foe_entry_get_mib() 866 acct->bytes += bytes; in mtk_foe_entry_get_mib() 867 acct->packets += packets; in mtk_foe_entry_get_mib() 874 return acct; in mtk_foe_entry_get_mib() 881 struct mtk_foe_accounting *acct; in mtk_ppe_init() local [all …]
|
/linux/include/linux/netfilter/ |
H A D | nfnetlink_acct.h | 17 void nfnl_acct_put(struct nf_acct *acct);
|
/linux/Documentation/features/time/irq-time-acct/ |
H A D | arch-support.txt | 2 # Feature name: irq-time-acct
|
/linux/tools/perf/trace/strace/groups/ |
H A D | string | 2 acct
|
/linux/include/linux/ |
H A D | acct.h | 58 typedef struct acct acct_t;
|
/linux/include/uapi/linux/ |
H A D | acct.h | 44 struct acct struct
|
/linux/security/apparmor/include/ |
H A D | policy_ns.h | 62 struct aa_ns_acct acct; member
|
/linux/fs/proc/ |
H A D | base.c | 3035 struct task_io_accounting acct; in do_io_accounting() local 3058 acct = sig->ioac; in do_io_accounting() 3060 task_io_accounting_add(&acct, &t->ioac); in do_io_accounting() 3066 acct = task->ioac; in do_io_accounting() 3077 (unsigned long long)acct.rchar, in do_io_accounting() 3078 (unsigned long long)acct.wchar, in do_io_accounting() 3079 (unsigned long long)acct.syscr, in do_io_accounting() 3080 (unsigned long long)acct.syscw, in do_io_accounting() 3081 (unsigned long long)acct.read_bytes, in do_io_accounting() 3082 (unsigned long long)acct.write_bytes, in do_io_accounting() [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | kernel-api.rst | 285 kernel/acct.c
|
/linux/Documentation/dev-tools/ |
H A D | checkuapi.rst | 57 --- a/include/uapi/linux/acct.h 58 +++ b/include/uapi/linux/acct.h 168 % git commit -m 'Innocuous UAPI change' include/uapi/linux/acct.h
|
/linux/Documentation/core-api/ |
H A D | kernel-api.rst | 308 .. kernel-doc:: kernel/acct.c
|
/linux/tools/perf/arch/mips/entry/syscalls/ |
H A D | syscall_n64.tbl | 168 158 n64 acct sys_acct
|
/linux/scripts/ |
H A D | syscall.tbl | 116 89 common acct sys_acct
|