Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / tools / perf / ui / progress.h
CommitLineData
34cea7f7
ACM
1#ifndef _PERF_UI_PROGRESS_H_
2#define _PERF_UI_PROGRESS_H_ 1
3
d944c4ee 4#include <linux/types.h>
34cea7f7 5
4d3001fd 6void ui_progress__finish(void);
48000a1a 7
4d3001fd
ACM
8struct ui_progress {
9 const char *title;
10 u64 curr, next, step, total;
11};
48000a1a 12
4d3001fd
ACM
13void ui_progress__init(struct ui_progress *p, u64 total, const char *title);
14void ui_progress__update(struct ui_progress *p, u64 adv);
15
4779a2e9 16struct ui_progress_ops {
4d3001fd 17 void (*update)(struct ui_progress *p);
a5580f3e 18 void (*finish)(void);
688f2f5b
NK
19};
20
4779a2e9 21extern struct ui_progress_ops *ui_progress__ops;
688f2f5b 22
34cea7f7 23#endif