diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-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 e40f86ea3641..c9137ba580d9 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -1254,8 +1254,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __used) | |||
1254 | 1254 | ||
1255 | perf_target__validate(&top.target); | 1255 | perf_target__validate(&top.target); |
1256 | 1256 | ||
1257 | top.target.uid = parse_target_uid(top.target.uid_str); | 1257 | if (perf_target__parse_uid(&top.target) < 0) |
1258 | if (top.target.uid_str != NULL && top.target.uid == UINT_MAX - 1) | ||
1259 | goto out_delete_evlist; | 1258 | goto out_delete_evlist; |
1260 | 1259 | ||
1261 | if (top.target.tid == 0 && top.target.pid == 0 && | 1260 | if (top.target.tid == 0 && top.target.pid == 0 && |