diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2009-04-03 16:43:37 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-07 13:36:16 +0200 |
commit | 38f801129ad07b9afa7f9bd3779f61b805416d8c (patch) | |
tree | 2a9fba8e7abfece1378e14472650e2e1cfb9403e /kernel/mutex.c | |
parent | 8d99b3ac2726e5edd97ad147fa5c1f2acb63a745 (diff) | |
download | blackbird-op-linux-38f801129ad07b9afa7f9bd3779f61b805416d8c.tar.gz blackbird-op-linux-38f801129ad07b9afa7f9bd3779f61b805416d8c.zip |
x86, bts: fix race between per-task and per-cpu branch tracing
Per-task branch tracing installs a debug store context with the traced
task. This immediately results in the branch trace control bits to be
cleared for the next context switch of that task, if not set before.
Either per-cpu or per-task tracing are allowed at the same time.
An active per-cpu tracing would be disabled even if the per-task tracing
request is rejected and the task debug store context removed.
Check the tracing type (per-cpu or per-task) before installing a task
debug store context.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Cc: roland@redhat.com
Cc: eranian@googlemail.com
Cc: oleg@redhat.com
Cc: juan.villacis@intel.com
Cc: ak@linux.jf.intel.com
LKML-Reference: <20090403144552.856000000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/mutex.c')
0 files changed, 0 insertions, 0 deletions