perf gtk/annotate: Support multiple event annotation
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 7 Feb 2013 09:02:09 +0000 (18:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2013 17:59:28 +0000 (14:59 -0300)
commit7a60ba948267336d77a48a3539f98151f9dcfba6
tree0b716efb72f40233bf204d2f2061b148d3fd4f5e
parent2b676bf068916046151277f27113f80828e33001
perf gtk/annotate: Support multiple event annotation

Show multiple annotation result for each evsel.  Each result represents
the most frquently sampled symbol/function for the evsel and it will be
shown in a tab window.

For this add a reference to main container (notebook) to the pgctx.  At
the first call to annotate browser, hist_entry__find_annotations() will
setup a new browser, and next calls will add new tabs to the browser.
But it requires final perf_gtk__show_annotations() to start processing
GUI events.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1360227734-375-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-annotate.c
tools/perf/ui/gtk/annotate.c
tools/perf/ui/gtk/gtk.h
tools/perf/util/annotate.h