diff options
| -rw-r--r-- | tools/perf/builtin-top.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 2a0ec09b9b77..e40f86ea3641 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
| @@ -1258,6 +1258,10 @@ int cmd_top(int argc, const char **argv, const char *prefix __used) | |||
| 1258 | if (top.target.uid_str != NULL && top.target.uid == UINT_MAX - 1) | 1258 | if (top.target.uid_str != NULL && top.target.uid == UINT_MAX - 1) |
| 1259 | goto out_delete_evlist; | 1259 | goto out_delete_evlist; |
| 1260 | 1260 | ||
| 1261 | if (top.target.tid == 0 && top.target.pid == 0 && | ||
| 1262 | top.target.uid_str == NULL) | ||
| 1263 | top.target.system_wide = true; | ||
| 1264 | |||
| 1261 | if (perf_evlist__create_maps(top.evlist, &top.target) < 0) | 1265 | if (perf_evlist__create_maps(top.evlist, &top.target) < 0) |
| 1262 | usage_with_options(top_usage, options); | 1266 | usage_with_options(top_usage, options); |
| 1263 | 1267 | ||
