projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf stat: Fix forked applications enablement of counters
[linux-2.6-block.git]
/
tools
/
perf
/
builtin-stat.c
diff --git
a/tools/perf/builtin-stat.c
b/tools/perf/builtin-stat.c
index 3f98689dd68782ac10d4a11d3dc157caed8bc355..60baa3dadc4b692e007dc145c7e784565e55aeab 100644
(file)
--- a/
tools/perf/builtin-stat.c
+++ b/
tools/perf/builtin-stat.c
@@
-955,10
+955,10
@@
try_again_reset:
* Enable counters and exec the command:
*/
if (forks) {
- evlist__start_workload(evsel_list);
err = enable_counters();
if (err)
return -1;
+ evlist__start_workload(evsel_list);
t0 = rdclock();
clock_gettime(CLOCK_MONOTONIC, &ref_time);