Home
last modified time | relevance | path

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

12

/linux/block/
H A Dblk-stat.c23 stat->max = stat->nr_samples = stat->mean = 0; in blk_rq_stat_init()
30 if (dst->nr_samples + src->nr_samples <= dst->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()
H A Dblk-iolatency.c118 u64 nr_samples; member
155 u64 nr_samples; member
248 return stat->rqs.nr_samples; in latency_stat_samples()
440 samples_thresh = lat_info->nr_samples * 5; in check_scale_change()
442 if (iolat->nr_samples <= samples_thresh) in check_scale_change()
559 lat_info->nr_samples -= iolat->nr_samples; in iolatency_check_latencies()
560 lat_info->nr_samples += latency_stat_samples(iolat, &iolat->cur_stat); in iolatency_check_latencies()
561 iolat->nr_samples = latency_stat_samples(iolat, &iolat->cur_stat); in iolatency_check_latencies()
H A Dblk-wbt.c272 return (stat[READ].nr_samples >= 1 && in stat_sample_valid()
273 stat[WRITE].nr_samples >= RWB_MIN_WRITE_SAMPLES); in stat_sample_valid()
320 (thislat > rwb->min_lat_nsec && !stat[READ].nr_samples)) { in latency_exceeded()
335 if (stat[WRITE].nr_samples || wb_recent_wait(rwb) || in latency_exceeded()
/linux/tools/perf/tests/
H A Dhists_filter.c165 hists->stats.nr_samples == 10); in test__hists_filter()
171 hists->stats.nr_samples == in test__hists_filter()
190 hists->stats.nr_samples == 10); in test__hists_filter()
219 hists->stats.nr_samples == 10); in test__hists_filter()
254 hists->stats.nr_samples == 10); in test__hists_filter()
283 hists->stats.nr_samples == 10); in test__hists_filter()
314 hists->stats.nr_samples == 10); in test__hists_filter()
H A Dsw-clock.c33 int nr_samples = 0; in __test__sw_clock_freq() local
117 nr_samples++; in __test__sw_clock_freq()
124 if ((u64) nr_samples == total_periods) { in __test__sw_clock_freq()
126 nr_samples); in __test__sw_clock_freq()
H A Dhists_link.c147 static int find_sample(struct sample *samples, size_t nr_samples, in find_sample() argument
150 while (nr_samples--) { in find_sample()
/linux/tools/perf/ui/gtk/
H A Dannotate.c37 u64 nr_samples = 0; in perf_gtk__get_percent() local
48 nr_samples = entry->nr_samples; in perf_gtk__get_percent()
50 if (!symbol_conf.event_group && nr_samples == 0) in perf_gtk__get_percent()
53 percent = 100.0 * nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
/linux/tools/perf/util/
H A Dannotate-data.h63 * @nr_samples: Number of samples
67 int nr_samples; member
73 * @nr_samples: Total number of samples in this data type
78 u64 nr_samples; member
222 int nr_samples, u64 period);
259 int nr_samples __maybe_unused, in annotated_data_type__update_samples()
H A Dannotate-data.c1692 int nr_samples, u64 period) in annotated_data_type__update_samples() argument
1711 h->nr_samples += nr_samples; in annotated_data_type__update_samples()
1712 h->addr[offset].nr_samples += nr_samples; in annotated_data_type__update_samples()
1722 int nr_samples = he->stat.nr_events; in print_annotated_data_header() local
1730 nr_samples += pair->stat.nr_events; in print_annotated_data_header()
1734 he->mem_type->self.type_name, dso__name(dso), nr_samples); in print_annotated_data_header()
1743 evsel__hists(pos)->stats.nr_samples == 0) in print_annotated_data_header()
1764 static void print_annotated_data_value(struct type_hist *h, u64 period, int nr_samples) in print_annotated_data_value() argument
1772 color_fprintf(stdout, color, " %7d", nr_samples); in print_annotated_data_value()
1792 evsel__hists(pos)->stats.nr_samples == 0) in print_annotated_data_type()
[all …]
H A Dannotate.c248 h->nr_samples++; in __symbol__inc_addr_samples()
250 entry->nr_samples++; in __symbol__inc_addr_samples()
254 ", evidx=%d] => nr_samples: %" PRIu64 ", period: %" PRIu64 "\n", in __symbol__inc_addr_samples()
256 entry->nr_samples, entry->period); in __symbol__inc_addr_samples()
819 data->he.nr_samples); in annotation_line__print()
874 hits += entry->nr_samples; in calc_percent()
880 if (sym_hist->nr_samples) { in calc_percent()
882 data->he.nr_samples = hits; in calc_percent()
883 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
918 evsel__hists(evsel)->stats.nr_samples in annotation__calc_percent()
[all...]
H A Devents_stats.h60 u32 nr_samples; member
H A Dhist.c2371 ++stats->nr_samples; in hists__inc_nr_events()
2740 u64 total_samples = hists->stats.nr_samples; in evlist__fprintf_nr_events()
2749 if (hists->stats.nr_samples) in evlist__fprintf_nr_events()
2751 "SAMPLE", hists->stats.nr_samples); in evlist__fprintf_nr_events()
2777 unsigned long nr_samples = hists->stats.nr_samples; in __hists__scnprintf_title()
2787 nr_samples = hists->stats.nr_non_filtered_samples; in __hists__scnprintf_title()
2801 nr_samples += pos_hists->stats.nr_non_filtered_samples; in __hists__scnprintf_title()
2804 nr_samples += pos_hists->stats.nr_samples; in __hists__scnprintf_title()
2774 unsigned long nr_samples = hists->stats.nr_samples; __hists__scnprintf_title() local
[all...]
H A Dannotate.h81 u64 nr_samples;
208 * @nr_samples: Total number of samples.
212 u64 nr_samples;
75 u64 nr_samples; global() member
206 u64 nr_samples; global() member
/linux/tools/perf/
H A Dbuiltin-annotate.c589 u32 nr_samples = hists->stats.nr_samples; in __cmd_annotate() local
592 if (nr_samples > 0) { in __cmd_annotate()
593 total_nr_samples += nr_samples; in __cmd_annotate()
595 ui_progress__init(&prog, nr_samples, in __cmd_annotate()
603 ui_progress__init(&prog, nr_samples, in __cmd_annotate()
635 u32 nr_samples = hists->stats.nr_samples; in __cmd_annotate() local
643 nr_samples += evsel__hists(evsel)->stats.nr_samples; in __cmd_annotate()
[all...]
H A Dbuiltin-report.c478 unsigned long nr_samples = hists->stats.nr_samples; in hists__fprintf_nr_sample_events() local
489 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
503 nr_samples += pos_hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
506 nr_samples += pos_hists->stats.nr_samples; in hists__fprintf_nr_sample_events()
512 nr_samples = convert_unit(nr_samples, &unit); in hists__fprintf_nr_sample_events()
513 ret = fprintf(fp, "# Samples: %lu%c", nr_samples, unit); in hists__fprintf_nr_sample_events()
572 if (rep->skip_empty && !hists->stats.nr_samples) in evlist__tty_browse_hists()
[all...]
/linux/tools/perf/ui/browsers/
H A Dannotate-data.c47 dst->nr_samples += src->nr_samples; in update_hist_entry()
66 evsel__hists(evsel)->stats.nr_samples == 0) in get_member_overhead()
373 int nr_samples = 0; in browser__write_overhead() local
380 ui_browser__printf(uib, " %10d", nr_samples); in browser__write_overhead()
422 evsel__hists(evsel)->stats.nr_samples == 0) in browser__write()
592 evsel__hists(pos)->stats.nr_samples) in hist_entry__annotate_data_tui()
/linux/tools/perf/bench/
H A Dinject-buildid.c34 static unsigned int nr_samples = 100; /* samples per mmap */ variable
62 OPT_UINTEGER('n', "nr-samples", &nr_samples,
373 for (k = 0; k < nr_samples; k++) { in inject_build_id()
438 /* each iteration, it processes MMAP2 + BUILD_ID + nr_samples * SAMPLE */ in do_inject_loop()
439 time_average = avg_stats(&time_stats) / (nr_mmaps * (nr_samples + 2)); in do_inject_loop()
440 time_stddev = stddev_stats(&time_stats) / (nr_mmaps * (nr_samples + 2)); in do_inject_loop()
/linux/include/trace/events/
H A Dwbt.h41 __entry->rnr_samples = stat[0].nr_samples;
45 __entry->wnr_samples = stat[1].nr_samples;
/linux/tools/perf/ui/
H A Dhist.c27 int nr_samples, const char *fmt, int len, in __hpp__fmt_print() argument
41 double avg = nr_samples ? (1.0 * val / nr_samples) : 0; in __hpp__fmt_print()
99 values[i].hists->stats.nr_samples == 0) in __hpp__fmt()
309 evsel__hists(pos)->stats.nr_samples) in hpp__width_fn()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_ioctl.c149 params.nr_samples = rc->nr_samples; in virtio_gpu_resource_create_ioctl()
154 if (rc->nr_samples > 1) in virtio_gpu_resource_create_ioctl()
H A Dvirtgpu_drv.h80 uint32_t nr_samples; member
/linux/include/uapi/drm/
H A Dvirtgpu_drm.h118 __u32 nr_samples; member
/linux/include/uapi/linux/
H A Dvirtio_gpu.h277 __le32 nr_samples; member
/linux/include/linux/
H A Dblk_types.h496 u32 nr_samples; member
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Db43legacy.h548 u8 nr_samples; member

12