Add urcu-asm.c
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 9 Feb 2009 06:48:04 +0000 (01:48 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 9 Feb 2009 06:48:04 +0000 (01:48 -0500)
Small file to get the assembly output of fast path.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-asm.c [new file with mode: 0644]

diff --git a/urcu-asm.c b/urcu-asm.c
new file mode 100644 (file)
index 0000000..19a5b0c
--- /dev/null
@@ -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 */");
+}
This page took 0.025001 seconds and 4 git commands to generate.