/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A 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 in vtime_delta() 233 vtime_delta_kernel(struct cpu_accounting_data *acct, unsigned long *stime, unsigned long *stime_scaled) vtime_delta_kernel() argument 245 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_kernel() local 267 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_idle() local 273 vtime_account_irq_field(struct cpu_accounting_data *acct, unsigned long *field) vtime_account_irq_field() argument 287 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_softirq() local 293 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_hardirq() local 297 vtime_flush_scaled(struct task_struct *tsk, struct cpu_accounting_data *acct) vtime_flush_scaled() argument 321 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_flush() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | acct.c | 3 * linux/kernel/acct.c 13 * process exits, an accounting record of type "struct acct" is 14 * written to the file specified with the acct() system call. It is 49 #include <linux/acct.h> 96 static void do_acct_process(struct bsd_acct_struct *acct); 101 static int check_free_space(struct bsd_acct_struct *acct) in check_free_space() argument 105 if (time_is_after_jiffies(acct->needcheck)) in check_free_space() 109 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space() 112 if (acct->active) { in check_free_space() 116 acct in check_free_space() 172 struct bsd_acct_struct *acct = to_acct(pin); acct_pin_kill() local 185 struct bsd_acct_struct *acct = container_of(work, struct bsd_acct_struct, work); close_work() local 198 struct bsd_acct_struct *acct; acct_on() local 475 do_acct_process(struct bsd_acct_struct *acct) do_acct_process() argument 581 struct bsd_acct_struct *acct = acct_get(ns); slow_acct_process() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | acct.c | 3 * linux/kernel/acct.c 13 * process exits, an accounting record of type "struct acct" is 14 * written to the file specified with the acct() system call. It is 49 #include <linux/acct.h> 81 .procname = "acct", 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 in check_free_space() 191 struct bsd_acct_struct *acct = to_acct(pin); acct_pin_kill() local 204 struct bsd_acct_struct *acct = container_of(work, struct bsd_acct_struct, work); close_work() local 217 struct bsd_acct_struct *acct; acct_on() local 492 do_acct_process(struct bsd_acct_struct *acct) do_acct_process() argument 596 struct bsd_acct_struct *acct = acct_get(ns); slow_acct_process() local [all...] |
/kernel/linux/linux-6.6/io_uring/ |
H A 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() 252 * If there's work to do, returns true with acct 306 io_wq_create_worker(struct io_wq *wq, struct io_wq_acct *acct) io_wq_create_worker() argument 329 struct io_wq_acct *acct = io_wq_get_acct(worker); io_wq_inc_running() local 339 struct io_wq_acct *acct; create_worker_cb() local 362 io_queue_worker_create(struct io_worker *worker, struct io_wq_acct *acct, task_work_func_t func) io_queue_worker_create() argument 410 struct io_wq_acct *acct = io_wq_get_acct(worker); io_wq_dec_running() local 629 struct io_wq_acct *acct = io_wq_get_acct(worker); io_wq_worker() local 780 struct io_wq_acct *acct = io_wq_get_acct(worker); create_worker_cont() local 810 struct io_wq_acct *acct = io_wq_get_acct(worker); io_workqueue_create() local 818 struct io_wq_acct *acct = &wq->acct[index]; create_io_worker() local 900 struct io_wq_acct *acct = io_work_get_acct(wq, work); io_wq_insert_work() local 926 struct io_wq_acct *acct = io_work_get_acct(wq, work); io_wq_enqueue() local 1020 struct io_wq_acct *acct = io_work_get_acct(wq, work); io_wq_remove_pending() local 1035 io_acct_cancel_pending_work(struct io_wq *wq, struct io_wq_acct *acct, struct io_cb_cancel_data *match) io_acct_cancel_pending_work() argument 1065 struct io_wq_acct *acct = io_get_acct(wq, i == 0); io_wq_cancel_pending_work() local 1132 struct io_wq_acct *acct = &wq->acct[i]; io_wq_hash_wake() local 1171 struct io_wq_acct *acct = &wq->acct[i]; io_wq_create() local 1338 struct io_wq_acct *acct; io_wq_max_workers() local [all...] |
/kernel/linux/linux-5.10/io_uring/ |
H A D | io-wq.c | 92 struct io_wqe_acct acct[2]; member 141 struct io_wqe_acct *acct, 159 return &wqe->acct[bound ? IO_WQ_ACCT_BOUND : IO_WQ_ACCT_UNBOUND]; in io_get_acct() 191 struct io_wqe_acct *acct = io_wqe_get_acct(worker); in io_worker_cancel_cb() local 195 atomic_dec(&acct->nr_running); in io_worker_cancel_cb() 197 acct->nr_workers--; in io_worker_cancel_cb() 248 static inline bool io_acct_run_queue(struct io_wqe_acct *acct) in io_acct_run_queue() argument 250 if (!wq_list_empty(&acct->work_list) && in io_acct_run_queue() 251 !test_bit(IO_ACCT_STALLED_BIT, &acct->flags)) in io_acct_run_queue() 261 struct io_wqe_acct *acct) 293 io_wqe_create_worker(struct io_wqe *wqe, struct io_wqe_acct *acct) io_wqe_create_worker() argument 316 struct io_wqe_acct *acct = io_wqe_get_acct(worker); io_wqe_inc_running() local 326 struct io_wqe_acct *acct; create_worker_cb() local 349 io_queue_worker_create(struct io_worker *worker, struct io_wqe_acct *acct, task_work_func_t func) io_queue_worker_create() argument 399 struct io_wqe_acct *acct = io_wqe_get_acct(worker); global() variable 552 struct io_wqe_acct *acct = io_wqe_get_acct(worker); global() variable 622 struct io_wqe_acct *acct = io_wqe_get_acct(worker); io_wqe_worker() local 770 struct io_wqe_acct *acct = io_wqe_get_acct(worker); create_worker_cont() local 798 struct io_wqe_acct *acct = io_wqe_get_acct(worker); io_workqueue_create() local 806 struct io_wqe_acct *acct = &wqe->acct[index]; create_io_worker() local 890 struct io_wqe_acct *acct = io_work_get_acct(wqe, work); io_wqe_insert_work() local 916 struct io_wqe_acct *acct = io_work_get_acct(wqe, work); io_wqe_enqueue() local 1006 struct io_wqe_acct *acct = io_work_get_acct(wqe, work); io_wqe_remove_pending() local 1051 struct io_wqe_acct *acct = io_get_acct(wqe, i == 0); io_wqe_cancel_pending_work() local 1124 struct io_wqe_acct *acct = &wqe->acct[i]; io_wqe_hash_wake() local 1176 struct io_wqe_acct *acct = &wqe->acct[i]; io_wq_create() local 1382 struct io_wqe_acct *acct; io_wq_max_workers() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | time.c | 233 struct cpu_accounting_data *acct = &local_paca->accounting; in accumulate_stolen_time() local 243 sst = scan_dispatch_log(acct->starttime_user); in accumulate_stolen_time() 244 ust = scan_dispatch_log(acct->starttime); in accumulate_stolen_time() 245 acct->stime -= sst; in accumulate_stolen_time() 246 acct->utime -= ust; in accumulate_stolen_time() 247 acct->steal_time += ust + sst; in accumulate_stolen_time() 275 static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, in vtime_delta_scaled() argument 284 deltascaled = nowscaled - acct->startspurr; in vtime_delta_scaled() 285 acct->startspurr = nowscaled; in vtime_delta_scaled() 286 utime = acct in vtime_delta_scaled() 320 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_delta() local 338 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_kernel() local 368 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_account_idle() local 374 vtime_flush_scaled(struct task_struct *tsk, struct cpu_accounting_data *acct) vtime_flush_scaled() argument 398 struct cpu_accounting_data *acct = get_accounting(tsk); vtime_flush() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A 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 in account_cpu_user_exit() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | cputime.h | 61 struct cpu_accounting_data *acct = get_accounting(current); in arch_vtime_task_switch() local 64 acct->starttime = acct0->starttime; in arch_vtime_task_switch() 75 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_entry() local 77 acct->utime += (tb - acct->starttime_user); in account_cpu_user_entry() 78 acct->starttime = tb; in account_cpu_user_entry() 84 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_exit() local 86 acct->stime += (tb - acct->starttime); in account_cpu_user_exit() 87 acct in account_cpu_user_exit() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nfnetlink_acct.c | 132 int event, struct nf_acct *acct) in nfnl_acct_fill_info() 145 if (nla_put_string(skb, NFACCT_NAME, acct->name)) in nfnl_acct_fill_info() 148 old_flags = acct->flags; in nfnl_acct_fill_info() 150 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info() 151 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info() 153 if (acct->flags & NFACCT_F_QUOTA) in nfnl_acct_fill_info() 154 clear_bit(NFACCT_OVERQUOTA_BIT, &acct->flags); in nfnl_acct_fill_info() 156 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info() 157 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info() 163 nla_put_be32(skb, NFACCT_USE, htonl(refcount_read(&acct in nfnl_acct_fill_info() 131 nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct nf_acct *acct) nfnl_acct_fill_info() argument 400 struct nf_acct *cur, *acct = NULL; nfnl_acct_find_get() local 424 nfnl_acct_put(struct nf_acct *acct) nfnl_acct_put() argument [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 | 135 const struct nf_conn_acct *acct = nf_conn_acct_find(ct); in nft_ct_get_eval() local 138 if (acct) in nft_ct_get_eval() 139 count = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval() 145 const struct nf_conn_acct *acct = nf_conn_acct_find(ct); in nft_ct_get_eval() local 148 if (acct) { in nft_ct_get_eval() 149 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval() 151 bcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nfnetlink_acct.c | 143 int event, struct nf_acct *acct) in nfnl_acct_fill_info() 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 in nfnl_acct_fill_info() 142 nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, struct nf_acct *acct) nfnl_acct_fill_info() argument 420 struct nf_acct *cur, *acct = NULL; nfnl_acct_find_get() local 444 nfnl_acct_put(struct nf_acct *acct) nfnl_acct_put() argument [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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A 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()
|
H A 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; mtk_ppe_init() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A 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()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | acct.h | 18 #include <uapi/linux/acct.h> 59 typedef struct acct acct_t;
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | acct.h | 18 #include <uapi/linux/acct.h> 58 typedef struct acct acct_t;
|
/kernel/linux/linux-5.10/include/linux/netfilter/ |
H A D | nfnetlink_acct.h | 17 void nfnl_acct_put(struct nf_acct *acct);
|
/kernel/linux/linux-6.6/include/linux/netfilter/ |
H A D | nfnetlink_acct.h | 17 void nfnl_acct_put(struct nf_acct *acct);
|