fix a kmap leak in virtio_console
[linux/fpc-iii.git] / tools / perf / ui / progress.h
blob29ec8efffefb7ec9e0ac1936304257cc8c5ff9ef
1 #ifndef _PERF_UI_PROGRESS_H_
2 #define _PERF_UI_PROGRESS_H_ 1
4 #include <../types.h>
6 void ui_progress__finish(void);
8 struct ui_progress {
9 const char *title;
10 u64 curr, next, step, total;
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);
16 struct ui_progress_ops {
17 void (*update)(struct ui_progress *p);
18 void (*finish)(void);
21 extern struct ui_progress_ops *ui_progress__ops;
23 #endif