Home
last modified time | relevance | path

Searched refs:acct (Results 1 – 25 of 49) sorted by relevance

12

/Linux-v6.1/arch/powerpc/kernel/
Dtime.c185 static unsigned long vtime_delta_scaled(struct cpu_accounting_data *acct, in vtime_delta_scaled() argument
194 deltascaled = nowscaled - acct->startspurr; in vtime_delta_scaled()
195 acct->startspurr = nowscaled; in vtime_delta_scaled()
196 utime = acct->utime - acct->utime_sspurr; in vtime_delta_scaled()
197 acct->utime_sspurr = acct->utime; in vtime_delta_scaled()
219 acct->utime_scaled += utime_scaled; in vtime_delta_scaled()
225 static unsigned long vtime_delta(struct cpu_accounting_data *acct, in vtime_delta() argument
234 stime = now - acct->starttime; in vtime_delta()
235 acct->starttime = now; in vtime_delta()
237 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
[all …]
/Linux-v6.1/kernel/
Dacct.c115 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 …]
DMakefile72 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Dsys_ni.c132 COND_SYSCALL(acct);
/Linux-v6.1/io_uring/
Dio-wq.c97 struct io_wqe_acct acct[IO_WQ_ACCT_NR]; member
146 struct io_wqe_acct *acct,
164 return &wqe->acct[bound ? IO_WQ_ACCT_BOUND : IO_WQ_ACCT_UNBOUND]; in io_get_acct()
186 struct io_wqe_acct *acct = io_wqe_get_acct(worker); in io_worker_cancel_cb() local
190 atomic_dec(&acct->nr_running); in io_worker_cancel_cb()
192 acct->nr_workers--; in io_worker_cancel_cb()
242 static inline bool io_acct_run_queue(struct io_wqe_acct *acct) in io_acct_run_queue() argument
246 raw_spin_lock(&acct->lock); in io_acct_run_queue()
247 if (!wq_list_empty(&acct->work_list) && in io_acct_run_queue()
248 !test_bit(IO_ACCT_STALLED_BIT, &acct->flags)) in io_acct_run_queue()
[all …]
/Linux-v6.1/arch/powerpc/include/asm/
Dcputime.h62 struct cpu_accounting_data *acct = get_accounting(current); in arch_vtime_task_switch() local
65 acct->starttime = acct0->starttime; in arch_vtime_task_switch()
76 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_entry() local
78 acct->utime += (tb - acct->starttime_user); in account_cpu_user_entry()
79 acct->starttime = tb; in account_cpu_user_entry()
85 struct cpu_accounting_data *acct = raw_get_accounting(current); in account_cpu_user_exit() local
87 acct->stime += (tb - acct->starttime); in account_cpu_user_exit()
88 acct->starttime_user = tb; in account_cpu_user_exit()
/Linux-v6.1/net/netfilter/
Dnfnetlink_acct.c143 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 …]
Dxt_connbytes.c29 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()
Dnf_conntrack_acct.c22 module_param_named(acct, nf_ct_acct, bool, 0644);
23 MODULE_PARM_DESC(acct, "Enable connection tracking flow accounting.");
Dnft_ct.c136 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 count = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
146 const struct nf_conn_acct *acct = nf_conn_acct_find(ct); in nft_ct_get_eval() local
149 if (acct) { in nft_ct_get_eval()
150 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
152 bcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
Dnf_conntrack_core.c959 struct nf_conn_acct *acct; in nf_ct_acct_add() local
961 acct = nf_conn_acct_find(ct); in nf_ct_acct_add()
962 if (acct) { in nf_ct_acct_add()
963 struct nf_conn_counter *counter = acct->counter; in nf_ct_acct_add()
974 struct nf_conn_acct *acct; in nf_ct_acct_merge() local
976 acct = nf_conn_acct_find(loser_ct); in nf_ct_acct_merge()
977 if (acct) { in nf_ct_acct_merge()
978 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()
Dnf_conntrack_standalone.c281 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()
Dnf_conntrack_netlink.c252 dump_counters(struct sk_buff *skb, struct nf_conn_acct *acct, in dump_counters() argument
256 struct nf_conn_counter *counter = acct->counter; in dump_counters()
289 struct nf_conn_acct *acct = nf_conn_acct_find(ct); in ctnetlink_dump_acct() local
291 if (!acct) in ctnetlink_dump_acct()
294 if (dump_counters(skb, acct, IP_CT_DIR_ORIGINAL, type) < 0) in ctnetlink_dump_acct()
296 if (dump_counters(skb, acct, IP_CT_DIR_REPLY, type) < 0) in ctnetlink_dump_acct()
/Linux-v6.1/include/net/netfilter/
Dnf_conntrack_acct.h34 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.1/arch/powerpc/platforms/pseries/
Ddtl.c425 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.1/include/linux/netfilter/
Dnfnetlink_acct.h17 void nfnl_acct_put(struct nf_acct *acct);
/Linux-v6.1/Documentation/features/time/irq-time-acct/
Darch-support.txt2 # Feature name: irq-time-acct
/Linux-v6.1/tools/perf/trace/strace/groups/
Dstring2 acct
/Linux-v6.1/include/linux/
Dacct.h58 typedef struct acct acct_t;
/Linux-v6.1/include/uapi/linux/
Dacct.h44 struct acct struct
/Linux-v6.1/security/apparmor/include/
Dpolicy_ns.h62 struct aa_ns_acct acct; member
/Linux-v6.1/fs/proc/
Dbase.c2979 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.1/Documentation/translations/zh_CN/core-api/
Dkernel-api.rst279 kernel/acct.c
/Linux-v6.1/Documentation/accounting/
Dtaskstats-struct.rst58 /* The accounting flags of a task as defined in <linux/acct.h>
/Linux-v6.1/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl168 158 n64 acct sys_acct

12