perf ui: Rename ui_progress to ui_progress_ops
Reserving 'struct ui_progress' to the per progress instances, not to the particular set of operations used to implmenet a progress bar in the current UI (GTK, TUI, etc). Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-zjqbfp9gx3yo45s0rp9uv42n@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
此提交包含在:
@@ -2,6 +2,7 @@
|
||||
#include "../progress.h"
|
||||
#include "../libslang.h"
|
||||
#include "../ui.h"
|
||||
#include "tui.h"
|
||||
#include "../browser.h"
|
||||
|
||||
static void tui_progress__update(u64 curr, u64 total, const char *title)
|
||||
@@ -31,12 +32,12 @@ static void tui_progress__update(u64 curr, u64 total, const char *title)
|
||||
pthread_mutex_unlock(&ui__lock);
|
||||
}
|
||||
|
||||
static struct ui_progress tui_progress_fns =
|
||||
static struct ui_progress_ops tui_progress__ops =
|
||||
{
|
||||
.update = tui_progress__update,
|
||||
};
|
||||
|
||||
void ui_progress__init(void)
|
||||
void tui_progress__init(void)
|
||||
{
|
||||
progress_fns = &tui_progress_fns;
|
||||
ui_progress__ops = &tui_progress__ops;
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "../util.h"
|
||||
#include "../libslang.h"
|
||||
#include "../keysyms.h"
|
||||
#include "tui.h"
|
||||
|
||||
static volatile int ui__need_resize;
|
||||
|
||||
@@ -119,7 +120,7 @@ int ui__init(void)
|
||||
|
||||
ui_helpline__init();
|
||||
ui_browser__init();
|
||||
ui_progress__init();
|
||||
tui_progress__init();
|
||||
|
||||
signal(SIGSEGV, ui__signal);
|
||||
signal(SIGFPE, ui__signal);
|
||||
|
6
tools/perf/ui/tui/tui.h
一般檔案
6
tools/perf/ui/tui/tui.h
一般檔案
@@ -0,0 +1,6 @@
|
||||
#ifndef _PERF_TUI_H_
|
||||
#define _PERF_TUI_H_ 1
|
||||
|
||||
void tui_progress__init(void);
|
||||
|
||||
#endif /* _PERF_TUI_H_ */
|
新增問題並參考
封鎖使用者