diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-09-26 11:46:11 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-07 11:11:49 -0400 |
commit | ef9dfe6ec3e409b68e35c05b882d636140bb3fa7 (patch) | |
tree | c7bdca5ac0fde2bc08c3f4f52ce19ccf0c3c86ca /tools/perf/util/hist.h | |
parent | 42b28ac071a1a239d2a48965e9d6be0e061dd103 (diff) |
perf hists: Allow limiting the number of rows and columns in fprintf
So that we can reuse hists__fprintf for in the new perf top tool.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-huazw48x05h8r9niz5cf63za@git.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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 3beb97c4d82..861ffc31db9 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -57,9 +57,9 @@ struct hist_entry *__hists__add_entry(struct hists *self, | |||
57 | struct symbol *parent, u64 period); | 57 | struct symbol *parent, u64 period); |
58 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); | 58 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); |
59 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); | 59 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); |
60 | int hist_entry__fprintf(struct hist_entry *self, struct hists *hists, | 60 | int hist_entry__fprintf(struct hist_entry *he, size_t size, struct hists *hists, |
61 | struct hists *pair_hists, bool show_displacement, | 61 | struct hists *pair_hists, bool show_displacement, |
62 | long displacement, FILE *fp, u64 total); | 62 | long displacement, FILE *fp, u64 session_total); |
63 | int hist_entry__snprintf(struct hist_entry *self, char *bf, size_t size, | 63 | int hist_entry__snprintf(struct hist_entry *self, char *bf, size_t size, |
64 | struct hists *hists, struct hists *pair_hists, | 64 | struct hists *hists, struct hists *pair_hists, |
65 | bool show_displacement, long displacement, | 65 | bool show_displacement, long displacement, |
@@ -73,7 +73,8 @@ void hists__inc_nr_events(struct hists *self, u32 type); | |||
73 | size_t hists__fprintf_nr_events(struct hists *self, FILE *fp); | 73 | size_t hists__fprintf_nr_events(struct hists *self, FILE *fp); |
74 | 74 | ||
75 | size_t hists__fprintf(struct hists *self, struct hists *pair, | 75 | size_t hists__fprintf(struct hists *self, struct hists *pair, |
76 | bool show_displacement, FILE *fp); | 76 | bool show_displacement, bool show_header, |
77 | int max_rows, int max_cols, FILE *fp); | ||
77 | 78 | ||
78 | int hist_entry__inc_addr_samples(struct hist_entry *self, int evidx, u64 addr); | 79 | int hist_entry__inc_addr_samples(struct hist_entry *self, int evidx, u64 addr); |
79 | int hist_entry__annotate(struct hist_entry *self, size_t privsize); | 80 | int hist_entry__annotate(struct hist_entry *self, size_t privsize); |