perf hists: Remove needless global col lenght calcs
[deliverable/linux.git] / tools / perf / util / hist.c
index da2899e8c6f8930e176f0cd9e312932ce96642c0..f7ad6bdbc667edba7f5fd98474ea8a2bb3664eb2 100644 (file)
@@ -50,6 +50,15 @@ static void hists__calc_col_len(struct hists *self, struct hist_entry *h)
 
        if (h->ms.sym)
                hists__new_col_len(self, HISTC_SYMBOL, h->ms.sym->namelen);
+       else {
+               const unsigned int unresolved_col_width = BITS_PER_LONG / 4;
+
+               if (hists__col_len(self, HISTC_DSO) < unresolved_col_width &&
+                   !symbol_conf.col_width_list_str && !symbol_conf.field_sep &&
+                   !symbol_conf.dso_list)
+                       hists__set_col_len(self, HISTC_DSO,
+                                          unresolved_col_width);
+       }
 
        len = thread__comm_len(h->thread);
        if (hists__new_col_len(self, HISTC_COMM, len))
This page took 0.027235 seconds and 5 git commands to generate.