From: Mathieu Desnoyers Date: Mon, 9 Feb 2009 06:48:04 +0000 (-0500) Subject: Add urcu-asm.c X-Git-Tag: v0.1~308 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=0af68f5e633e755171e269db853b8a1605ae6909 Add urcu-asm.c Small file to get the assembly output of fast path. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-asm.c b/urcu-asm.c new file mode 100644 index 0000000..19a5b0c --- /dev/null +++ b/urcu-asm.c @@ -0,0 +1,15 @@ +#include "urcu.h" + +void show_read_lock(void) +{ + asm volatile ("/* start */"); + rcu_read_lock(); + asm volatile ("/* end */"); +} + +void show_read_unlock(void) +{ + asm volatile ("/* start */"); + rcu_read_unlock(); + asm volatile ("/* end */"); +}