diff options
author | 2016-08-07 17:28:30 +0200 | |
---|---|---|
committer | 2016-08-23 15:37:33 -0300 | |
commit | 29659ab4e7d02c08d8f2d08db0b0f708bd8b6771 (patch) | |
tree | 797ba34474ca75fdbc80c7512f94b54411469f0f /tools/perf/util/hist.h | |
parent | perf tools stdio: Display multiple header lines (diff) | |
download | linux-29659ab4e7d02c08d8f2d08db0b0f708bd8b6771.tar.gz linux-29659ab4e7d02c08d8f2d08db0b0f708bd8b6771.tar.bz2 linux-29659ab4e7d02c08d8f2d08db0b0f708bd8b6771.zip |
perf hists: Add support for header span
Add span argument for header callback function.
The handling of this argument is completely in the hands of the
callback. The only thing the caller ensures is it's zeroed on the
beginning.
Omitting span skipping in hierarchy headers and gtk code.
The c2c code use this to span header lines based on the entries span
configuration.
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-6-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 71a44c1c44de..a002c93fe422 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -230,7 +230,7 @@ struct perf_hpp { struct perf_hpp_fmt { const char *name; int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, - struct hists *hists, int line); + struct hists *hists, int line, int *span); int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hists *hists); int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, |