@@ -595,8 +595,8 @@ tot_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused,
595
595
{
596
596
struct c2c_hist_entry * c2c_left ;
597
597
struct c2c_hist_entry * c2c_right ;
598
- unsigned int tot_hitm_left ;
599
- unsigned int tot_hitm_right ;
598
+ uint64_t tot_hitm_left ;
599
+ uint64_t tot_hitm_right ;
600
600
601
601
c2c_left = container_of (left , struct c2c_hist_entry , he );
602
602
c2c_right = container_of (right , struct c2c_hist_entry , he );
@@ -629,7 +629,8 @@ __f ## _cmp(struct perf_hpp_fmt *fmt __maybe_unused, \
629
629
\
630
630
c2c_left = container_of(left, struct c2c_hist_entry, he); \
631
631
c2c_right = container_of(right, struct c2c_hist_entry, he); \
632
- return c2c_left->stats.__f - c2c_right->stats.__f; \
632
+ return (uint64_t) c2c_left->stats.__f - \
633
+ (uint64_t) c2c_right->stats.__f; \
633
634
}
634
635
635
636
#define STAT_FN (__f ) \
@@ -682,7 +683,8 @@ ld_llcmiss_cmp(struct perf_hpp_fmt *fmt __maybe_unused,
682
683
c2c_left = container_of (left , struct c2c_hist_entry , he );
683
684
c2c_right = container_of (right , struct c2c_hist_entry , he );
684
685
685
- return llc_miss (& c2c_left -> stats ) - llc_miss (& c2c_right -> stats );
686
+ return (uint64_t ) llc_miss (& c2c_left -> stats ) -
687
+ (uint64_t ) llc_miss (& c2c_right -> stats );
686
688
}
687
689
688
690
static uint64_t total_records (struct c2c_stats * stats )
0 commit comments