Commit d9695d9f authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

perf hists browser: Be a bit more strict about presenting CPU socket zoom

For consistency with the other sort order checks.
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>,
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1452960197-5323-9-git-send-email-namhyung@kernel.org
[ Carved out from a  larger patch, moved check to add_socket_opt() ]
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b1447a54
...@@ -1971,7 +1971,7 @@ static int ...@@ -1971,7 +1971,7 @@ static int
add_socket_opt(struct hist_browser *browser, struct popup_action *act, add_socket_opt(struct hist_browser *browser, struct popup_action *act,
char **optstr, int socket_id) char **optstr, int socket_id)
{ {
if (socket_id < 0) if (!sort__has_socket || socket_id < 0)
return 0; return 0;
if (asprintf(optstr, "Zoom %s Processor Socket %d", if (asprintf(optstr, "Zoom %s Processor Socket %d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment