Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 50) sorted by relevance

12

/tools/perf/util/
Dstat.h8 struct stats struct
29 struct stats res_stats[3]; argument
49 void update_stats(struct stats *stats, u64 val);
50 double avg_stats(struct stats *stats);
51 double stddev_stats(struct stats *stats);
54 static inline void init_stats(struct stats *stats) in init_stats() argument
56 stats->n = 0.0; in init_stats()
57 stats->mean = 0.0; in init_stats()
58 stats->M2 = 0.0; in init_stats()
59 stats->min = (u64) -1; in init_stats()
[all …]
Dstat.c7 void update_stats(struct stats *stats, u64 val) in update_stats() argument
11 stats->n++; in update_stats()
12 delta = val - stats->mean; in update_stats()
13 stats->mean += delta / stats->n; in update_stats()
14 stats->M2 += delta*(val - stats->mean); in update_stats()
16 if (val > stats->max) in update_stats()
17 stats->max = val; in update_stats()
19 if (val < stats->min) in update_stats()
20 stats->min = val; in update_stats()
23 double avg_stats(struct stats *stats) in avg_stats() argument
[all …]
Dstat-shadow.c25 static struct stats runtime_nsecs_stats[MAX_NR_CPUS];
26 static struct stats runtime_cycles_stats[NUM_CTX][MAX_NR_CPUS];
27 static struct stats runtime_stalled_cycles_front_stats[NUM_CTX][MAX_NR_CPUS];
28 static struct stats runtime_stalled_cycles_back_stats[NUM_CTX][MAX_NR_CPUS];
29 static struct stats runtime_branches_stats[NUM_CTX][MAX_NR_CPUS];
30 static struct stats runtime_cacherefs_stats[NUM_CTX][MAX_NR_CPUS];
31 static struct stats runtime_l1_dcache_stats[NUM_CTX][MAX_NR_CPUS];
32 static struct stats runtime_l1_icache_stats[NUM_CTX][MAX_NR_CPUS];
33 static struct stats runtime_ll_cache_stats[NUM_CTX][MAX_NR_CPUS];
34 static struct stats runtime_itlb_cache_stats[NUM_CTX][MAX_NR_CPUS];
[all …]
Dsession.c1165 ++evlist->stats.nr_unknown_id; in deliver_sample_value()
1235 ++evlist->stats.nr_unknown_id; in machines__deliver_event()
1240 ++evlist->stats.nr_unprocessable_samples; in machines__deliver_event()
1248 ++evlist->stats.nr_proc_map_timeout; in machines__deliver_event()
1258 evlist->stats.total_lost += event->lost.lost; in machines__deliver_event()
1262 evlist->stats.total_lost_samples += event->lost_samples.lost; in machines__deliver_event()
1273 evlist->stats.total_aux_lost += 1; in machines__deliver_event()
1281 ++evlist->stats.nr_unknown_events; in machines__deliver_event()
1376 events_stats__inc(&evlist->stats, event->header.type); in perf_session__deliver_synth_event()
1462 events_stats__inc(&evlist->stats, event->header.type); in perf_session__process_event()
[all …]
Dkvm-stat.h20 struct stats stats; member
Dhist.c279 hists->stats.total_period -= diff; in hists__decay_entry()
281 hists->stats.total_non_filtered_period -= diff; in hists__decay_entry()
1509 hists->stats.total_non_filtered_period = 0; in hists__reset_filter_stats()
1515 hists->stats.total_period = 0; in hists__reset_stats()
1523 hists->stats.total_non_filtered_period += h->stat.period; in hists__inc_filter_stats()
1532 hists->stats.total_period += h->stat.period; in hists__inc_stats()
1542 hists->stats.total_period = 0; in hierarchy_recalc_total_periods()
1543 hists->stats.total_non_filtered_period = 0; in hierarchy_recalc_total_periods()
1554 hists->stats.total_period += he->stat.period; in hierarchy_recalc_total_periods()
1556 hists->stats.total_non_filtered_period += he->stat.period; in hierarchy_recalc_total_periods()
[all …]
/tools/perf/tests/
Dhists_filter.c151 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
155 hists->stats.total_period == 1000); in test__hists_filter()
157 hists->stats.nr_events[PERF_RECORD_SAMPLE] == in test__hists_filter()
158 hists->stats.nr_non_filtered_samples); in test__hists_filter()
162 hists->stats.total_period == in test__hists_filter()
163 hists->stats.total_non_filtered_period); in test__hists_filter()
176 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
180 hists->stats.total_period == 1000); in test__hists_filter()
184 hists->stats.nr_non_filtered_samples == 4); in test__hists_filter()
188 hists->stats.total_non_filtered_period == 400); in test__hists_filter()
[all …]
/tools/testing/selftests/powerpc/pmu/ebb/
Debb.c75 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count()
77 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count()
85 upper = ebb_state.stats.ebb_count * (sample_period + fudge); in ebb_check_count()
106 ebb_state.stats.spurious++; in standard_ebb_callee()
110 ebb_state.stats.ebb_count++; in standard_ebb_callee()
111 trace_log_counter(ebb_state.trace, ebb_state.stats.ebb_count); in standard_ebb_callee()
123 ebb_state.stats.no_overflow++; in standard_ebb_callee()
161 memset(&ebb_state.stats, 0, sizeof(ebb_state.stats)); in clear_ebb_stats()
177 ebb_state.stats.ebb_count, ebb_state.stats.spurious, in dump_summary_ebb_state()
178 ebb_state.stats.negative, ebb_state.stats.no_overflow, in dump_summary_ebb_state()
[all …]
Dback_to_back_ebbs_test.c33 ebb_state.stats.spurious++; in ebb_callee()
37 ebb_state.stats.ebb_count++; in ebb_callee()
38 trace_log_counter(ebb_state.trace, ebb_state.stats.ebb_count); in ebb_callee()
44 if (ebb_state.stats.ebb_count == NUMBER_OF_EBBS) in ebb_callee()
88 while (ebb_state.stats.ebb_count < NUMBER_OF_EBBS) in back_to_back_ebbs()
100 FAIL_IF(ebb_state.stats.ebb_count != NUMBER_OF_EBBS); in back_to_back_ebbs()
Dcycles_with_freeze_test.c32 ebb_state.stats.spurious++; in ebb_callee()
36 ebb_state.stats.ebb_count++; in ebb_callee()
37 trace_log_counter(ebb_state.trace, ebb_state.stats.ebb_count); in ebb_callee()
79 while ((ebb_state.stats.ebb_count < 20 && !fc_cleared) || in cycles_with_freeze()
80 ebb_state.stats.ebb_count < 1) in cycles_with_freeze()
110 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_freeze()
Dpmc56_overflow_test.c25 ebb_state.stats.spurious++; in ebb_callee()
29 ebb_state.stats.ebb_count++; in ebb_callee()
73 while (ebb_state.stats.ebb_count < 10) in pmc56_overflow()
87 FAIL_IF(ebb_state.stats.ebb_count == 0 || pmc56_overflowed != 0); in pmc56_overflow()
Dpmae_handling_test.c37 ebb_state.stats.spurious++; in syscall_ebb_callee()
41 ebb_state.stats.ebb_count++; in syscall_ebb_callee()
79 while (ebb_state.stats.ebb_count < 20 && !mmcr0_mismatch) in test_body()
94 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body()
Dcycles_with_mmcr2_test.c55 while ((ebb_state.stats.ebb_count < 20 && !bad_mmcr2) || in cycles_with_mmcr2()
56 ebb_state.stats.ebb_count < 1) in cycles_with_mmcr2()
80 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_mmcr2()
Dclose_clears_pmcc_test.c37 while (ebb_state.stats.ebb_count < 1) in close_clears_pmcc()
43 FAIL_IF(ebb_state.stats.ebb_count == 0); in close_clears_pmcc()
Dinstruction_count_test.c45 event->result.value = ebb_state.stats.pmc_count[4-1]; in do_count_loop()
55 printf("Took %d EBBs\n", ebb_state.stats.ebb_count); in do_count_loop()
96 ebb_state.stats.spurious++; in pmc4_ebb_callee()
100 ebb_state.stats.ebb_count++; in pmc4_ebb_callee()
Dcycles_test.c37 while (ebb_state.stats.ebb_count < 10) { in cycles()
51 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles()
Dlost_exception_test.c53 while (ebb_state.stats.ebb_count < 1000000) { in test_body()
86 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body()
Debb_on_willing_child_test.c34 while (ebb_state.stats.ebb_count < 20) { in victim_child()
45 FAIL_IF(ebb_state.stats.ebb_count == 0); in victim_child()
Dmulti_counter_test.c65 while (ebb_state.stats.ebb_count < 50) { in multi_counter()
85 FAIL_IF(ebb_state.stats.ebb_count == 0); in multi_counter()
Debb.h26 } stats; member
Dmulti_ebb_procs_test.c70 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_child()
/tools/kvm/kvm_stat/
Dkvm_stat794 def __init__(self, stats): argument
795 self.stats = stats
829 if not self.stats.fields_filter:
830 self.stats.fields_filter = r'^[^\(]*$'
832 elif self.stats.fields_filter == r'^[^\(]*$':
833 self.stats.fields_filter = None
837 self.stats.pid_filter = pid
842 if self.stats.pid_filter > 0:
844 .format(self.stats.pid_filter),
854 stats = self.stats.get()
[all …]
/tools/power/cpupower/utils/
Dcpufreq-info.c412 struct cpufreq_stats *stats = cpufreq_get_stats(cpu, &total_time); in get_freq_stats() local
413 while (stats) { in get_freq_stats()
415 print_speed(stats->frequency); in get_freq_stats()
417 (100.0 * stats->time_in_state) / total_time); in get_freq_stats()
420 stats->frequency, stats->time_in_state); in get_freq_stats()
421 stats = stats->next; in get_freq_stats()
422 if (stats) in get_freq_stats()
425 cpufreq_put_stats(stats); in get_freq_stats()
/tools/perf/
Dbuiltin-trace.c88 } stats; member
986 ++trace->stats.proc_getname; in thread__fd_path()
1444 struct stats *stats; in thread__update_stats() local
1451 stats = inode->priv; in thread__update_stats()
1452 if (stats == NULL) { in thread__update_stats()
1453 stats = malloc(sizeof(struct stats)); in thread__update_stats()
1454 if (stats == NULL) in thread__update_stats()
1456 init_stats(stats); in thread__update_stats()
1457 inode->priv = stats; in thread__update_stats()
1463 update_stats(stats, duration); in thread__update_stats()
[all …]
Dbuiltin-report.c308 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
309 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events()
316 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
317 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
330 nr_samples += pos_hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
331 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
333 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
334 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events()
367 fprintf(stdout, "#\n# Total Lost Samples: %" PRIu64 "\n#\n", evlist->stats.total_lost_samples); in perf_evlist__tty_browse_hists()

12