From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932752AbbJNNPA (ORCPT ); Wed, 14 Oct 2015 09:15:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58797 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932574AbbJNNOm (ORCPT ); Wed, 14 Oct 2015 09:14:42 -0400 Date: Wed, 14 Oct 2015 06:14:26 -0700 From: tip-bot for Namhyung Kim Message-ID: Cc: tglx@linutronix.de, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, dsahern@gmail.com, namhyung@kernel.org, acme@redhat.com, jolsa@redhat.com, mingo@kernel.org, hpa@zytor.com Reply-To: hpa@zytor.com, acme@redhat.com, jolsa@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, dsahern@gmail.com, namhyung@kernel.org, tglx@linutronix.de In-Reply-To: <1444694521-8136-1-git-send-email-namhyung@kernel.org> References: <1444694521-8136-1-git-send-email-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf hists browser: Add 'm' key for context menu display Git-Commit-ID: 31eb4360546b4bd890f349db01295a173c09b0fb X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 31eb4360546b4bd890f349db01295a173c09b0fb Gitweb: http://git.kernel.org/tip/31eb4360546b4bd890f349db01295a173c09b0fb Author: Namhyung Kim AuthorDate: Tue, 13 Oct 2015 09:02:01 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Oct 2015 23:29:14 -0300 perf hists browser: Add 'm' key for context menu display With horizontal scrolling, the left/right arrow keys are used to scroll columns and ENTER/ESC keys are used to enter/exit menu. However if callchain is recorded, the ENTER key is used to toggle callchain expansion so there's no way to display menu. Use 'm' key to display the menu for this case. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1444694521-8136-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/browsers/hists.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 7728349..e5afb89 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -1769,6 +1769,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, "E Expand all callchains\n" \ "F Toggle percentage of filtered entries\n" \ "H Display column headers\n" \ + "m Display context menu\n" \ "S Zoom into current Processor Socket\n" \ /* help messages are sorted by lexical order of the hotkey */ @@ -1935,6 +1936,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, continue; case K_ENTER: case K_RIGHT: + case 'm': /* menu */ break; case K_ESC: