Home
last modified time | relevance | path

Searched refs:nr_samples (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-4.19/block/
Dblk-stat.c23 stat->max = stat->nr_samples = stat->mean = 0; in blk_rq_stat_init()
30 if (!src->nr_samples) in blk_rq_stat_sum()
36 dst->mean = div_u64(src->batch + dst->mean * dst->nr_samples, in blk_rq_stat_sum()
37 dst->nr_samples + src->nr_samples); in blk_rq_stat_sum()
39 dst->nr_samples += src->nr_samples; in blk_rq_stat_sum()
47 stat->nr_samples++; in blk_rq_stat_add()
Dblk-iolatency.c111 u64 nr_samples; member
135 u64 nr_samples; member
373 samples_thresh = lat_info->nr_samples * 5; in check_scale_change()
375 if (iolat->nr_samples <= samples_thresh) in check_scale_change()
526 lat_info->nr_samples -= iolat->nr_samples; in iolatency_check_latencies()
527 lat_info->nr_samples += stat.nr_samples; in iolatency_check_latencies()
528 iolat->nr_samples = stat.nr_samples; in iolatency_check_latencies()
536 stat.nr_samples >= BLKIOLATENCY_MIN_GOOD_SAMPLES) { in iolatency_check_latencies()
Dblk-wbt.c211 return (stat[READ].nr_samples >= 1 && in stat_sample_valid()
212 stat[WRITE].nr_samples >= RWB_MIN_WRITE_SAMPLES); in stat_sample_valid()
250 (thislat > rwb->min_lat_nsec && !stat[READ].nr_samples)) { in latency_exceeded()
265 if (stat[WRITE].nr_samples || wb_recent_wait(rwb) || in latency_exceeded()
/kernel/linux/linux-5.10/block/
Dblk-stat.c24 stat->max = stat->nr_samples = stat->mean = 0; in blk_rq_stat_init()
31 if (!src->nr_samples) in blk_rq_stat_sum()
37 dst->mean = div_u64(src->batch + dst->mean * dst->nr_samples, in blk_rq_stat_sum()
38 dst->nr_samples + src->nr_samples); in blk_rq_stat_sum()
40 dst->nr_samples += src->nr_samples; in blk_rq_stat_sum()
48 stat->nr_samples++; in blk_rq_stat_add()
Dblk-iolatency.c112 u64 nr_samples; member
149 u64 nr_samples; member
242 return stat->rqs.nr_samples; in latency_stat_samples()
437 samples_thresh = lat_info->nr_samples * 5; in check_scale_change()
439 if (iolat->nr_samples <= samples_thresh) in check_scale_change()
556 lat_info->nr_samples -= iolat->nr_samples; in iolatency_check_latencies()
557 lat_info->nr_samples += latency_stat_samples(iolat, &iolat->cur_stat); in iolatency_check_latencies()
558 iolat->nr_samples = latency_stat_samples(iolat, &iolat->cur_stat); in iolatency_check_latencies()
Dblk-wbt.c213 return (stat[READ].nr_samples >= 1 && in stat_sample_valid()
214 stat[WRITE].nr_samples >= RWB_MIN_WRITE_SAMPLES); in stat_sample_valid()
252 (thislat > rwb->min_lat_nsec && !stat[READ].nr_samples)) { in latency_exceeded()
267 if (stat[WRITE].nr_samples || wb_recent_wait(rwb) || in latency_exceeded()
/kernel/linux/linux-5.10/tools/perf/tests/
Dsw-clock.c32 int nr_samples = 0; in __test__sw_clock_freq() local
119 nr_samples++; in __test__sw_clock_freq()
126 if ((u64) nr_samples == total_periods) { in __test__sw_clock_freq()
128 nr_samples); in __test__sw_clock_freq()
Dhists_link.c129 static int find_sample(struct sample *samples, size_t nr_samples, in find_sample() argument
132 while (nr_samples--) { in find_sample()
/kernel/linux/linux-4.19/tools/perf/tests/
Dsw-clock.c27 int nr_samples = 0; in __test__sw_clock_freq() local
114 nr_samples++; in __test__sw_clock_freq()
121 if ((u64) nr_samples == total_periods) { in __test__sw_clock_freq()
123 nr_samples); in __test__sw_clock_freq()
/kernel/linux/linux-4.19/kernel/irq/
Dtimings.c26 u32 nr_samples; member
152 irqs->nr_samples++; in irqs_update()
161 if (likely(irqs->nr_samples > 1)) in irqs_update()
170 if ((irqs->nr_samples >= 30) && ((diff * diff) > (9 * variance))) { in irqs_update()
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dadc.c51 unsigned int nr_samples; member
146 unsigned int channel, unsigned int nr_samples) in s3c_adc_start() argument
164 client->nr_samples = nr_samples; in s3c_adc_start()
294 adc_dbg(adc, "read %d: 0x%04x, 0x%04x\n", client->nr_samples, data0, data1); in s3c_adc_irq()
296 client->nr_samples--; in s3c_adc_irq()
308 (client->convert_cb)(client, data0, data1, &client->nr_samples); in s3c_adc_irq()
310 if (client->nr_samples > 0) { in s3c_adc_irq()
/kernel/linux/linux-4.19/arch/arm/plat-samsung/
Dadc.c51 unsigned int nr_samples; member
146 unsigned int channel, unsigned int nr_samples) in s3c_adc_start() argument
164 client->nr_samples = nr_samples; in s3c_adc_start()
294 adc_dbg(adc, "read %d: 0x%04x, 0x%04x\n", client->nr_samples, data0, data1); in s3c_adc_irq()
296 client->nr_samples--; in s3c_adc_irq()
308 (client->convert_cb)(client, data0, data1, &client->nr_samples); in s3c_adc_irq()
310 if (client->nr_samples > 0) { in s3c_adc_irq()
/kernel/linux/linux-5.10/tools/perf/bench/
Dinject-buildid.c33 static unsigned int nr_samples = 100; /* samples per mmap */ variable
61 OPT_UINTEGER('n', "nr-samples", &nr_samples,
372 for (k = 0; k < nr_samples; k++) { in inject_build_id()
438 time_average = avg_stats(&time_stats) / (nr_mmaps * (nr_samples + 2)); in do_inject_loop()
439 time_stddev = stddev_stats(&time_stats) / (nr_mmaps * (nr_samples + 2)); in do_inject_loop()
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
Dannotate.c42 if (!symbol_conf.event_group && !symhist->addr[dl->al.offset].nr_samples) in perf_gtk__get_percent()
45 percent = 100.0 * symhist->addr[dl->al.offset].nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
/kernel/linux/linux-4.19/tools/perf/ui/gtk/
Dannotate.c38 if (!symbol_conf.event_group && !symhist->addr[dl->al.offset].nr_samples) in perf_gtk__get_percent()
41 percent = 100.0 * symhist->addr[dl->al.offset].nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
/kernel/linux/linux-5.10/include/trace/events/
Dwbt.h41 __entry->rnr_samples = stat[0].nr_samples;
45 __entry->wnr_samples = stat[1].nr_samples;
/kernel/linux/linux-4.19/include/trace/events/
Dwbt.h41 __entry->rnr_samples = stat[0].nr_samples;
45 __entry->wnr_samples = stat[1].nr_samples;
/kernel/linux/linux-5.10/include/linux/soc/samsung/
Ds3c-adc.h17 unsigned int channel, unsigned int nr_samples);
/kernel/linux/linux-4.19/arch/arm/plat-samsung/include/plat/
Dadc.h17 unsigned int channel, unsigned int nr_samples);
/kernel/linux/linux-4.19/tools/perf/util/
Dannotate.c854 h->nr_samples++; in __symbol__inc_addr_samples()
855 h->addr[offset].nr_samples++; in __symbol__inc_addr_samples()
862 h->addr[offset].nr_samples, h->addr[offset].period); in __symbol__inc_addr_samples()
1394 data->he.nr_samples); in annotation_line__print()
1798 hits += sym_hist->addr[offset].nr_samples; in calc_percent()
1803 if (sym_hist->nr_samples) { in calc_percent()
1805 data->he.nr_samples = hits; in calc_percent()
1806 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2030 if (h->addr[offset].nr_samples != 0) in symbol__annotate_hits()
2032 sym->start + offset, h->addr[offset].nr_samples); in symbol__annotate_hits()
[all …]
/kernel/linux/linux-4.19/tools/perf/
Dbuiltin-report.c406 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() local
417 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
431 nr_samples += pos_hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
434 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
440 nr_samples = convert_unit(nr_samples, &unit); in hists__fprintf_nr_sample_events()
441 ret = fprintf(fp, "# Samples: %lu%c", nr_samples, unit); in hists__fprintf_nr_sample_events()
Dbuiltin-annotate.c426 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() local
428 if (nr_samples > 0) { in __cmd_annotate()
429 total_nr_samples += nr_samples; in __cmd_annotate()
/kernel/linux/linux-5.10/tools/perf/util/
Dannotate.c899 h->nr_samples++; in __symbol__inc_addr_samples()
900 h->addr[offset].nr_samples++; in __symbol__inc_addr_samples()
907 h->addr[offset].nr_samples, h->addr[offset].period); in __symbol__inc_addr_samples()
1430 data->he.nr_samples); in annotation_line__print()
2104 hits += sym_hist->addr[offset].nr_samples; in calc_percent()
2109 if (sym_hist->nr_samples) { in calc_percent()
2111 data->he.nr_samples = hits; in calc_percent()
2112 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2335 if (h->addr[offset].nr_samples != 0) in symbol__annotate_hits()
2337 sym->start + offset, h->addr[offset].nr_samples); in symbol__annotate_hits()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c245 params.nr_samples = rc->nr_samples; in virtio_gpu_resource_create_ioctl()
250 if (rc->nr_samples > 1) in virtio_gpu_resource_create_ioctl()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-annotate.c428 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() local
430 if (nr_samples > 0) { in __cmd_annotate()
431 total_nr_samples += nr_samples; in __cmd_annotate()

123