]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a2d354ec650821591fcdaf9ebd396bd0b2f4e69
tree8a29fe1cef00c5b93a4fd8b0b0e54ff62fa99dde
parent5babd91eb7bb0de872750cb2340fd0de1b55f8d6
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