]> Git Repo - qemu.git/commit
tcg: distribute tcg_time into TCG contexts
authorEmilio G. Cota <[email protected]>
Wed, 10 Oct 2018 14:48:53 +0000 (10:48 -0400)
committerRichard Henderson <[email protected]>
Fri, 19 Oct 2018 01:58:10 +0000 (18:58 -0700)
commit72fd2efbbd52c1a7974000a60a0c2131b1a4aaf2
tree888c2d7d7dfd9ba129d591d6891e002a521b987a
parentdd1d7da23b0abef87f46d9ab39ba9b0974eaec04
tcg: distribute tcg_time into TCG contexts

When we implemented per-vCPU TCG contexts, we forgot to also
distribute the tcg_time counter, which has remained as a global
accessed without any serialization, leading to potentially missed
counts.

Fix it by distributing the field over the TCG contexts, embedding
it into TCGProfile with a field called "cpu_exec_time", which is more
descriptive than "tcg_time". Add a function to query this value
directly, and for completeness, fill in the field in
tcg_profile_snapshot, even though its callers do not use it.

Signed-off-by: Emilio G. Cota <[email protected]>
Message-Id: <20181010144853[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
cpus.c
include/qemu/timer.h
monitor.c
tcg/tcg.c
tcg/tcg.h
This page took 0.027995 seconds and 4 git commands to generate.