diff options
Diffstat (limited to 'tools/perf/util/sort.c')
-rw-r--r-- | tools/perf/util/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 289df9d1e65a..4906cd81cb56 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -1218,7 +1218,7 @@ static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | |||
1218 | hse = container_of(fmt, struct hpp_sort_entry, hpp); | 1218 | hse = container_of(fmt, struct hpp_sort_entry, hpp); |
1219 | 1219 | ||
1220 | if (!len) | 1220 | if (!len) |
1221 | len = hists__col_len(&evsel->hists, hse->se->se_width_idx); | 1221 | len = hists__col_len(evsel__hists(evsel), hse->se->se_width_idx); |
1222 | 1222 | ||
1223 | return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); | 1223 | return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); |
1224 | } | 1224 | } |
@@ -1233,7 +1233,7 @@ static int __sort__hpp_width(struct perf_hpp_fmt *fmt, | |||
1233 | hse = container_of(fmt, struct hpp_sort_entry, hpp); | 1233 | hse = container_of(fmt, struct hpp_sort_entry, hpp); |
1234 | 1234 | ||
1235 | if (!len) | 1235 | if (!len) |
1236 | len = hists__col_len(&evsel->hists, hse->se->se_width_idx); | 1236 | len = hists__col_len(evsel__hists(evsel), hse->se->se_width_idx); |
1237 | 1237 | ||
1238 | return len; | 1238 | return len; |
1239 | } | 1239 | } |