/Linux-v6.6/arch/powerpc/kernel/ |
D | time.c | 170 static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, in vtime_delta_scaled() argument 179 deltascaled = nowscaled - acct->startspurr; in vtime_delta_scaled() 180 acct->startspurr = nowscaled; in vtime_delta_scaled() 181 utime = acct->utime - acct->utime_sspurr; in vtime_delta_scaled() 182 acct->utime_sspurr = acct->utime; in vtime_delta_scaled() 204 acct->utime_scaled += utime_scaled; in vtime_delta_scaled() 210 static unsigned long vtime_delta(struct cpu_accounting_data *acct, in vtime_delta() argument 219 stime = now - acct->starttime; in vtime_delta() 220 acct->starttime = now; in vtime_delta() 222 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta() [all …]
|
/Linux-v6.6/io_uring/ |
D | io-wq.c | 111 struct io_wq_acct acct[IO_WQ_ACCT_NR]; member 139 struct io_wq_acct *acct, 157 return &wq->acct[bound ? IO_WQ_ACCT_BOUND : IO_WQ_ACCT_UNBOUND]; in io_get_acct() 189 struct io_wq_acct *acct = io_wq_get_acct(worker); in io_worker_cancel_cb() local 192 atomic_dec(&acct->nr_running); in io_worker_cancel_cb() 194 acct->nr_workers--; in io_worker_cancel_cb() 245 static inline bool __io_acct_run_queue(struct io_wq_acct *acct) in __io_acct_run_queue() argument 247 return !test_bit(IO_ACCT_STALLED_BIT, &acct->flags) && in __io_acct_run_queue() 248 !wq_list_empty(&acct->work_list); in __io_acct_run_queue() 255 static inline bool io_acct_run_queue(struct io_wq_acct *acct) in io_acct_run_queue() argument [all …]
|
/Linux-v6.6/kernel/ |
D | acct.c | 115 static void do_acct_process(struct bsd_acct_struct *acct); 120 static int check_free_space(struct bsd_acct_struct *acct) in check_free_space() argument 124 if (time_is_after_jiffies(acct->needcheck)) in check_free_space() 128 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space() 131 if (acct->active) { in check_free_space() 135 acct->active = 0; in check_free_space() 142 acct->active = 1; in check_free_space() 147 acct->needcheck = jiffies + ACCT_TIMEOUT*HZ; in check_free_space() 149 return acct->active; in check_free_space() 191 struct bsd_acct_struct *acct = to_acct(pin); in acct_pin_kill() local [all …]
|
D | Makefile | 70 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
|
D | sys_ni.c | 78 COND_SYSCALL(acct);
|
/Linux-v6.6/arch/powerpc/include/asm/ |
D | cputime.h | 47 struct cpu_accounting_data *acct = get_accounting(current); in arch_vtime_task_switch() local 50 acct->starttime = acct0->starttime; in arch_vtime_task_switch() 61 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_entry() local 63 acct->utime += (tb - acct->starttime_user); in account_cpu_user_entry() 64 acct->starttime = tb; in account_cpu_user_entry() 70 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_exit() local 72 acct->stime += (tb - acct->starttime); in account_cpu_user_exit() 73 acct->starttime_user = tb; in account_cpu_user_exit()
|
/Linux-v6.6/net/netfilter/ |
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 …]
|
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()
|
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.");
|
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()
|
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() 2072 goto acct; in __nf_ct_refresh_acct() 2080 acct: in __nf_ct_refresh_acct()
|
D | nf_conntrack_standalone.c | 281 struct nf_conn_acct *acct; in seq_print_acct() local 284 acct = nf_conn_acct_find(ct); in seq_print_acct() 285 if (!acct) in seq_print_acct() 288 counter = acct->counter; in seq_print_acct()
|
/Linux-v6.6/include/net/netfilter/ |
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-v6.6/drivers/net/ethernet/mediatek/ |
D | mtk_ppe_debugfs.c | 85 struct mtk_foe_accounting *acct; in mtk_ppe_debugfs_foe_show() local 99 acct = mtk_foe_entry_get_mib(ppe, i, NULL); in mtk_ppe_debugfs_foe_show() 163 acct ? acct->packets : 0, acct ? acct->bytes : 0); in mtk_ppe_debugfs_foe_show()
|
D | mtk_ppe.c | 524 struct mtk_foe_accounting *acct; in __mtk_foe_entry_clear() local 526 acct = ppe->acct_table + entry->hash * sizeof(*acct); in __mtk_foe_entry_clear() 527 acct->packets = 0; in __mtk_foe_entry_clear() 528 acct->bytes = 0; in __mtk_foe_entry_clear() 852 struct mtk_foe_accounting *acct; in mtk_foe_entry_get_mib() local 862 acct = ppe->acct_table + index * size; in mtk_foe_entry_get_mib() 864 acct->bytes += bytes; in mtk_foe_entry_get_mib() 865 acct->packets += packets; in mtk_foe_entry_get_mib() 872 return acct; in mtk_foe_entry_get_mib() 879 struct mtk_foe_accounting *acct; in mtk_ppe_init() local [all …]
|
/Linux-v6.6/arch/powerpc/platforms/pseries/ |
D | dtl.c | 425 struct cpu_accounting_data *acct = &local_paca->accounting; in pseries_accumulate_stolen_time() local 427 sst = scan_dispatch_log(acct->starttime_user); in pseries_accumulate_stolen_time() 428 ust = scan_dispatch_log(acct->starttime); in pseries_accumulate_stolen_time() 429 acct->stime -= sst; in pseries_accumulate_stolen_time() 430 acct->utime -= ust; in pseries_accumulate_stolen_time() 431 acct->steal_time += ust + sst; in pseries_accumulate_stolen_time()
|
/Linux-v6.6/include/linux/netfilter/ |
D | nfnetlink_acct.h | 17 void nfnl_acct_put(struct nf_acct *acct);
|
/Linux-v6.6/Documentation/features/time/irq-time-acct/ |
D | arch-support.txt | 2 # Feature name: irq-time-acct
|
/Linux-v6.6/tools/perf/trace/strace/groups/ |
D | string | 2 acct
|
/Linux-v6.6/include/linux/ |
D | acct.h | 58 typedef struct acct acct_t;
|
/Linux-v6.6/include/uapi/linux/ |
D | acct.h | 44 struct acct struct
|
/Linux-v6.6/security/apparmor/include/ |
D | policy_ns.h | 62 struct aa_ns_acct acct; member
|
/Linux-v6.6/fs/proc/ |
D | base.c | 2979 struct task_io_accounting acct = task->ioac; in do_io_accounting() local 2995 task_io_accounting_add(&acct, &task->signal->ioac); in do_io_accounting() 2997 task_io_accounting_add(&acct, &t->ioac); in do_io_accounting() 3009 (unsigned long long)acct.rchar, in do_io_accounting() 3010 (unsigned long long)acct.wchar, in do_io_accounting() 3011 (unsigned long long)acct.syscr, in do_io_accounting() 3012 (unsigned long long)acct.syscw, in do_io_accounting() 3013 (unsigned long long)acct.read_bytes, in do_io_accounting() 3014 (unsigned long long)acct.write_bytes, in do_io_accounting() 3015 (unsigned long long)acct.cancelled_write_bytes); in do_io_accounting()
|
/Linux-v6.6/Documentation/translations/zh_CN/core-api/ |
D | kernel-api.rst | 285 kernel/acct.c
|
/Linux-v6.6/Documentation/accounting/ |
D | taskstats-struct.rst | 58 /* The accounting flags of a task as defined in <linux/acct.h>
|