/tools/perf/util/ |
D | mem-events.c | 312 int c2c_decode_stats(struct c2c_stats *stats, struct mem_info *mi) in c2c_decode_stats() argument 329 stats->__f++; \ in c2c_decode_stats() 330 stats->tot_hitm++; \ in c2c_decode_stats() 335 stats->nr_entries++; in c2c_decode_stats() 337 if (lock & P(LOCK, LOCKED)) stats->locks++; in c2c_decode_stats() 341 stats->load++; in c2c_decode_stats() 344 stats->ld_noadrs++; in c2c_decode_stats() 349 if (lvl & P(LVL, UNC)) stats->ld_uncache++; in c2c_decode_stats() 350 if (lvl & P(LVL, IO)) stats->ld_io++; in c2c_decode_stats() 351 if (lvl & P(LVL, LFB)) stats->ld_fbhit++; in c2c_decode_stats() [all …]
|
D | stat.h | 15 struct stats { struct 37 struct stats res_stats[3]; argument 119 struct runtime_stat *stats; member 122 struct stats *walltime_nsecs_stats; 131 void update_stats(struct stats *stats, u64 val); 132 double avg_stats(struct stats *stats); 133 double stddev_stats(struct stats *stats); 136 static inline void init_stats(struct stats *stats) in init_stats() argument 138 stats->n = 0.0; in init_stats() 139 stats->mean = 0.0; in init_stats() [all …]
|
D | stat.c | 18 void update_stats(struct stats *stats, u64 val) in update_stats() argument 22 stats->n++; in update_stats() 23 delta = val - stats->mean; in update_stats() 24 stats->mean += delta / stats->n; in update_stats() 25 stats->M2 += delta*(val - stats->mean); in update_stats() 27 if (val > stats->max) in update_stats() 28 stats->max = val; in update_stats() 30 if (val < stats->min) in update_stats() 31 stats->min = val; in update_stats() 34 double avg_stats(struct stats *stats) in avg_stats() argument [all …]
|
D | events_stats.h | 47 void events_stats__inc(struct events_stats *stats, u32 type); 49 size_t events_stats__fprintf(struct events_stats *stats, FILE *fp);
|
D | session.c | 1336 ++evlist->stats.nr_unknown_id; in deliver_sample_value() 1414 ++evlist->stats.nr_unknown_id; in machines__deliver_event() 1419 ++evlist->stats.nr_unprocessable_samples; in machines__deliver_event() 1427 ++evlist->stats.nr_proc_map_timeout; in machines__deliver_event() 1439 evlist->stats.total_lost += event->lost.lost; in machines__deliver_event() 1443 evlist->stats.total_lost_samples += event->lost_samples.lost; in machines__deliver_event() 1455 evlist->stats.total_aux_lost += 1; in machines__deliver_event() 1457 evlist->stats.total_aux_partial += 1; in machines__deliver_event() 1470 ++evlist->stats.nr_unknown_events; in machines__deliver_event() 1581 events_stats__inc(&evlist->stats, event->header.type); in perf_session__deliver_synth_event() [all …]
|
D | mem-events.h | 81 int c2c_decode_stats(struct c2c_stats *stats, struct mem_info *mi); 82 void c2c_add_stats(struct c2c_stats *stats, struct c2c_stats *add);
|
/tools/perf/tests/ |
D | hists_filter.c | 153 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 157 hists->stats.total_period == 1000); in test__hists_filter() 159 hists->stats.nr_events[PERF_RECORD_SAMPLE] == in test__hists_filter() 160 hists->stats.nr_non_filtered_samples); in test__hists_filter() 164 hists->stats.total_period == in test__hists_filter() 165 hists->stats.total_non_filtered_period); in test__hists_filter() 178 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 182 hists->stats.total_period == 1000); in test__hists_filter() 186 hists->stats.nr_non_filtered_samples == 4); in test__hists_filter() 190 hists->stats.total_non_filtered_period == 400); in test__hists_filter() [all …]
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 75 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 …]
|
D | back_to_back_ebbs_test.c | 33 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() 98 FAIL_IF(ebb_state.stats.ebb_count != NUMBER_OF_EBBS); in back_to_back_ebbs()
|
D | cycles_with_freeze_test.c | 32 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() 108 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_freeze()
|
D | pmae_handling_test.c | 37 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() 92 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body()
|
D | pmc56_overflow_test.c | 25 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() 85 FAIL_IF(ebb_state.stats.ebb_count == 0 || pmc56_overflowed != 0); in pmc56_overflow()
|
D | cycles_with_mmcr2_test.c | 55 while ((ebb_state.stats.ebb_count < 20 && !bad_mmcr2) || in cycles_with_mmcr2() 56 ebb_state.stats.ebb_count < 1) in cycles_with_mmcr2() 78 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles_with_mmcr2()
|
D | close_clears_pmcc_test.c | 37 while (ebb_state.stats.ebb_count < 1) in close_clears_pmcc() 43 FAIL_IF(ebb_state.stats.ebb_count == 0); in close_clears_pmcc()
|
D | instruction_count_test.c | 45 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()
|
D | cycles_test.c | 37 while (ebb_state.stats.ebb_count < 10) { in cycles() 49 FAIL_IF(ebb_state.stats.ebb_count == 0); in cycles()
|
D | lost_exception_test.c | 53 while (ebb_state.stats.ebb_count < 1000000) { in test_body() 85 FAIL_IF(ebb_state.stats.ebb_count == 0); in test_body()
|
D | ebb_on_willing_child_test.c | 34 while (ebb_state.stats.ebb_count < 20) { in victim_child() 43 FAIL_IF(ebb_state.stats.ebb_count == 0); in victim_child()
|
D | multi_counter_test.c | 65 while (ebb_state.stats.ebb_count < 50) { in multi_counter() 78 FAIL_IF(ebb_state.stats.ebb_count == 0); in multi_counter()
|
/tools/perf/ |
D | builtin-c2c.c | 49 struct c2c_stats stats; member 53 struct stats lcl_hitm; 54 struct stats rmt_hitm; 55 struct stats load; 60 struct c2c_stats stats; member 243 struct c2c_stats *stats, in compute_stats() argument 248 if (stats->rmt_hitm) in compute_stats() 250 else if (stats->lcl_hitm) in compute_stats() 252 else if (stats->load) in compute_stats() 264 struct c2c_stats stats = { .nr_entries = 0, }; in process_sample_event() local [all …]
|
/tools/kvm/kvm_stat/ |
D | kvm_stat | 981 def __init__(self, stats): argument 982 self.stats = stats 1109 self.stats.pid_filter = pid 1114 pid = self.stats.pid_filter 1127 if self.stats.fields_filter: 1128 regex = self.stats.fields_filter 1150 def get_sorted_events(self, stats): argument 1167 for key, values in sorted(stats.items(), key=sortkey, 1172 if not self.stats.child_events: 1177 if self.stats.child_events: [all …]
|
D | kvm_stat.txt | 37 :: *Note*: Child events pull in their parents, and parents' stats summarize 50 *r*:: reset stats 54 *x*:: toggle reporting of stats for child trace events 55 :: *Note*: The stats for the parents summarize the respective child trace
|
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_noinline.c | 17 } stats[nr_cpus]; in test_xdp_noinline() local 69 bpf_map_lookup_elem(map_fd, &stats_key, stats); in test_xdp_noinline() 71 bytes += stats[i].bytes; in test_xdp_noinline() 72 pkts += stats[i].pkts; in test_xdp_noinline()
|
D | l4lb_all.c | 16 } stats[nr_cpus]; in test_l4lb() local 68 bpf_map_lookup_elem(map_fd, &stats_key, stats); in test_l4lb() 70 bytes += stats[i].bytes; in test_l4lb() 71 pkts += stats[i].pkts; in test_l4lb()
|
/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 437 struct cpufreq_stats *stats = cpufreq_get_stats(cpu, &total_time); in get_freq_stats() local 438 while (stats) { in get_freq_stats() 440 print_speed(stats->frequency); in get_freq_stats() 442 (100.0 * stats->time_in_state) / total_time); in get_freq_stats() 445 stats->frequency, stats->time_in_state); in get_freq_stats() 446 stats = stats->next; in get_freq_stats() 447 if (stats) in get_freq_stats() 450 cpufreq_put_stats(stats); in get_freq_stats()
|