The function percent_rmt_hitm_cmp() wrongly uses local HITMs for sorting remote HITMs. Since this function is to sort cache lines for remote HITMs, this patch changes to use 'rmt_hitm' field for correct sorting.
Unified · Split
| @@ -928,8 +928,8 @@ percent_rmt_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, · 927 unmodified lines | ||
| 928 | 928 | double per_left; |
| 929 | 929 | double per_right; |
| 930 | 930 | |
| 931 | − per_left = PERCENT(left, lcl_hitm); | |
| 932 | − per_right = PERCENT(right, lcl_hitm); | |
| 931 | + per_left = PERCENT(left, rmt_hitm); | |
| 932 | + per_right = PERCENT(right, rmt_hitm); | |
| 933 | 933 | |
| 934 | 934 | return per_left - per_right; |
| 935 | 935 | } |