/linux-6.12.1/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-6.12.1/io_uring/ |
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-6.12.1/kernel/ |
D | acct.c | 114 static void do_acct_process(struct bsd_acct_struct *acct); 119 static int check_free_space(struct bsd_acct_struct *acct) in check_free_space() argument 123 if (time_is_after_jiffies(acct->needcheck)) in check_free_space() 127 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space() 130 if (acct->active) { in check_free_space() 134 acct->active = 0; in check_free_space() 141 acct->active = 1; in check_free_space() 146 acct->needcheck = jiffies + ACCT_TIMEOUT*HZ; in check_free_space() 148 return acct->active; in check_free_space() 190 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 | 76 COND_SYSCALL(acct);
|
/linux-6.12.1/arch/powerpc/include/asm/ |
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-6.12.1/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() 2098 goto acct; in __nf_ct_refresh_acct() 2106 acct: in __nf_ct_refresh_acct()
|
D | nf_conntrack_standalone.c | 278 struct nf_conn_acct *acct; in seq_print_acct() local 281 acct = nf_conn_acct_find(ct); in seq_print_acct() 282 if (!acct) in seq_print_acct() 285 counter = acct->counter; in seq_print_acct()
|
/linux-6.12.1/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-6.12.1/tools/testing/selftests/acct/ |
D | acct_syscall.c | 40 acct(filename); in main() 56 acct(NULL); in main() 63 acct(NULL); in main()
|
/linux-6.12.1/drivers/net/ethernet/mediatek/ |
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()
|
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-6.12.1/arch/powerpc/platforms/pseries/ |
D | dtl.c | 424 struct cpu_accounting_data *acct = &local_paca->accounting; in pseries_accumulate_stolen_time() local 426 sst = scan_dispatch_log(acct->starttime_user); in pseries_accumulate_stolen_time() 427 ust = scan_dispatch_log(acct->starttime); in pseries_accumulate_stolen_time() 428 acct->stime -= sst; in pseries_accumulate_stolen_time() 429 acct->utime -= ust; in pseries_accumulate_stolen_time() 430 acct->steal_time += ust + sst; in pseries_accumulate_stolen_time()
|
/linux-6.12.1/include/linux/netfilter/ |
D | nfnetlink_acct.h | 17 void nfnl_acct_put(struct nf_acct *acct);
|
/linux-6.12.1/Documentation/features/time/irq-time-acct/ |
D | arch-support.txt | 2 # Feature name: irq-time-acct
|
/linux-6.12.1/tools/perf/trace/strace/groups/ |
D | string | 2 acct
|
/linux-6.12.1/include/linux/ |
D | acct.h | 58 typedef struct acct acct_t;
|
/linux-6.12.1/include/uapi/linux/ |
D | acct.h | 44 struct acct struct
|
/linux-6.12.1/security/apparmor/include/ |
D | policy_ns.h | 62 struct aa_ns_acct acct; member
|
/linux-6.12.1/fs/proc/ |
D | base.c | 3032 struct task_io_accounting acct; in do_io_accounting() local 3055 acct = sig->ioac; in do_io_accounting() 3057 task_io_accounting_add(&acct, &t->ioac); in do_io_accounting() 3063 acct = task->ioac; in do_io_accounting() 3074 (unsigned long long)acct.rchar, in do_io_accounting() 3075 (unsigned long long)acct.wchar, in do_io_accounting() 3076 (unsigned long long)acct.syscr, in do_io_accounting() 3077 (unsigned long long)acct.syscw, in do_io_accounting() 3078 (unsigned long long)acct.read_bytes, in do_io_accounting() 3079 (unsigned long long)acct.write_bytes, in do_io_accounting() [all …]
|
/linux-6.12.1/Documentation/translations/zh_CN/core-api/ |
D | kernel-api.rst | 285 kernel/acct.c
|