/Linux-v5.15/net/netfilter/ |
D | xt_limit.c | 112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check() 114 r->avg, r->burst); in limit_mt_check() 127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check() 130 r->cost = user2credits(r->avg); in limit_mt_check() 145 u_int32_t avg; member 161 .avg = cm->avg, in limit_mt_compat_from_user() 175 .avg = m->avg, in limit_mt_compat_to_user()
|
/Linux-v5.15/net/bridge/netfilter/ |
D | ebt_limit.c | 75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check() 77 info->avg, info->burst); in ebt_limit_mt_check() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 84 info->credit_cap = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 85 info->cost = user2credits(info->avg); in ebt_limit_mt_check() 96 compat_uint_t avg, burst; member
|
/Linux-v5.15/drivers/mfd/ |
D | pcf50633-adc.c | 27 int avg; member 54 static void adc_setup(struct pcf50633 *pcf, int channel, int avg) in adc_setup() argument 63 pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg | in adc_setup() 77 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); in trigger_next_adc_job_if_any() 116 int pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) in pcf50633_adc_sync_read() argument 123 ret = pcf50633_adc_async_read(pcf, mux, avg, in pcf50633_adc_sync_read() 134 int pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, in pcf50633_adc_async_read() argument 146 req->avg = avg; in pcf50633_adc_async_read()
|
/Linux-v5.15/tools/perf/util/ |
D | stat-shadow.c | 486 int cpu, double avg, in print_stalled_cycles_frontend() argument 497 ratio = avg / total * 100.0; in print_stalled_cycles_frontend() 509 int cpu, double avg, in print_stalled_cycles_backend() argument 520 ratio = avg / total * 100.0; in print_stalled_cycles_backend() 528 int cpu, double avg, in print_branch_misses() argument 539 ratio = avg / total * 100.0; in print_branch_misses() 547 int cpu, double avg, in print_l1_dcache_misses() argument 558 ratio = avg / total * 100.0; in print_l1_dcache_misses() 566 int cpu, double avg, in print_l1_icache_misses() argument 577 ratio = avg / total * 100.0; in print_l1_icache_misses() [all …]
|
D | stat-display.c | 42 double total, double avg) in print_noise_pct() argument 44 double pct = rel_stddev_stats(total, avg); in print_noise_pct() 53 struct evsel *evsel, double avg) in print_noise() argument 61 print_noise_pct(config, stddev_stats(&ps->res_stats[0]), avg); in print_noise() 355 struct aggr_cpu_id id, int nr, struct evsel *evsel, double avg) in abs_printout() argument 372 fprintf(output, fmt, avg, config->csv_sep); in abs_printout() 835 double avg, avg_enabled, avg_running; member 845 cd->avg += aggr->val; in counter_aggr_cb() 860 struct caggr_data cd = { .avg = 0.0 }; in print_counter_aggr() 868 uval = cd.avg * counter->scale; in print_counter_aggr() [all …]
|
/Linux-v5.15/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.py | 20 def avg(total, n): function 40 min, max, avg, count = dict[key] 45 avg = (avg + value) / 2 46 dict[key] = (min, max, avg, count + 1)
|
/Linux-v5.15/drivers/iio/humidity/ |
D | hts221_core.c | 173 const struct hts221_avg *avg = &hts221_avg_list[type]; in hts221_update_avg() local 177 if (avg->avg_avl[i] == val) in hts221_update_avg() 183 data = ((i << __ffs(avg->mask)) & avg->mask); in hts221_update_avg() 184 err = regmap_update_bits(hw->regmap, avg->addr, in hts221_update_avg() 185 avg->mask, data); in hts221_update_avg() 214 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_sysfs_rh_oversampling_avail() local 218 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_rh_oversampling_avail() 220 avg->avg_avl[i]); in hts221_sysfs_rh_oversampling_avail() 231 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_sysfs_temp_oversampling_avail() local 235 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_temp_oversampling_avail() [all …]
|
/Linux-v5.15/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 43 struct timespec avg; in vcpu_worker() local 82 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_id]); in vcpu_worker() 85 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker() 184 struct timespec avg; in run_test() local 296 avg = timespec_div(get_dirty_log_total, p->iterations); in run_test() 299 get_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test() 302 avg = timespec_div(clear_dirty_log_total, p->iterations); in run_test() 305 clear_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
|
/Linux-v5.15/kernel/sched/ |
D | pelt.h | 40 static inline u32 get_pelt_divider(struct sched_avg *avg) in get_pelt_divider() argument 42 return LOAD_AVG_MAX - 1024 + avg->period_contrib; in get_pelt_divider() 45 static inline void cfs_se_util_change(struct sched_avg *avg) in cfs_se_util_change() argument 53 enqueued = avg->util_est.enqueued; in cfs_se_util_change() 59 WRITE_ONCE(avg->util_est.enqueued, enqueued); in cfs_se_util_change() 116 u32 util_sum = rq->cfs.avg.util_sum; in update_idle_rq_clock_pelt()
|
D | pelt.c | 301 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se() 302 ___update_load_avg(&se->avg, se_weight(se)); in __update_load_avg_blocked_se() 312 if (___update_load_sum(now, &se->avg, !!se->on_rq, se_runnable(se), in __update_load_avg_se() 315 ___update_load_avg(&se->avg, se_weight(se)); in __update_load_avg_se() 316 cfs_se_util_change(&se->avg); in __update_load_avg_se() 326 if (___update_load_sum(now, &cfs_rq->avg, in __update_load_avg_cfs_rq() 331 ___update_load_avg(&cfs_rq->avg, 1); in __update_load_avg_cfs_rq()
|
D | psi.c | 294 static void calc_avgs(unsigned long avg[3], int missed_periods, in calc_avgs() 301 avg[0] = calc_load_n(avg[0], EXP_10s, 0, missed_periods); in calc_avgs() 302 avg[1] = calc_load_n(avg[1], EXP_60s, 0, missed_periods); in calc_avgs() 303 avg[2] = calc_load_n(avg[2], EXP_300s, 0, missed_periods); in calc_avgs() 309 avg[0] = calc_load(avg[0], EXP_10s, pct); in calc_avgs() 310 avg[1] = calc_load(avg[1], EXP_60s, pct); in calc_avgs() 311 avg[2] = calc_load(avg[2], EXP_300s, pct); in calc_avgs() 416 calc_avgs(group->avg[s], missed_periods, sample, period); in update_averages() 1054 unsigned long avg[3]; in psi_show() local 1059 avg[w] = group->avg[res * 2 + full][w]; in psi_show() [all …]
|
D | fair.c | 726 struct sched_avg *sa = &se->avg; in init_entity_runnable_average() 774 struct sched_avg *sa = &se->avg; in post_init_entity_util_avg() 776 long cap = (long)(cpu_scale - cfs_rq->avg.util_avg) / 2; in post_init_entity_util_avg() 779 if (cfs_rq->avg.util_avg != 0) { in post_init_entity_util_avg() 780 sa->util_avg = cfs_rq->avg.util_avg * se->load.weight; in post_init_entity_util_avg() 781 sa->util_avg /= (cfs_rq->avg.load_avg + 1); in post_init_entity_util_avg() 803 se->avg.last_update_time = cfs_rq_clock_pelt(cfs_rq); in post_init_entity_util_avg() 2254 delta = p->se.avg.load_sum; in numa_get_avg_runtime() 3065 cfs_rq->avg.load_avg += se->avg.load_avg; in enqueue_load_avg() 3066 cfs_rq->avg.load_sum += se_weight(se) * se->avg.load_sum; in enqueue_load_avg() [all …]
|
D | debug.c | 477 P(se->avg.load_avg); in print_cfs_group_stats() 478 P(se->avg.util_avg); in print_cfs_group_stats() 479 P(se->avg.runnable_avg); in print_cfs_group_stats() 622 cfs_rq->avg.load_avg); in print_cfs_rq() 624 cfs_rq->avg.runnable_avg); in print_cfs_rq() 626 cfs_rq->avg.util_avg); in print_cfs_rq() 628 cfs_rq->avg.util_est.enqueued); in print_cfs_rq() 1023 P(se.avg.load_sum); in proc_sched_show_task() 1024 P(se.avg.runnable_sum); in proc_sched_show_task() 1025 P(se.avg.util_sum); in proc_sched_show_task() [all …]
|
/Linux-v5.15/kernel/trace/ |
D | trace_benchmark.c | 45 unsigned int avg; in trace_do_benchmark() local 109 avg = delta; in trace_do_benchmark() 124 seed = avg; in trace_do_benchmark() 140 bm_last, bm_first, bm_max, bm_min, avg, std, stddev); in trace_do_benchmark() 143 bm_avg = avg; in trace_do_benchmark()
|
D | ring_buffer_benchmark.c | 238 unsigned long avg; in ring_buffer_producer() local 348 avg = NSEC_PER_MSEC / hit; in ring_buffer_producer() 349 trace_printk("%ld ns per entry\n", avg); in ring_buffer_producer() 366 avg = NSEC_PER_MSEC / (hit + missed); in ring_buffer_producer() 367 trace_printk("%ld ns per entry\n", avg); in ring_buffer_producer()
|
/Linux-v5.15/include/uapi/linux/netfilter/ |
D | xt_hashlimit.h | 34 __u32 avg; /* Average secs between packets * scale */ member 58 __u32 avg; /* Average secs between packets * scale */ member 71 __u64 avg; /* Average secs between packets * scale */ member 85 __u64 avg; /* Average secs between packets * scale */ member
|
/Linux-v5.15/net/dccp/ccids/lib/ |
D | tfrc.h | 49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument 51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
|
/Linux-v5.15/tools/perf/bench/ |
D | epoll-ctl.c | 280 unsigned long avg[EPOLL_NR_OPS]; in print_summary() local 284 avg[i] = avg_stats(&all_stats[i]); in print_summary() 289 avg[OP_EPOLL_ADD], rel_stddev_stats(stddev[OP_EPOLL_ADD], in print_summary() 290 avg[OP_EPOLL_ADD])); in print_summary() 292 avg[OP_EPOLL_MOD], rel_stddev_stats(stddev[OP_EPOLL_MOD], in print_summary() 293 avg[OP_EPOLL_MOD])); in print_summary() 295 avg[OP_EPOLL_DEL], rel_stddev_stats(stddev[OP_EPOLL_DEL], in print_summary() 296 avg[OP_EPOLL_DEL])); in print_summary()
|
/Linux-v5.15/drivers/cpuidle/governors/ |
D | menu.c | 173 unsigned int min, max, thresh, avg; in get_typical_interval() local 206 avg = sum >> INTERVAL_SHIFT; in get_typical_interval() 208 avg = div_u64(sum, divisor); in get_typical_interval() 215 int64_t diff = (int64_t)value - avg; in get_typical_interval() 237 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) in get_typical_interval() 239 return avg; in get_typical_interval()
|
/Linux-v5.15/fs/ceph/ |
D | debugfs.c | 130 #define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \ argument 132 _avg = ktime_to_us(avg); \ 143 #define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \ argument 146 name, total, avg, _min, max, sum); \ 155 s64 total, sum, avg, min, max, sq; in metric_show() local 175 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show() 180 CEPH_LAT_METRIC_SHOW("read", total, avg, min, max, sq); in metric_show() 185 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show() 190 CEPH_LAT_METRIC_SHOW("write", total, avg, min, max, sq); in metric_show() 195 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metric_show() [all …]
|
/Linux-v5.15/kernel/time/ |
D | test_udelay.c | 31 uint64_t avg; in udelay_test_single() local 55 avg = sum; in udelay_test_single() 56 do_div(avg, iters); in udelay_test_single() 59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
|
/Linux-v5.15/drivers/power/supply/ |
D | ab8500_fg.c | 107 int avg; member 383 struct ab8500_fg_avg_cap *avg = &di->avg_cap; in ab8500_fg_add_cap_sample() local 386 avg->sum += sample - avg->samples[avg->pos]; in ab8500_fg_add_cap_sample() 387 avg->samples[avg->pos] = sample; in ab8500_fg_add_cap_sample() 388 avg->time_stamps[avg->pos] = now; in ab8500_fg_add_cap_sample() 389 avg->pos++; in ab8500_fg_add_cap_sample() 391 if (avg->pos == NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample() 392 avg->pos = 0; in ab8500_fg_add_cap_sample() 394 if (avg->nbr_samples < NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample() 395 avg->nbr_samples++; in ab8500_fg_add_cap_sample() [all …]
|
/Linux-v5.15/drivers/clk/bcm/ |
D | clk-bcm53573-ilp.c | 50 int avg; in bcm53573_ilp_recalc_rate() local 87 avg = sum / num; in bcm53573_ilp_recalc_rate() 89 return parent_rate * 4 / avg; in bcm53573_ilp_recalc_rate()
|
/Linux-v5.15/include/linux/mfd/pcf50633/ |
D | adc.h | 63 pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, 67 pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg);
|
/Linux-v5.15/tools/perf/scripts/python/ |
D | futex-contention.py | 55 min, max, avg, count = lock_waits[tid, lock] 57 (process_names[tid], tid, lock, count, avg, max, min))
|