diff options
Diffstat (limited to 'tools/perf/util/sort.c')
-rw-r--r-- | tools/perf/util/sort.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 0fe7cbe47ea3..9bee7288465f 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -1089,6 +1089,18 @@ bool perf_hpp__same_sort_entry(struct perf_hpp_fmt *a, struct perf_hpp_fmt *b) | |||
1089 | return hse_a->se == hse_b->se; | 1089 | return hse_a->se == hse_b->se; |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists) | ||
1093 | { | ||
1094 | struct hpp_sort_entry *hse; | ||
1095 | |||
1096 | if (!perf_hpp__is_sort_entry(fmt)) | ||
1097 | return; | ||
1098 | |||
1099 | hse = container_of(fmt, struct hpp_sort_entry, hpp); | ||
1100 | hists__new_col_len(hists, hse->se->se_width_idx, | ||
1101 | strlen(hse->se->se_header)); | ||
1102 | } | ||
1103 | |||
1092 | static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | 1104 | static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, |
1093 | struct perf_evsel *evsel) | 1105 | struct perf_evsel *evsel) |
1094 | { | 1106 | { |