From 0af68f5e633e755171e269db853b8a1605ae6909 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 9 Feb 2009 01:48:04 -0500 Subject: [PATCH] Add urcu-asm.c Small file to get the assembly output of fast path. Signed-off-by: Mathieu Desnoyers --- urcu-asm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 urcu-asm.c 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 */"); +} -- 2.34.1