diff options
author | David S. Miller <[email protected]> | 2010-02-26 12:08:34 -0300 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-02-26 16:28:45 +0100 |
commit | 4385d580f2278abab6d336e52522e9a6f5452a11 (patch) | |
tree | ab35d78343741a1130b779cd1d98f5ac0041ac37 /tools/perf/scripts/python/check-perf-trace.py | |
parent | f22f54f4491acd987a6c5a92de52b60ca8b58b61 (diff) |
perf tools: Flush maps on COMM events
Even though we don't register the counters until the child is right about
to exec(), we're still going to get at least a few events while the
fork()'d child is still executing 'perf' and in particular we're going to
get the MMAP events.
We can't distinguish the ones in the newly executed process because the
PID will be the same.
One way to solve this would be to have a PERF_RECORD_EXEC event, and when
this is seen 'perf' can flush it's map cache. We can't use
PERF_RECORD_COMM since that's generated by other things, not just exec().
Actually, thinking about it some more, using PERF_RECORD_COMM might be a
good enough approximation.
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions