diff --git a/[refs] b/[refs] index 3a4bb23f358a..e372f999d89d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9389a46043c8f091dc8f8d8e25a5c1355f8bcc9b +refs/heads/master: 10b47d54154ce711e4c4438aff10f0215b2ab8eb diff --git a/trunk/tools/perf/builtin-top.c b/trunk/tools/perf/builtin-top.c index 2a0ec09b9b77..e40f86ea3641 100644 --- a/trunk/tools/perf/builtin-top.c +++ b/trunk/tools/perf/builtin-top.c @@ -1258,6 +1258,10 @@ int cmd_top(int argc, const char **argv, const char *prefix __used) if (top.target.uid_str != NULL && top.target.uid == UINT_MAX - 1) goto out_delete_evlist; + if (top.target.tid == 0 && top.target.pid == 0 && + top.target.uid_str == NULL) + top.target.system_wide = true; + if (perf_evlist__create_maps(top.evlist, &top.target) < 0) usage_with_options(top_usage, options);