1 #ifndef _PERF_UI_PROGRESS_H_ 2 #define _PERF_UI_PROGRESS_H_ 1 3 4 #include <linux/types.h> 5 6 void ui_progress__finish(void); 7 8 struct ui_progress { 9 const char *title; 10 u64 curr, next, step, total; 11 }; 12 13 void ui_progress__init(struct ui_progress *p, u64 total, const char *title); 14 void ui_progress__update(struct ui_progress *p, u64 adv); 15 16 struct ui_progress_ops { 17 void (*update)(struct ui_progress *p); 18 void (*finish)(void); 19 }; 20 21 extern struct ui_progress_ops *ui_progress__ops; 22 23 #endif 24