aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-10-20 14:59:15 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-10-20 14:59:15 -0400
commitcf9580036a830f9e95f32dbcedfc57ea1697f120 (patch)
treecad288bb3c8d10fca08210a2d68cf271a269ccee /tools/perf/builtin-annotate.c
parent29208e573a9409ee56599cc0157f31b42c7a0235 (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/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 3ea764a78053..46b4c24f338e 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -118,7 +118,7 @@ static void hists__find_annotations(struct hists *self, int evidx,
118 int nr_events) 118 int nr_events)
119{ 119{
120 struct rb_node *nd = rb_first(&self->entries), *next; 120 struct rb_node *nd = rb_first(&self->entries), *next;
121 int key = KEY_RIGHT; 121 int key = K_RIGHT;
122 122
123 while (nd) { 123 while (nd) {
124 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); 124 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node);
@@ -130,7 +130,7 @@ static void hists__find_annotations(struct hists *self, int evidx,
130 notes = symbol__annotation(he->ms.sym); 130 notes = symbol__annotation(he->ms.sym);
131 if (notes->src == NULL) { 131 if (notes->src == NULL) {
132find_next: 132find_next:
133 if (key == KEY_LEFT) 133 if (key == K_LEFT)
134 nd = rb_prev(nd); 134 nd = rb_prev(nd);
135 else 135 else
136 nd = rb_next(nd); 136 nd = rb_next(nd);
@@ -141,10 +141,10 @@ find_next:
141 key = hist_entry__tui_annotate(he, evidx, nr_events, 141 key = hist_entry__tui_annotate(he, evidx, nr_events,
142 NULL, NULL, 0); 142 NULL, NULL, 0);
143 switch (key) { 143 switch (key) {
144 case KEY_RIGHT: 144 case K_RIGHT:
145 next = rb_next(nd); 145 next = rb_next(nd);
146 break; 146 break;
147 case KEY_LEFT: 147 case K_LEFT:
148 next = rb_prev(nd); 148 next = rb_prev(nd);
149 break; 149 break;
150 default: 150 default: