]> Git Repo - qemu.git/commit
trace: enable tracing of TCG atomics
authorEmilio G. Cota <[email protected]>
Tue, 22 May 2018 22:26:52 +0000 (18:26 -0400)
committerStefan Hajnoczi <[email protected]>
Wed, 27 Jun 2018 10:09:24 +0000 (11:09 +0100)
commitd071f4cd5579fe82ba764e4c29f06664658e3762
tree03a30d42e3222154a0e5abcdad0c5bdc67c69e69
parentf9b47999afbf84ddbe7e5649a82f477bb77e3b38
trace: enable tracing of TCG atomics

We do not trace guest atomic accesses. Fix it.

Tested with a modified atomic_add-bench so that it executes
a deterministic number of instructions, i.e. fixed seeding,
no threading and fixed number of loop iterations instead
of running for a certain time.

Before:
- With parallel_cpus = false (no clone syscall so it is never set to true):
  220070 memory accesses
- With parallel_cpus = true (hard-coded):
  212105 memory accesses <-- we're not tracing the atomics!

After:
  220070 memory accesses regardless of parallel_cpus.

Signed-off-by: Emilio G. Cota <[email protected]>
Message-id: 1527028012[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
accel/tcg/atomic_template.h
This page took 0.021991 seconds and 4 git commands to generate.