aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browser.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-08-11 17:14:40 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-10-05 17:59:49 -0300
commitfaae6f690eecb82b6d9d9f2112f5b51ac37d4acb (patch)
tree7c19eac2190503cc978c9571900d834614b20af6 /tools/perf/ui/browser.h
parentperf callchain: Switch default to 'graph,0.5,caller' (diff)
downloadlinux-dev-faae6f690eecb82b6d9d9f2112f5b51ac37d4acb.tar.xz
linux-dev-faae6f690eecb82b6d9d9f2112f5b51ac37d4acb.zip
perf ui browser: Optional horizontal scrolling key binding
If the classes derived from ui_browser want to do some sort of horizontal scrolling, they have just to set ui_browser->columns to the number of columns available. Those columns can be the number of characters on the screen, if what is desired is to scroll character by character, or the number of columns in a spreadsheet like table. This is what the hist_browser will do, skipping ui_browser->horiz_scroll columns when rendering each of its lines. 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-q6a22bpmpgcr1awgzrmd4jrs@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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browser.h b/tools/perf/ui/browser.h
index f3cef564de02..01781de59532 100644
--- a/tools/perf/ui/browser.h
+++ b/tools/perf/ui/browser.h
@@ -14,7 +14,7 @@
struct ui_browser {
u64 index, top_idx;
void *top, *entries;
- u16 y, x, width, height, rows;
+ u16 y, x, width, height, rows, columns, horiz_scroll;
int current_color;
void *priv;
const char *title;