diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-20 14:59:15 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-20 14:59:15 -0400 |
commit | cf9580036a830f9e95f32dbcedfc57ea1697f120 (patch) | |
tree | cad288bb3c8d10fca08210a2d68cf271a269ccee /tools/perf/util/hist.h | |
parent | 29208e573a9409ee56599cc0157f31b42c7a0235 (diff) |
perf ui browser: Use libslang to read keys
Just another step in stopping the use of libnewt in perf.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.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-uy6s534uqxq8tenh6s3k8ocj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 575bcbc41355..ff93ddc91c5c 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -125,16 +125,13 @@ static inline int hist_entry__tui_annotate(struct hist_entry *self __used, | |||
125 | { | 125 | { |
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
128 | #define KEY_LEFT -1 | 128 | #define K_LEFT -1 |
129 | #define KEY_RIGHT -2 | 129 | #define K_RIGHT -2 |
130 | #else | 130 | #else |
131 | #include <newt.h> | 131 | #include "ui/keysyms.h" |
132 | int hist_entry__tui_annotate(struct hist_entry *he, int evidx, int nr_events, | 132 | int hist_entry__tui_annotate(struct hist_entry *he, int evidx, int nr_events, |
133 | void(*timer)(void *arg), void *arg, int delay_secs); | 133 | void(*timer)(void *arg), void *arg, int delay_secs); |
134 | 134 | ||
135 | #define KEY_LEFT NEWT_KEY_LEFT | ||
136 | #define KEY_RIGHT NEWT_KEY_RIGHT | ||
137 | |||
138 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, | 135 | int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help, |
139 | void(*timer)(void *arg), void *arg, | 136 | void(*timer)(void *arg), void *arg, |
140 | int refresh); | 137 | int refresh); |