perf tools: Support data block and addr block
[linux-2.6-microblaze.git] / tools / perf / util / hist.c
index a08fb9e..4038b08 100644 (file)
@@ -208,10 +208,12 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h)
        hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3);
        hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12);
        hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12);
+       hists__new_col_len(hists, HISTC_MEM_BLOCKED, 10);
        if (symbol_conf.nanosecs)
                hists__new_col_len(hists, HISTC_TIME, 16);
        else
                hists__new_col_len(hists, HISTC_TIME, 12);
+       hists__new_col_len(hists, HISTC_CODE_PAGE_SIZE, 6);
 
        if (h->srcline) {
                len = MAX(strlen(h->srcline), strlen(sort_srcline.se_header));
@@ -718,6 +720,7 @@ __hists__add_entry(struct hists *hists,
                .cpumode = al->cpumode,
                .ip      = al->addr,
                .level   = al->level,
+               .code_page_size = sample->code_page_size,
                .stat = {
                        .nr_events = 1,
                        .period = sample->period,