OSDN Git Service

tests/atomic_add-bench: add -m option to use mutexes
authorEmilio G. Cota <cota@braap.org>
Wed, 25 Apr 2018 02:54:56 +0000 (10:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:31 +0000 (19:05 +0200)
commit70c31264afd1f50c3b93a9007d97215ed5485e32
treec66d74778d70ed1674e4bd2d494739a33e5826f2
parent6c090d4a755bb6245461450869130a517e18a3dc
tests/atomic_add-bench: add -m option to use mutexes

This allows us to use atomic-add-bench as a microbenchmark
for evaluating qemu_mutex_lock's performance.

Signed-off-by: Emilio G. Cota <cota@braap.org>
[cherry picked from https://github.com/cota/qemu/commit/f04f34df]
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180425025459.5258-2-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/atomic_add-bench.c