diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-03-02 21:46:55 -0500 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-21 05:45:34 -0400 |
commit | 8b536999cd75e565125c74b2cf2a746d4f053a92 (patch) | |
tree | 46a4a0d3d64885c8503d0adb4896e85c7d86d014 /tools/perf/ui | |
parent | bc18b7f2e3ca09b360b26c25a7541ba6f170111b (diff) |
perf tools: Convert sort entries to hpp formats
This is a preparation of consolidating management of output field and
sort keys.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1400480762-22852-3-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r-- | tools/perf/ui/hist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index d4a4f2e7eb43..a6eea666b443 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -284,6 +284,7 @@ struct perf_hpp_fmt perf_hpp__format[] = { | |||
284 | }; | 284 | }; |
285 | 285 | ||
286 | LIST_HEAD(perf_hpp__list); | 286 | LIST_HEAD(perf_hpp__list); |
287 | LIST_HEAD(perf_hpp__sort_list); | ||
287 | 288 | ||
288 | 289 | ||
289 | #undef HPP__COLOR_PRINT_FNS | 290 | #undef HPP__COLOR_PRINT_FNS |
@@ -325,6 +326,11 @@ void perf_hpp__column_register(struct perf_hpp_fmt *format) | |||
325 | list_add_tail(&format->list, &perf_hpp__list); | 326 | list_add_tail(&format->list, &perf_hpp__list); |
326 | } | 327 | } |
327 | 328 | ||
329 | void perf_hpp__register_sort_field(struct perf_hpp_fmt *format) | ||
330 | { | ||
331 | list_add_tail(&format->sort_list, &perf_hpp__sort_list); | ||
332 | } | ||
333 | |||
328 | void perf_hpp__column_enable(unsigned col) | 334 | void perf_hpp__column_enable(unsigned col) |
329 | { | 335 | { |
330 | BUG_ON(col >= PERF_HPP__MAX_INDEX); | 336 | BUG_ON(col >= PERF_HPP__MAX_INDEX); |