/linux/block/ |
H A D | blk-stat.c | 23 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 D | blk-iolatency.c | 118 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 D | blk-wbt.c | 272 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 D | hists_filter.c | 165 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 D | sw-clock.c | 33 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 D | hists_link.c | 147 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 D | annotate.c | 37 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 D | annotate-data.h | 63 * @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 D | annotate-data.c | 1692 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 D | annotate.c | 248 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 D | events_stats.h | 60 u32 nr_samples; member
|
H A D | hist.c | 2371 ++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 D | annotate.h | 81 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 D | builtin-annotate.c | 589 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 D | builtin-report.c | 478 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 D | annotate-data.c | 47 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 D | inject-buildid.c | 34 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 D | wbt.h | 41 __entry->rnr_samples = stat[0].nr_samples; 45 __entry->wnr_samples = stat[1].nr_samples;
|
/linux/tools/perf/ui/ |
H A D | hist.c | 27 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 D | virtgpu_ioctl.c | 149 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 D | virtgpu_drv.h | 80 uint32_t nr_samples; member
|
/linux/include/uapi/drm/ |
H A D | virtgpu_drm.h | 118 __u32 nr_samples; member
|
/linux/include/uapi/linux/ |
H A D | virtio_gpu.h | 277 __le32 nr_samples; member
|
/linux/include/linux/ |
H A D | blk_types.h | 496 u32 nr_samples; member
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | b43legacy.h | 548 u8 nr_samples; member
|