commit | 264231c508a66185ac0e3807b51e2d33aabd0291 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Jun 02 13:32:11 2016 -0700 |
committer | Yabin Cui <yabinc@google.com> | Thu Jun 09 23:28:20 2016 +0000 |
tree | dd2f1ddfbe5a53c53e51c5bd9f5fa0c1bd0bd34c | |
parent | 9ce821db3aba66e8c93802c8bef70c7a80beda22 [diff] |
perf: disable events across cpu hotplug. Enabling events across cpu hotplug can cause kernel panic, one situation is like below: -> enable perf event on one cpu -> the cpu is offlined -> the perf event is released, but failed to bring up the cpu. so the event is freed, but still registered in the pmu. -> the cpu is online, and try to access the freed event. Bug: 28964480 Change-Id: I395091af177b3307d7b4c3236c2e4b249b06c053