perf annotate: Move locking to struct annotation
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Feb 2011 15:27:39 +0000 (13:27 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Feb 2011 17:03:36 +0000 (15:03 -0200)
commitce6f4fab4059cd72638a0cfa596a8ee2c79c1c8e
tree00416d7a54d9ef265b9358022e804217dcb5d870
parente3087b80aa0bceda9863f33307460f3ba79f2b15
perf annotate: Move locking to struct annotation

Since we'll need it when implementing the live annotate TUI browser.

This also simplifies things a bit by having the list head for the source
code to be in the dynamicly allocated part of struct annotation, that
way we don't have to pass it around, it can be found from the struct
symbol that is passed everywhere.

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/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/top.h
tools/perf/util/ui/browsers/annotate.c