diff options
author | Jiri Olsa <jolsa@kernel.org> | 2017-09-08 14:05:09 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-09-13 09:49:15 -0300 |
commit | 25cc4eb44b0c840eff0e5a46a85b9ccbde77401b (patch) | |
tree | 060c4b3ee2a7fddc4a4763842ba3b4044d61fbe6 /tools/perf/ui/progress.h | |
parent | 80f873557112fc163f011cd131d4cfe4959100a6 (diff) | |
download | op-kernel-dev-25cc4eb44b0c840eff0e5a46a85b9ccbde77401b.zip op-kernel-dev-25cc4eb44b0c840eff0e5a46a85b9ccbde77401b.tar.gz |
perf ui progress: Add ui specific init function
Adding ui specific init function allowing to setup the progress bar
width based on current screen scales.
Adding TUI init function to get more grained update of the progress bar.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20170908120510.22515-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/progress.h')
-rw-r--r-- | tools/perf/ui/progress.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/ui/progress.h b/tools/perf/ui/progress.h index 717d39d..e5f434a 100644 --- a/tools/perf/ui/progress.h +++ b/tools/perf/ui/progress.h @@ -14,6 +14,7 @@ void ui_progress__init(struct ui_progress *p, u64 total, const char *title); void ui_progress__update(struct ui_progress *p, u64 adv); struct ui_progress_ops { + void (*init)(struct ui_progress *p); void (*update)(struct ui_progress *p); void (*finish)(void); }; |