-
Emilio G. Cota authored
I first implemented this by deleting all entries in the global hash table. But doing that safely slows down profiling, since we'd need to introduce rcu_read_lock/unlock in the fast path. What's implemented here avoids messing with the thread-local data in the global hash table. It achieves this by taking a snapshot of the current state, so that subsequent reports present the delta wrt to the snapshot. Signed-off-by:
Emilio G. Cota <cota@braap.org>
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>Emilio G. Cota authoredI first implemented this by deleting all entries in the global hash table. But doing that safely slows down profiling, since we'd need to introduce rcu_read_lock/unlock in the fast path. What's implemented here avoids messing with the thread-local data in the global hash table. It achieves this by taking a snapshot of the current state, so that subsequent reports present the delta wrt to the snapshot. Signed-off-by:
Emilio G. Cota <cota@braap.org>
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Loading