When the bts tracer is removed while the traced task is running,the write to clear the bts tracer pointer races with context switch code.

Read the tracer once during a context switch.

When a new tracer is installed, the bts tracer is set in the ds contextbefore the tracer is initialized in order to claim the context for thattracer.This may result in write accesses using an uninitialized trace configurationwhen scheduling timestamps have been requested.

Store active tracing flags separately and only set active flags afterthe tracing configuration has been initialized.

This e-mail and any attachments may contain confidential material forthe sole use of the intended recipient(s). Any review or distributionby others is strictly prohibited. If you are not the intendedrecipient, please contact the sender and delete all copies.