]> git.baikalelectronics.ru Git - kernel.git/commit
perf report: Implement Newt callgraphs
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Mar 2010 20:52:49 +0000 (17:52 -0300)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Mar 2010 20:58:08 +0000 (21:58 +0100)
commit5c87f34fedde5d8fdc7424deafb9a3c1d0f64095
treea6f3f21bfaaa54b0637acf3d6caea97e8653df6e
parentfbe0e9c191c62c1b12c644525413132c4bad7882
perf report: Implement Newt callgraphs

Starts collapsed, allows annotating by pressing 'A' or 'a' on
the symbol, be it the top level one or any of the symbols in the
chains.

It (ab)uses the only tree widget in newt, that is actually a
checkbox tree that we use with just one option ('.'), end result
is usable but we really need to create a custom widget tree so
that we can use the data structures we have (hist_entry rb_tree
+ callchain rb_tree + lists), so that we reduce the memory
footprint by not creating a mirror set of data structures in the
newtCheckboxTree widget.

Thanks to Frédéric Weisbacker for fixing the orphanage problem
in c1f1ce6, without that we were tripping a newt bug (fix
already sent to newt's maintainer).

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1269291169-29820-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/newt.c