]> 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)
commit661c444df972d7b4917af1495fdd6b9084ed0cd0
tree8a29fe1cef00c5b93a4fd8b0b0e54ff62fa99dde
parent2e929697f0f76b2b0a7f28b376f89d15619cb786
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