Lines Matching refs:top
23 size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size) in perf_top__header_snprintf() argument
28 struct record_opts *opts = &top->record_opts; in perf_top__header_snprintf()
32 if (top->samples) { in perf_top__header_snprintf()
33 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf()
34 ksamples_per_sec = top->kernel_samples / top->delay_secs; in perf_top__header_snprintf()
35 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf()
50 top->lost, top->lost_total, top->drop, top->drop_total); in perf_top__header_snprintf()
52 float us_samples_per_sec = top->us_samples / top->delay_secs; in perf_top__header_snprintf()
53 float guest_kernel_samples_per_sec = top->guest_kernel_samples / top->delay_secs; in perf_top__header_snprintf()
54 float guest_us_samples_per_sec = top->guest_us_samples / top->delay_secs; in perf_top__header_snprintf()
73 if (top->evlist->core.nr_entries == 1) { in perf_top__header_snprintf()
74 struct evsel *first = evlist__first(top->evlist); in perf_top__header_snprintf()
80 ret += SNPRINTF(bf + ret, size - ret, "%s", evsel__name(top->sym_evsel)); in perf_top__header_snprintf()
98 perf_cpu_map__nr(top->evlist->core.user_requested_cpus) > 1 in perf_top__header_snprintf()
106 perf_cpu_map__nr(top->evlist->core.user_requested_cpus), in perf_top__header_snprintf()
107 perf_cpu_map__nr(top->evlist->core.user_requested_cpus) > 1 in perf_top__header_snprintf()
111 perf_top__reset_sample_counters(top); in perf_top__header_snprintf()
115 void perf_top__reset_sample_counters(struct perf_top *top) in perf_top__reset_sample_counters() argument
117 top->samples = top->us_samples = top->kernel_samples = in perf_top__reset_sample_counters()
118 top->exact_samples = top->guest_kernel_samples = in perf_top__reset_sample_counters()
119 top->guest_us_samples = top->lost = top->drop = 0; in perf_top__reset_sample_counters()