Namhyung Kim
a5580f3ecb
perf ui: Add ui_progress__finish()
...
Sometimes we need to know when the progress bar should disappear.
Checking curr >= total wasn't enough since there're cases not met that
condition for the last call.
So add a new ->finish callback to identify this explicitly. Currently
only GTK frontend needs it.
Signed-off-by: Namhyung Kim <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Pekka Enberg <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-11-14 16:52:56 -03:00
Namhyung Kim
688f2f5b99
perf ui: Introduce generic ui_progress helper
...
Make ui_progress functions generic so that UI frontend code will add its
callbacks.
Signed-off-by: Namhyung Kim <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Pekka Enberg <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-11-14 16:52:39 -03:00
Namhyung Kim
7da5c85dd3
perf ui tui: Move progress.c under ui/tui directory
...
Current ui_progress functions are implemented for TUI only. So move the
file under the tui directory. This is needed for providing an UI-
agnostic wrapper.
Signed-off-by: Namhyung Kim <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Pekka Enberg <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-11-14 16:52:33 -03:00
Namhyung Kim
aca7a94d6a
perf tools: Move UI bits to tools/perf/ui directory
...
Move those files to new directory in order to be prepared to further UI
work. Makefile and header file pathes are adjusted accordingly.
Signed-off-by: Namhyung Kim <[email protected] >
Suggested-by: Arnaldo Carvalho de Melo <[email protected] >
Acked-by: Pekka Enberg <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Pekka Enberg <[email protected] >
Cc: Peter Zijlstra <[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-04-11 17:16:40 -03:00