summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-08-07 17:28:26 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-08-23 15:37:33 -0300
commitf8e6710de859e1ac3a5df294bddeca19f60cec9a (patch)
treefe328a7beb138b17ce1e42e9a1e5ca97e058b8b2 /tools/perf/util/hist.h
parentb9c4b0f40d22d4b1d29540f5faf6ca4269f25848 (diff)
downloadlinux-f8e6710de859e1ac3a5df294bddeca19f60cec9a.tar.bz2
perf hists: Introduce nr_header_lines into struct perf_hpp_list
Currently we support just single line headers, this is first step to allow more. Store the number of header lines in perf_hpp_list, which encompasses all the display/sort entries and is thus suitable to hold this value. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1470583710-1649-2-git-send-email-jolsa@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 0a1edf1ab450..8cc5d33d2405 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -259,6 +259,7 @@ struct perf_hpp_list {
struct list_head fields;
struct list_head sorts;
+ int nr_header_lines;
int need_collapse;
int parent;
int sym;