Home
last modified time | relevance | path

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

/tools/perf/tests/
Dsw-clock.c31 int nr_samples = 0; in __test__sw_clock_freq() local
118 nr_samples++; in __test__sw_clock_freq()
125 if ((u64) nr_samples == total_periods) { in __test__sw_clock_freq()
127 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()
/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()
/tools/perf/util/
Dannotate.c886 h->nr_samples++; in __symbol__inc_addr_samples()
887 h->addr[offset].nr_samples++; in __symbol__inc_addr_samples()
894 h->addr[offset].nr_samples, h->addr[offset].period); in __symbol__inc_addr_samples()
1439 data->he.nr_samples); in annotation_line__print()
2019 hits += sym_hist->addr[offset].nr_samples; in calc_percent()
2024 if (sym_hist->nr_samples) { in calc_percent()
2026 data->he.nr_samples = hits; in calc_percent()
2027 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2251 if (h->addr[offset].nr_samples != 0) in symbol__annotate_hits()
2253 sym->start + offset, h->addr[offset].nr_samples); in symbol__annotate_hits()
[all …]
Dannotate.h112 u64 nr_samples; member
227 u64 nr_samples; member
Dhist.c2632 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title() local
2642 nr_samples = hists->stats.nr_non_filtered_samples; in __hists__scnprintf_title()
2656 nr_samples += pos_hists->stats.nr_non_filtered_samples; in __hists__scnprintf_title()
2659 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title()
2672 nr_samples = convert_unit(nr_samples, &unit); in __hists__scnprintf_title()
2675 nr_samples, unit, evsel->core.nr_members > 1 ? "s" : "", in __hists__scnprintf_title()
/tools/perf/
Dbuiltin-report.c421 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() local
432 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
446 nr_samples += pos_hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
449 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
455 nr_samples = convert_unit(nr_samples, &unit); in hists__fprintf_nr_sample_events()
456 ret = fprintf(fp, "# Samples: %lu%c", nr_samples, unit); in hists__fprintf_nr_sample_events()
Dbuiltin-annotate.c430 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() local
432 if (nr_samples > 0) { in __cmd_annotate()
433 total_nr_samples += nr_samples; in __cmd_annotate()