perf tools: Add mem access sampling core support
[linux-3.10.git] / tools / perf / util / hist.h
index 121cc14..fd63134 100644 (file)
@@ -51,6 +51,12 @@ enum hist_column {
        HISTC_SRCLINE,
        HISTC_LOCAL_WEIGHT,
        HISTC_GLOBAL_WEIGHT,
+       HISTC_MEM_DADDR_SYMBOL,
+       HISTC_MEM_DADDR_DSO,
+       HISTC_MEM_LOCKED,
+       HISTC_MEM_TLB,
+       HISTC_MEM_LVL,
+       HISTC_MEM_SNOOP,
        HISTC_NR_COLS, /* Last entry */
 };
 
@@ -90,6 +96,13 @@ struct hist_entry *__hists__add_branch_entry(struct hists *self,
                                             u64 period,
                                             u64 weight);
 
+struct hist_entry *__hists__add_mem_entry(struct hists *self,
+                                         struct addr_location *al,
+                                         struct symbol *sym_parent,
+                                         struct mem_info *mi,
+                                         u64 period,
+                                         u64 weight);
+
 void hists__output_resort(struct hists *self);
 void hists__output_resort_threaded(struct hists *hists);
 void hists__collapse_resort(struct hists *self);