|
@@ -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)
|
|
if (top.target.uid_str != NULL && top.target.uid == UINT_MAX - 1)
|
|
goto out_delete_evlist;
|
|
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)
|
|
if (perf_evlist__create_maps(top.evlist, &top.target) < 0)
|
|
usage_with_options(top_usage, options);
|
|
usage_with_options(top_usage, options);
|
|
|
|
|