perf ui/gtk: Reuse generic __hpp__fmt() code
[deliverable/linux.git] / tools / perf / util / hist.h
index a59743fa3ef73d3aeb8c5c832a32aa2e04773a4c..97f924ec6af98ac1d9eea74ac3202e6179264e8e 100644 (file)
@@ -166,6 +166,12 @@ void perf_hpp__init(void);
 void perf_hpp__column_register(struct perf_hpp_fmt *format);
 void perf_hpp__column_enable(unsigned col);
 
+typedef int (*hpp_snprint_fn)(char *buf, size_t size, const char *fmt, ...);
+
+int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he,
+              u64 (*get_field)(struct hist_entry *),
+              const char *fmt, hpp_snprint_fn print_fn, bool fmt_percent);
+
 static inline size_t perf_hpp__use_color(void)
 {
        return !symbol_conf.field_sep;
This page took 0.033904 seconds and 5 git commands to generate.