Home
last modified time | relevance | path

Searched refs:percpu_cntr (Results 1 – 2 of 2) sorted by relevance

/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_counters.c46 struct lprocfs_counter *percpu_cntr; in lprocfs_counter_add() local
64 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); in lprocfs_counter_add()
65 percpu_cntr->lc_count++; in lprocfs_counter_add()
77 percpu_cntr->lc_sum_irq += amount; in lprocfs_counter_add()
79 percpu_cntr->lc_sum += amount; in lprocfs_counter_add()
82 percpu_cntr->lc_sumsquare += (__s64)amount * amount; in lprocfs_counter_add()
83 if (amount < percpu_cntr->lc_min) in lprocfs_counter_add()
84 percpu_cntr->lc_min = amount; in lprocfs_counter_add()
85 if (amount > percpu_cntr->lc_max) in lprocfs_counter_add()
86 percpu_cntr->lc_max = amount; in lprocfs_counter_add()
[all …]
Dlprocfs_status.c540 struct lprocfs_counter *percpu_cntr; in lprocfs_stats_collect() local
559 percpu_cntr = lprocfs_stats_counter_get(stats, i, idx); in lprocfs_stats_collect()
561 cnt->lc_count += percpu_cntr->lc_count; in lprocfs_stats_collect()
562 cnt->lc_sum += percpu_cntr->lc_sum; in lprocfs_stats_collect()
563 if (percpu_cntr->lc_min < cnt->lc_min) in lprocfs_stats_collect()
564 cnt->lc_min = percpu_cntr->lc_min; in lprocfs_stats_collect()
565 if (percpu_cntr->lc_max > cnt->lc_max) in lprocfs_stats_collect()
566 cnt->lc_max = percpu_cntr->lc_max; in lprocfs_stats_collect()
567 cnt->lc_sumsquare += percpu_cntr->lc_sumsquare; in lprocfs_stats_collect()
1081 struct lprocfs_counter *percpu_cntr; in lprocfs_clear_stats() local
[all …]