diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-13 07:52:46 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-13 07:52:46 -0400 |
commit | 3af6e33867b3814a73c3f3ba991a13d7304ad23a (patch) | |
tree | 28f0f4071736faca07252439a0037e27f0895a53 /tools/perf/util/ui/browsers/annotate.c | |
parent | 33e27312aeb05798572ccc456a76321125e8d7cb (diff) |
perf ui browser: Handle SIGWINCH
To do that we needed to stop using newtForm, as we don't want libnewt to
catch the xterm resize signal.
Remove some more newt calls and instead use the underlying libslang
directly. In time tools/perf will use just libslang.
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-h1824yjiru5n2ivz4bseizwj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ui/browsers/annotate.c')
-rw-r--r-- | tools/perf/util/ui/browsers/annotate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/util/ui/browsers/annotate.c b/tools/perf/util/ui/browsers/annotate.c index 674b55e686fd..1967fbf73998 100644 --- a/tools/perf/util/ui/browsers/annotate.c +++ b/tools/perf/util/ui/browsers/annotate.c | |||
@@ -196,11 +196,8 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx, | |||
196 | 196 | ||
197 | nd = self->curr_hot; | 197 | nd = self->curr_hot; |
198 | 198 | ||
199 | if (delay_secs != 0) | ||
200 | newtFormSetTimer(self->b.form, delay_secs * 1000); | ||
201 | |||
202 | while (1) { | 199 | while (1) { |
203 | key = ui_browser__run(&self->b); | 200 | key = ui_browser__run(&self->b, delay_secs); |
204 | 201 | ||
205 | if (delay_secs != 0) { | 202 | if (delay_secs != 0) { |
206 | annotate_browser__calc_percent(self, evidx); | 203 | annotate_browser__calc_percent(self, evidx); |