perf hist: Calculate max_sym name len and nr_entries
[deliverable/linux.git] / tools / perf / util / hist.h
index bdde81eca69ffa599d235b824eec8f3467b29db7..1b18d04195dcab69a441b66f9a9ba30e2b7ce287 100644 (file)
@@ -19,10 +19,12 @@ struct events_stats {
 struct hists {
        struct rb_node          rb_node;
        struct rb_root          entries;
+       u64                     nr_entries;
        struct events_stats     stats;
        u64                     config;
        u64                     event_stream;
        u32                     type;
+       u32                     max_sym_namelen;
 };
 
 struct hist_entry *__hists__add_entry(struct hists *self,
@@ -38,7 +40,7 @@ int hist_entry__snprintf(struct hist_entry *self, char *bf, size_t size,
                         long displacement, bool color, u64 total);
 void hist_entry__free(struct hist_entry *);
 
-u64 hists__output_resort(struct hists *self);
+void hists__output_resort(struct hists *self);
 void hists__collapse_resort(struct hists *self);
 size_t hists__fprintf(struct hists *self, struct hists *pair,
                      bool show_displacement, FILE *fp);
This page took 0.038427 seconds and 5 git commands to generate.