diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-19 21:43:58 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-20 17:22:18 +0200 |
commit | 2284cf8074ff12b6304665618f81ced3aa0b41de (patch) | |
tree | c0c7e1fabfb96e7fb7de70afb0ae9162914e4d54 /tools/perf/ui/browser.h | |
parent | perf ui: Introduce non-interactive ui__info_window() function (diff) | |
download | linux-2284cf8074ff12b6304665618f81ced3aa0b41de.tar.xz linux-2284cf8074ff12b6304665618f81ced3aa0b41de.zip |
perf ui browser: Allow specifying message to show when no samples are available to display
The 'perf top' tool will use that to avoid having a initial blank screen
while collecting the minimum number of samples to sort and display.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-89ciceg8cy4442he3t0jzo3f@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browser.h')
-rw-r--r-- | tools/perf/ui/browser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/ui/browser.h b/tools/perf/ui/browser.h index dc1444136658..3678eb88f119 100644 --- a/tools/perf/ui/browser.h +++ b/tools/perf/ui/browser.h @@ -23,6 +23,7 @@ struct ui_browser { void *priv; const char *title; char *helpline; + const char *no_samples_msg; void (*refresh_dimensions)(struct ui_browser *browser); unsigned int (*refresh)(struct ui_browser *browser); void (*write)(struct ui_browser *browser, void *entry, int row); |