diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-03-02 20:14:04 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-03-14 17:08:38 -0400 |
commit | a0088adcd651b8eb1a9ca9c7e6ebe1c2c5fb6273 (patch) | |
tree | c28143096e14256cbdc34c19f97713fb57685091 /tools/perf/ui/stdio/hist.c | |
parent | 4a62109fe94f68a57b239c1516f97497a4d15c14 (diff) |
perf ui/hists: Pass struct hpp to print functions
Instead of the pointer to buffer and its size so that it can also get
private argument passed along with hpp.
This is a preparation of further change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
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/1393809254-4480-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/stdio/hist.c')
-rw-r--r-- | tools/perf/ui/stdio/hist.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 831fbb77d1ff..9bad89228472 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c | |||
@@ -306,12 +306,6 @@ static size_t hist_entry__callchain_fprintf(struct hist_entry *he, | |||
306 | return hist_entry_callchain__fprintf(he, total_period, left_margin, fp); | 306 | return hist_entry_callchain__fprintf(he, total_period, left_margin, fp); |
307 | } | 307 | } |
308 | 308 | ||
309 | static inline void advance_hpp(struct perf_hpp *hpp, int inc) | ||
310 | { | ||
311 | hpp->buf += inc; | ||
312 | hpp->size -= inc; | ||
313 | } | ||
314 | |||
315 | static int hist_entry__period_snprintf(struct perf_hpp *hpp, | 309 | static int hist_entry__period_snprintf(struct perf_hpp *hpp, |
316 | struct hist_entry *he) | 310 | struct hist_entry *he) |
317 | { | 311 | { |