summaryrefslogtreecommitdiffstats
path: root/hw/misc/tmp421.c
diff options
context:
space:
mode:
authorEmilio G. Cota2018-08-17 05:29:49 +0200
committerPaolo Bonzini2018-08-23 18:46:25 +0200
commit996e8d9a45f74fd59a8aa5fa78102e1d8981a945 (patch)
treeaed1547f9fa9c40978697004363c0f281e0b6068 /hw/misc/tmp421.c
parentqsp: add sort_by option to qsp_report (diff)
downloadqemu-996e8d9a45f74fd59a8aa5fa78102e1d8981a945.tar.gz
qemu-996e8d9a45f74fd59a8aa5fa78102e1d8981a945.tar.xz
qemu-996e8d9a45f74fd59a8aa5fa78102e1d8981a945.zip
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>
Diffstat (limited to 'hw/misc/tmp421.c')
0 files changed, 0 insertions, 0 deletions