Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304916
b: refs/heads/master
c: 10b47d5
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 7, 2012
1 parent e979f67 commit 28e034c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9389a46043c8f091dc8f8d8e25a5c1355f8bcc9b
refs/heads/master: 10b47d54154ce711e4c4438aff10f0215b2ab8eb
4 changes: 4 additions & 0 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 28e034c

Please sign in to comment.