caa_get_cycles: caa_ prefix for type, use CLOCK_MONOTONIC
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 16:58:59 +0000 (12:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 16:58:59 +0000 (12:58 -0400)
commit3fa182868e25068413fdaa1bef290365e99ab246
tree56798e4f8e076a897bdd7311e97dc3962a5fe919
parent67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91
caa_get_cycles: caa_ prefix for type, use CLOCK_MONOTONIC

clock_gettime() of CLOCK_MONOTONIC mimicks better the behavior of a
cycle counter, since it is not affected by NTP major time updates.

Also, now prefix "cycles_t" with a caa_ prefix, so it does not clash
with application namespaces. Anyway, caa_get_cycles() is mostly used in
testing.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/test_cycles_per_loop.c
tests/benchmark/test_looplen.c
tests/benchmark/test_perthreadlock_timing.c
tests/benchmark/test_rwlock_timing.c
tests/benchmark/test_urcu_qsbr_timing.c
tests/benchmark/test_urcu_timing.c
urcu/arch/generic.h
urcu/arch/hppa.h
urcu/arch/ppc.h
urcu/arch/s390.h
urcu/arch/x86.h
This page took 0.028775 seconds and 4 git commands to generate.