On 15/01/2016 17:38, Lluís Vilanova wrote: > Each event with the 'vcpu' property gets a per-vCPU dynamic tracing state. > > The set of enabled events with the 'vcpu' and 'tcg' properties is used > to select a per-vCPU physical TB cache. The number of events with both > properties is used to select the number of physical TB caches, and a > bitmap of the identifiers of such enabled events is used to select a > physical TB cache. > > Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>
I may be wrong, but this patch and patches 3+5 seem overengineered. Why can't you just flush the TB cache entirely whenever the set of trace events changes, independent of whether they use the vcpu attribute? That's a very rare event. Paolo