trace: enable tracing of TCG atomics
commitd071f4cd5579fe82ba764e4c29f06664658e3762
authorEmilio G. Cota <cota@braap.org>
Tue, 22 May 2018 22:26:52 +0000 (22 18:26 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Jun 2018 10:09:24 +0000 (27 11:09 +0100)
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 <cota@braap.org>
Message-id: 1527028012-21888-6-git-send-email-cota@braap.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
accel/tcg/atomic_template.h