diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-07-31 01:47:37 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-12 11:03:05 -0400 |
commit | e0d66c74b09f5103eef441a98b68056c4dae4cac (patch) | |
tree | a4836c6858102a1cf4e42efb1df2b922f56403da /tools/perf/util/hist.h | |
parent | d675107ce6fa988102851e0b0ef06e46c8aa7ac6 (diff) |
perf tools: Save column length in perf_hpp_fmt
Save column length in the hpp format and pass it to print functions.
This is a preparation for users to control column width in the output.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1406785662-5534-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 13d074db9ef1..a7ae890f4c71 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -207,6 +207,7 @@ struct perf_hpp_fmt { | |||
207 | struct list_head list; | 207 | struct list_head list; |
208 | struct list_head sort_list; | 208 | struct list_head sort_list; |
209 | bool elide; | 209 | bool elide; |
210 | int len; | ||
210 | }; | 211 | }; |
211 | 212 | ||
212 | extern struct list_head perf_hpp__list; | 213 | extern struct list_head perf_hpp__list; |
@@ -261,6 +262,7 @@ static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format) | |||
261 | } | 262 | } |
262 | 263 | ||
263 | void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists); | 264 | void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists); |
265 | void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists); | ||
264 | 266 | ||
265 | typedef u64 (*hpp_field_fn)(struct hist_entry *he); | 267 | typedef u64 (*hpp_field_fn)(struct hist_entry *he); |
266 | typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front); | 268 | typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front); |