[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1453555902-18401-2-git-send-email-namhyung@kernel.org>
Date: Sat, 23 Jan 2016 22:31:40 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Jiri Olsa <jolsa@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
David Ahern <dsahern@...il.com>
Subject: [PATCH 2/4] perf hists browser: Check socket context menu
Show socket filter context menu only if sort key has socket.
Otherwise the info will be incorrect.
Signed-off-by: Namhyung Kim <namhyung@...nel.org>
---
tools/perf/ui/browsers/hists.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 683b4d8a0aa3..85c668104c4b 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -2306,9 +2306,11 @@ skip_annotation:
browser->selection ?
browser->selection->map : NULL);
}
- nr_options += add_socket_opt(browser, &actions[nr_options],
- &options[nr_options],
- socked_id);
+ if (sort__has_socket) {
+ nr_options += add_socket_opt(browser, &actions[nr_options],
+ &options[nr_options],
+ socked_id);
+ }
/* perf script support */
if (browser->he_selection) {
if (sort__has_thread) {
--
2.6.4
Powered by blists - more mailing lists