aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browser.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-08-11 11:50:55 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-08-12 09:27:05 -0400
commit517dfdb315fa2da9b144f6fa494b4f54b490de7e (patch)
treeb04dc0e38c17cfe923d62cb187020a02ce12d741 /tools/perf/ui/browser.c
parent26270a008251ec36431623bd992252934bbe529a (diff)
perf ui browser: Introduce ui_browser__printf()
To remove direct access to libslang functions, with the immediate goal of implementing horizontal scrolling at the ui_browser level, but also because we may at some point want to implement ui_browser with other UIs in addition to the current libslang implementation. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-w0niblabqrkecs4o0eogfy6c@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browser.c')
-rw-r--r--tools/perf/ui/browser.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c
index 5c730ab553e9..c6c7e5189214 100644
--- a/tools/perf/ui/browser.c
+++ b/tools/perf/ui/browser.c
@@ -52,6 +52,15 @@ void ui_browser__write_nstring(struct ui_browser *browser __maybe_unused, const
52 slsmg_write_nstring(msg, width); 52 slsmg_write_nstring(msg, width);
53} 53}
54 54
55void ui_browser__printf(struct ui_browser *browser __maybe_unused, const char *fmt, ...)
56{
57 va_list args;
58
59 va_start(args, fmt);
60 slsmg_vprintf(fmt, args);
61 va_end(args);
62}
63
55static struct list_head * 64static struct list_head *
56ui_browser__list_head_filter_entries(struct ui_browser *browser, 65ui_browser__list_head_filter_entries(struct ui_browser *browser,
57 struct list_head *pos) 66 struct list_head *pos)