perf report: Fix annotate double quit issue in branch view mode
authorStephane Eranian <eranian@google.com>
Mon, 12 Mar 2012 15:13:30 +0000 (16:13 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 Mar 2012 19:46:16 +0000 (20:46 +0100)
commit24bff2dc0f77b1f186b7bdf30060caf3df191a68
tree8a29fe1cef00c5b93a4fd8b0b0e54ff62fa99dde
parent8bcd65fd29e9abfb633bfd6eedaf24b22e211f3a
perf report: Fix annotate double quit issue in branch view mode

This patch fixes perf report to not go back two levels when
pressing the 'q' key while annotating in branch view mode.

When pressing 'q' in annotate mode and if the branch source
and target belong to different functions, perf now brings
up the annotation popup menu again to offer the option to
annotate the other branch source or target.

As part of the code restructuring in perf_evsel__hists_browse()
we also fix a memory leak on options[] in case of error.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: peterz@infradead.org
Cc: acme@redhat.com
Cc: asharma@fb.com
Cc: ravitillo@lbl.gov
Cc: vweaver1@eecs.utk.edu
Cc: khandual@linux.vnet.ibm.com
Cc: dsahern@gmail.com
Link: http://lkml.kernel.org/r/1331565210-10865-3-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/ui/browsers/hists.c