diff options
Diffstat (limited to 'tools/perf/builtin-stat.c')
| -rw-r--r-- | tools/perf/builtin-stat.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 1ca767d906e..bb7723221c0 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -1203,8 +1203,7 @@ int cmd_stat(int argc, const char **argv, const char *prefix __used)  	if (add_default_attributes())  		goto out; -	if (target.pid) -		target.tid = target.pid; +	perf_target__validate(&target);  	evsel_list->threads = thread_map__new_str(target.pid,  						  target.tid, UINT_MAX);  |