diff options
| author | Zhang, Yanmin <[email protected]> | 2010-03-18 11:36:04 -0300 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-03-18 16:21:11 +0100 |
| commit | 46be604b5ba738d53e5f5314813a4e7092864baf (patch) | |
| tree | e06fa3a1bc3ed6c2bd10c2379fa5478522477baa /include/linux | |
| parent | 6be2850effd6a8bae11d623c8c52e88d2fbc0e96 (diff) | |
perf record: Enable counters only when kernel is execing subcommand
'perf record' starts counters before subcommand is execed, so
the statistics is not precise because it includes data of some
preparation steps. I fix it with the patch.
In addition, change the condition to fork/exec subcommand. If
there is a subcommand parameter, perf always fork/exec it. The
usage example is:
# perf record -f -a sleep 10
So this command could collect statistics for 10 seconds
precisely. User still could stop it by CTRL+C. Without the new
capability, user could only input CTRL+C to stop it without
precise time clock.
Signed-off-by: Zhang Yanmin <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Avi Kivity <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sheng Yang <[email protected]>
Cc: oerg Roedel <[email protected]>
Cc: Jes Sorensen <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Gleb Natapov <[email protected]>
Cc: <[email protected]>
Cc: Zachary Amsden <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions