diff options
author | Yan, Zheng <[email protected]> | 2012-06-15 14:31:31 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-06-18 12:13:20 +0200 |
commit | fbfc623f8231c8d8c78aab5841e9c6e5811ab638 (patch) | |
tree | 54883756f1b404f2232d4d5077219ea98c1fdbfd /tools/perf/scripts/python/sctop.py | |
parent | 4b4969b14490a4f65b572b8f180164181104b5e1 (diff) |
perf: Avoid race between cpu hotplug and installing event
perf_event_open() requires the cpu on which to install event is online,
but the cpu can go offline after perf_event_open checks that. Add a
get_online_cpus()/put_online_cpus() pair to avoid the race.
Signed-off-by: Zheng Yan <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions