diff options
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 2d3790fd99bb..1329b6b6ffe6 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -141,10 +141,12 @@ struct perf_hpp { | |||
141 | }; | 141 | }; |
142 | 142 | ||
143 | struct perf_hpp_fmt { | 143 | struct perf_hpp_fmt { |
144 | int (*header)(struct perf_hpp *hpp); | 144 | int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp); |
145 | int (*width)(struct perf_hpp *hpp); | 145 | int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp); |
146 | int (*color)(struct perf_hpp *hpp, struct hist_entry *he); | 146 | int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, |
147 | int (*entry)(struct perf_hpp *hpp, struct hist_entry *he); | 147 | struct hist_entry *he); |
148 | int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | ||
149 | struct hist_entry *he); | ||
148 | 150 | ||
149 | struct list_head list; | 151 | struct list_head list; |
150 | }; | 152 | }; |
@@ -157,7 +159,7 @@ extern struct list_head perf_hpp__list; | |||
157 | extern struct perf_hpp_fmt perf_hpp__format[]; | 159 | extern struct perf_hpp_fmt perf_hpp__format[]; |
158 | 160 | ||
159 | enum { | 161 | enum { |
160 | PERF_HPP__BASELINE, | 162 | /* Matches perf_hpp__format array. */ |
161 | PERF_HPP__OVERHEAD, | 163 | PERF_HPP__OVERHEAD, |
162 | PERF_HPP__OVERHEAD_SYS, | 164 | PERF_HPP__OVERHEAD_SYS, |
163 | PERF_HPP__OVERHEAD_US, | 165 | PERF_HPP__OVERHEAD_US, |
@@ -165,11 +167,6 @@ enum { | |||
165 | PERF_HPP__OVERHEAD_GUEST_US, | 167 | PERF_HPP__OVERHEAD_GUEST_US, |
166 | PERF_HPP__SAMPLES, | 168 | PERF_HPP__SAMPLES, |
167 | PERF_HPP__PERIOD, | 169 | PERF_HPP__PERIOD, |
168 | PERF_HPP__PERIOD_BASELINE, | ||
169 | PERF_HPP__DELTA, | ||
170 | PERF_HPP__RATIO, | ||
171 | PERF_HPP__WEIGHTED_DIFF, | ||
172 | PERF_HPP__FORMULA, | ||
173 | 170 | ||
174 | PERF_HPP__MAX_INDEX | 171 | PERF_HPP__MAX_INDEX |
175 | }; | 172 | }; |
@@ -177,8 +174,6 @@ enum { | |||
177 | void perf_hpp__init(void); | 174 | void perf_hpp__init(void); |
178 | void perf_hpp__column_register(struct perf_hpp_fmt *format); | 175 | void perf_hpp__column_register(struct perf_hpp_fmt *format); |
179 | void perf_hpp__column_enable(unsigned col); | 176 | void perf_hpp__column_enable(unsigned col); |
180 | int hist_entry__period_snprintf(struct perf_hpp *hpp, struct hist_entry *he, | ||
181 | bool color); | ||
182 | 177 | ||
183 | struct perf_evlist; | 178 | struct perf_evlist; |
184 | 179 | ||
@@ -245,11 +240,4 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist __maybe_unused, | |||
245 | #endif | 240 | #endif |
246 | 241 | ||
247 | unsigned int hists__sort_list_width(struct hists *self); | 242 | unsigned int hists__sort_list_width(struct hists *self); |
248 | |||
249 | double perf_diff__compute_delta(struct hist_entry *he, struct hist_entry *pair); | ||
250 | double perf_diff__compute_ratio(struct hist_entry *he, struct hist_entry *pair); | ||
251 | s64 perf_diff__compute_wdiff(struct hist_entry *he, struct hist_entry *pair); | ||
252 | int perf_diff__formula(struct hist_entry *he, struct hist_entry *pair, | ||
253 | char *buf, size_t size); | ||
254 | double perf_diff__period_percent(struct hist_entry *he, u64 period); | ||
255 | #endif /* __PERF_HIST_H */ | 243 | #endif /* __PERF_HIST_H */ |