History

perf c2c: Fix sorting in percent_rmt_hitm_cmp()

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.

Leo Yan committed 4 years ago

Commit b24192a1 parent 62e6eb81 file · +2 −2Browse files

Unified · Split

tools/perf/builtin-c2c.c+2−2
@@ -928,8 +928,8 @@ percent_rmt_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, · 927 unmodified lines
928928 double per_left;
929929 double per_right;
930930
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);
933933
934934 return per_left - per_right;
935935 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t