Home
last modified time | relevance | path

Searched hist:"996 e8d9a" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/include/qemu/
H A Dqsp.h996e8d9a Thu Aug 16 22:29:49 CDT 2018 Emilio G. Cota <cota@braap.org> qsp: add qsp_reset

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>
/openbmc/qemu/util/
H A Dqsp.c996e8d9a Thu Aug 16 22:29:49 CDT 2018 Emilio G. Cota <cota@braap.org> qsp: add qsp_reset

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>