Lines Matching refs:stats

52 	struct c2c_stats	stats;  member
56 struct stats lcl_hitm;
57 struct stats rmt_hitm;
58 struct stats lcl_peer;
59 struct stats rmt_peer;
60 struct stats load;
65 struct c2c_stats stats; member
261 struct c2c_stats *stats, in compute_stats() argument
266 if (stats->rmt_hitm) in compute_stats()
268 else if (stats->lcl_hitm) in compute_stats()
270 else if (stats->rmt_peer) in compute_stats()
272 else if (stats->lcl_peer) in compute_stats()
274 else if (stats->load) in compute_stats()
286 struct c2c_stats stats = { .nr_entries = 0, }; in process_sample_event() local
323 c2c_decode_stats(&stats, mi); in process_sample_event()
332 c2c_add_stats(&c2c_he->stats, &stats); in process_sample_event()
333 c2c_add_stats(&c2c_hists->stats, &stats); in process_sample_event()
366 c2c_add_stats(&c2c_he->stats, &stats); in process_sample_event()
367 c2c_add_stats(&c2c_hists->stats, &stats); in process_sample_event()
368 c2c_add_stats(&c2c_he->node_stats[node], &stats); in process_sample_event()
370 compute_stats(c2c_he, &stats, sample->weight); in process_sample_event()
605 tot_hitm = c2c_he->stats.lcl_hitm + c2c_he->stats.rmt_hitm; in tot_hitm_entry()
622 tot_hitm_left = c2c_left->stats.lcl_hitm + c2c_left->stats.rmt_hitm; in tot_hitm_cmp()
623 tot_hitm_right = c2c_right->stats.lcl_hitm + c2c_right->stats.rmt_hitm; in tot_hitm_cmp()
638 c2c_he->stats.__f); \
650 return (uint64_t) c2c_left->stats.__f - \
651 (uint64_t) c2c_right->stats.__f; \
673 static uint64_t get_load_llc_misses(struct c2c_stats *stats) in STAT_FN()
675 return stats->lcl_dram + in STAT_FN()
676 stats->rmt_dram + in STAT_FN()
677 stats->rmt_hitm + in STAT_FN()
678 stats->rmt_hit; in STAT_FN()
681 static uint64_t get_load_cache_hits(struct c2c_stats *stats) in get_load_cache_hits() argument
683 return stats->ld_fbhit + in get_load_cache_hits()
684 stats->ld_l1hit + in get_load_cache_hits()
685 stats->ld_l2hit + in get_load_cache_hits()
686 stats->ld_llchit + in get_load_cache_hits()
687 stats->lcl_hitm; in get_load_cache_hits()
690 static uint64_t get_stores(struct c2c_stats *stats) in get_stores() argument
692 return stats->st_l1hit + in get_stores()
693 stats->st_l1miss + in get_stores()
694 stats->st_na; in get_stores()
697 static uint64_t total_records(struct c2c_stats *stats) in total_records() argument
699 return get_load_llc_misses(stats) + in total_records()
700 get_load_cache_hits(stats) + in total_records()
701 get_stores(stats); in total_records()
713 tot_recs = total_records(&c2c_he->stats); in tot_recs_entry()
730 tot_recs_left = total_records(&c2c_left->stats); in tot_recs_cmp()
731 tot_recs_right = total_records(&c2c_right->stats); in tot_recs_cmp()
736 static uint64_t total_loads(struct c2c_stats *stats) in total_loads() argument
738 return get_load_llc_misses(stats) + in total_loads()
739 get_load_cache_hits(stats); in total_loads()
751 tot_recs = total_loads(&c2c_he->stats); in tot_loads_entry()
768 tot_recs_left = total_loads(&c2c_left->stats); in tot_loads_cmp()
769 tot_recs_right = total_loads(&c2c_right->stats); in tot_loads_cmp()
797 struct c2c_stats *stats; in percent_costly_snoop() local
803 stats = &c2c_he->stats; in percent_costly_snoop()
804 total = &hists->stats; in percent_costly_snoop()
808 st = stats->rmt_hitm; in percent_costly_snoop()
812 st = stats->lcl_hitm; in percent_costly_snoop()
816 st = stats->tot_hitm; in percent_costly_snoop()
820 st = stats->tot_peer; in percent_costly_snoop()
882 return &c2c_he->stats; in he_stats()
890 return &hists->stats; in total_stats()
906 return percent(c2c_he->stats.__f, hists->stats.__f); \
1212 struct c2c_stats *stats = &c2c_he->node_stats[node]; in node_entry() local
1219 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1220 c2c_he->stats.rmt_hitm); in node_entry()
1223 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1224 c2c_he->stats.lcl_hitm); in node_entry()
1227 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1228 c2c_he->stats.tot_hitm); in node_entry()
1231 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1232 c2c_he->stats.tot_peer); in node_entry()
1240 if (c2c_he->stats.store > 0) { in node_entry()
1242 percent(stats->store, c2c_he->stats.store)); in node_entry()
2096 static bool he__display(struct hist_entry *he, struct c2c_stats *stats) in he__display() argument
2107 he->filtered = filter_display(c2c_he->stats.lcl_hitm, in he__display()
2108 stats->lcl_hitm); in he__display()
2111 he->filtered = filter_display(c2c_he->stats.rmt_hitm, in he__display()
2112 stats->rmt_hitm); in he__display()
2115 he->filtered = filter_display(c2c_he->stats.tot_hitm, in he__display()
2116 stats->tot_hitm); in he__display()
2119 he->filtered = filter_display(c2c_he->stats.tot_peer, in he__display()
2120 stats->tot_peer); in he__display()
2137 if (c2c_he->stats.store) in is_valid_hist_entry()
2142 has_record = !!c2c_he->stats.lcl_hitm; in is_valid_hist_entry()
2145 has_record = !!c2c_he->stats.rmt_hitm; in is_valid_hist_entry()
2148 has_record = !!c2c_he->stats.tot_hitm; in is_valid_hist_entry()
2151 has_record = !!c2c_he->stats.tot_peer; in is_valid_hist_entry()
2328 #define HAS_HITMS(__h) ((__h)->stats.lcl_hitm || (__h)->stats.rmt_hitm)
2329 #define HAS_PEER(__h) ((__h)->stats.lcl_peer || (__h)->stats.rmt_peer)
2338 c2c_add_stats(&c2c.shared_clines_stats, &c2c_he->stats); in resort_shared_cl_cb()
2365 struct c2c_stats *stats = &c2c.hists.stats; in print_c2c__display_stats() local
2367 llc_misses = get_load_llc_misses(stats); in print_c2c__display_stats()
2372 fprintf(out, " Total records : %10d\n", stats->nr_entries); in print_c2c__display_stats()
2373 fprintf(out, " Locked Load/Store Operations : %10d\n", stats->locks); in print_c2c__display_stats()
2374 fprintf(out, " Load Operations : %10d\n", stats->load); in print_c2c__display_stats()
2375 fprintf(out, " Loads - uncacheable : %10d\n", stats->ld_uncache); in print_c2c__display_stats()
2376 fprintf(out, " Loads - IO : %10d\n", stats->ld_io); in print_c2c__display_stats()
2377 fprintf(out, " Loads - Miss : %10d\n", stats->ld_miss); in print_c2c__display_stats()
2378 fprintf(out, " Loads - no mapping : %10d\n", stats->ld_noadrs); in print_c2c__display_stats()
2379 fprintf(out, " Load Fill Buffer Hit : %10d\n", stats->ld_fbhit); in print_c2c__display_stats()
2380 fprintf(out, " Load L1D hit : %10d\n", stats->ld_l1hit); in print_c2c__display_stats()
2381 fprintf(out, " Load L2D hit : %10d\n", stats->ld_l2hit); in print_c2c__display_stats()
2382 fprintf(out, " Load LLC hit : %10d\n", stats->ld_llchit + stats->lcl_hitm); in print_c2c__display_stats()
2383 fprintf(out, " Load Local HITM : %10d\n", stats->lcl_hitm); in print_c2c__display_stats()
2384 fprintf(out, " Load Remote HITM : %10d\n", stats->rmt_hitm); in print_c2c__display_stats()
2385 fprintf(out, " Load Remote HIT : %10d\n", stats->rmt_hit); in print_c2c__display_stats()
2386 fprintf(out, " Load Local DRAM : %10d\n", stats->lcl_dram); in print_c2c__display_stats()
2387 fprintf(out, " Load Remote DRAM : %10d\n", stats->rmt_dram); in print_c2c__display_stats()
2388 fprintf(out, " Load MESI State Exclusive : %10d\n", stats->ld_excl); in print_c2c__display_stats()
2389 fprintf(out, " Load MESI State Shared : %10d\n", stats->ld_shared); in print_c2c__display_stats()
2391 fprintf(out, " Load access blocked by data : %10d\n", stats->blk_data); in print_c2c__display_stats()
2392 fprintf(out, " Load access blocked by address : %10d\n", stats->blk_addr); in print_c2c__display_stats()
2393 fprintf(out, " Load HIT Local Peer : %10d\n", stats->lcl_peer); in print_c2c__display_stats()
2394 fprintf(out, " Load HIT Remote Peer : %10d\n", stats->rmt_peer); in print_c2c__display_stats()
2395 …fprintf(out, " LLC Misses to Local DRAM : %10.1f%%\n", ((double)stats->lcl_dram/(double)… in print_c2c__display_stats()
2396 …fprintf(out, " LLC Misses to Remote DRAM : %10.1f%%\n", ((double)stats->rmt_dram/(double)… in print_c2c__display_stats()
2397 …fprintf(out, " LLC Misses to Remote cache (HIT) : %10.1f%%\n", ((double)stats->rmt_hit /(double)… in print_c2c__display_stats()
2398 …fprintf(out, " LLC Misses to Remote cache (HITM) : %10.1f%%\n", ((double)stats->rmt_hitm/(double)… in print_c2c__display_stats()
2399 fprintf(out, " Store Operations : %10d\n", stats->store); in print_c2c__display_stats()
2400 fprintf(out, " Store - uncacheable : %10d\n", stats->st_uncache); in print_c2c__display_stats()
2401 fprintf(out, " Store - no mapping : %10d\n", stats->st_noadrs); in print_c2c__display_stats()
2402 fprintf(out, " Store L1D Hit : %10d\n", stats->st_l1hit); in print_c2c__display_stats()
2403 fprintf(out, " Store L1D Miss : %10d\n", stats->st_l1miss); in print_c2c__display_stats()
2404 fprintf(out, " Store No available memory level : %10d\n", stats->st_na); in print_c2c__display_stats()
2405 fprintf(out, " No Page Map Rejects : %10d\n", stats->nomap); in print_c2c__display_stats()
2406 fprintf(out, " Unable to parse data source : %10d\n", stats->noparse); in print_c2c__display_stats()
2411 struct c2c_stats *stats = &c2c.shared_clines_stats; in print_shared_cacheline_info() local
2412 int hitm_cnt = stats->lcl_hitm + stats->rmt_hitm; in print_shared_cacheline_info()
2418 fprintf(out, " Load HITs on shared lines : %10d\n", stats->load); in print_shared_cacheline_info()
2419 fprintf(out, " Fill Buffer Hits on shared lines : %10d\n", stats->ld_fbhit); in print_shared_cacheline_info()
2420 fprintf(out, " L1D hits on shared lines : %10d\n", stats->ld_l1hit); in print_shared_cacheline_info()
2421 fprintf(out, " L2D hits on shared lines : %10d\n", stats->ld_l2hit); in print_shared_cacheline_info()
2422 fprintf(out, " LLC hits on shared lines : %10d\n", stats->ld_llchit + stats->lcl_hitm); in print_shared_cacheline_info()
2423 fprintf(out, " Load hits on peer cache or nodes : %10d\n", stats->lcl_peer + stats->rmt_peer); in print_shared_cacheline_info()
2424 fprintf(out, " Locked Access on shared lines : %10d\n", stats->locks); in print_shared_cacheline_info()
2425 fprintf(out, " Blocked Access on shared lines : %10d\n", stats->blk_data + stats->blk_addr); in print_shared_cacheline_info()
2426 fprintf(out, " Store HITs on shared lines : %10d\n", stats->store); in print_shared_cacheline_info()
2427 fprintf(out, " Store L1D hits on shared lines : %10d\n", stats->st_l1hit); in print_shared_cacheline_info()
2428 fprintf(out, " Store No available memory level : %10d\n", stats->st_na); in print_shared_cacheline_info()
2429 fprintf(out, " Total Merged records : %10d\n", hitm_cnt + stats->store); in print_shared_cacheline_info()