]> git.baikalelectronics.ru Git - kernel.git/commit
perf top browser: Adjust the browser indexes when refreshing
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Feb 2011 10:25:02 +0000 (07:25 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Feb 2011 10:25:02 +0000 (07:25 -0300)
commit327f6d64b30660a20ff853c1e03fcceb28cae72c
tree263c8c5e90f7dd585d224d839d808425b4fe13fd
parentd21f3ad24bfc1f2c6a562d50da178e7207a8bcf4
perf top browser: Adjust the browser indexes when refreshing

This is not a problem when we're not at the bottom of the active symbols
list, so was not noticed, but at the end of the screen it falls apart.

Fix it by adjusting the ui_browser indexes according to the new number
of entries in the rb_tree and by seeking from the start of the rb_tree
to find the new symbol at the top of the screen.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/top.c