diff options
-rw-r--r-- | tools/perf/builtin-top.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index e4ca827f6879..c53cdab61433 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -1270,8 +1270,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __used) | |||
1270 | goto out_delete_evlist; | 1270 | goto out_delete_evlist; |
1271 | } | 1271 | } |
1272 | 1272 | ||
1273 | if (top.target.tid == 0 && top.target.pid == 0 && | 1273 | if (perf_target__none(&top.target)) |
1274 | top.target.uid_str == NULL) | ||
1275 | top.target.system_wide = true; | 1274 | top.target.system_wide = true; |
1276 | 1275 | ||
1277 | if (perf_evlist__create_maps(top.evlist, &top.target) < 0) | 1276 | if (perf_evlist__create_maps(top.evlist, &top.target) < 0) |