linux/tools/perf/util/ui
Arnaldo Carvalho de Melo 900e14a8f5 perf hists browser: Recalculate browser pointers after resort/decay
In browsers that access dynamic underlying data structures, like in the
hists browser and its hist_entry rb_tree, we need to revalidate any
reference to the underlying data structure, because they can have gone
away, decayed.

This fixes a problem where after a while the top entries get behind the
top of the screen, i.e. the top_idx stays at 0, which means it is at the
first entry in the rb_tree when in fact it wasn't because the
browser->top didn't got revalidated after the timer ran and the
underlying data structure got updated.

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-mhje66qssdko24q67a2lhlho@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2011-10-11 16:16:54 -03:00
..
browsers perf hists browser: Recalculate browser pointers after resort/decay 2011-10-11 16:16:54 -03:00
browser.c perf hists browser: Recalculate browser pointers after resort/decay 2011-10-11 16:16:54 -03:00
browser.h perf hists browser: Recalculate browser pointers after resort/decay 2011-10-11 16:16:54 -03:00
helpline.c perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
helpline.h perf ui browser: Add ui_browser__show counterpart: __hide 2010-08-10 15:44:20 -03:00
libslang.h perf top: Fix TUI compilation 2011-02-01 17:33:06 -02:00
progress.c perf ui: Move ui_progress routines to separate file in util/ui/ 2010-08-10 16:09:14 -03:00
progress.h perf ui: Move ui_progress routines to separate file in util/ui/ 2010-08-10 16:09:14 -03:00
setup.c perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
ui.h perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
util.c perf tui: Make ui__warning modal 2011-03-01 10:24:43 -03:00
util.h perf ui: Complete the breakdown of util/newt.c 2010-08-10 16:11:38 -03:00