Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 10 of 10) sorted by relevance

/kernel/
Dtsacct.c22 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument
34 stats->ac_etime = delta; in bacct_add_tsk()
37 stats->ac_btime = get_seconds() - delta; in bacct_add_tsk()
39 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk()
41 stats->ac_flag |= AFORK; in bacct_add_tsk()
44 stats->ac_flag |= ASU; in bacct_add_tsk()
46 stats->ac_flag |= ACORE; in bacct_add_tsk()
48 stats->ac_flag |= AXSIG; in bacct_add_tsk()
49 stats->ac_nice = task_nice(tsk); in bacct_add_tsk()
50 stats->ac_sched = tsk->policy; in bacct_add_tsk()
[all …]
Dtaskstats.c161 struct task_struct *tsk, struct taskstats *stats) in fill_stats() argument
163 memset(stats, 0, sizeof(*stats)); in fill_stats()
171 delayacct_add_tsk(stats, tsk); in fill_stats()
174 stats->version = TASKSTATS_VERSION; in fill_stats()
175 stats->nvcsw = tsk->nvcsw; in fill_stats()
176 stats->nivcsw = tsk->nivcsw; in fill_stats()
177 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
180 xacct_add_tsk(stats, tsk); in fill_stats()
183 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) in fill_stats_for_pid() argument
190 fill_stats(current_user_ns(), task_active_pid_ns(current), tsk, stats); in fill_stats_for_pid()
[all …]
/kernel/locking/
Dlockdep_proc.c346 struct lock_class_stats stats; member
351 struct lock_stat_data stats[MAX_LOCKDEP_KEYS]; member
362 nl = dl->stats.read_waittime.nr + dl->stats.write_waittime.nr; in lock_stat_cmp()
363 nr = dr->stats.read_waittime.nr + dr->stats.write_waittime.nr; in lock_stat_cmp()
409 struct lock_class_stats *stats; in seq_stats() local
416 stats = &data->stats; in seq_stats()
453 if (stats->write_holdtime.nr) { in seq_stats()
454 if (stats->read_holdtime.nr) in seq_stats()
459 seq_printf(m, "%14lu ", stats->bounces[bounce_contended_write]); in seq_stats()
460 seq_lock_time(m, &stats->write_waittime); in seq_stats()
[all …]
Dlockdep.c231 struct lock_class_stats stats; in lock_stats() local
234 memset(&stats, 0, sizeof(struct lock_class_stats)); in lock_stats()
239 for (i = 0; i < ARRAY_SIZE(stats.contention_point); i++) in lock_stats()
240 stats.contention_point[i] += pcs->contention_point[i]; in lock_stats()
242 for (i = 0; i < ARRAY_SIZE(stats.contending_point); i++) in lock_stats()
243 stats.contending_point[i] += pcs->contending_point[i]; in lock_stats()
245 lock_time_add(&pcs->read_waittime, &stats.read_waittime); in lock_stats()
246 lock_time_add(&pcs->write_waittime, &stats.write_waittime); in lock_stats()
248 lock_time_add(&pcs->read_holdtime, &stats.read_holdtime); in lock_stats()
249 lock_time_add(&pcs->write_holdtime, &stats.write_holdtime); in lock_stats()
[all …]
/kernel/cgroup/
Dcgroup-v1.c690 int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry) in cgroupstats_build() argument
722 stats->nr_running++; in cgroupstats_build()
725 stats->nr_sleeping++; in cgroupstats_build()
728 stats->nr_uninterruptible++; in cgroupstats_build()
731 stats->nr_stopped++; in cgroupstats_build()
735 stats->nr_io_wait++; in cgroupstats_build()
/kernel/rcu/
Drcutorture.c307 void (*stats)(void); member
455 .stats = NULL,
501 .stats = NULL,
591 .stats = srcu_torture_stats,
623 .stats = srcu_torture_stats,
642 .stats = srcu_torture_stats,
679 .stats = NULL,
721 .stats = NULL,
1473 if (cur_ops->stats) in rcu_torture_stats_print()
1474 cur_ops->stats(); in rcu_torture_stats_print()
/kernel/bpf/
Dsyscall.c1376 struct bpf_prog_stats *stats) in bpf_prog_get_stats() argument
1386 st = per_cpu_ptr(prog->aux->stats, cpu); in bpf_prog_get_stats()
1395 stats->nsecs = nsecs; in bpf_prog_get_stats()
1396 stats->cnt = cnt; in bpf_prog_get_stats()
1404 struct bpf_prog_stats stats; in bpf_prog_show_fdinfo() local
1406 bpf_prog_get_stats(prog, &stats); in bpf_prog_show_fdinfo()
1421 stats.nsecs, in bpf_prog_show_fdinfo()
1422 stats.cnt); in bpf_prog_show_fdinfo()
2330 struct bpf_prog_stats stats; in bpf_prog_get_info_by_fd() local
2370 bpf_prog_get_stats(prog, &stats); in bpf_prog_get_info_by_fd()
[all …]
Dcore.c114 prog->aux->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags); in bpf_prog_alloc()
115 if (!prog->aux->stats) { in bpf_prog_alloc()
124 pstats = per_cpu_ptr(prog->aux->stats, cpu); in bpf_prog_alloc()
257 free_percpu(fp->aux->stats); in __bpf_prog_free()
/kernel/sched/
DMakefile25 obj-$(CONFIG_SCHEDSTATS) += stats.o
/kernel/trace/
DKconfig739 It will output the stats of each per cpu buffer. What