urcu: declare test_urcu_multiflavor functions
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 7 Dec 2012 16:37:21 +0000 (11:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Dec 2012 16:37:21 +0000 (11:37 -0500)
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/Makefile.am
tests/test_urcu_multiflavor-bp.c
tests/test_urcu_multiflavor-mb.c
tests/test_urcu_multiflavor-memb.c
tests/test_urcu_multiflavor-qsbr.c
tests/test_urcu_multiflavor-signal.c
tests/test_urcu_multiflavor.c
tests/test_urcu_multiflavor.h [new file with mode: 0644]

index b0293779c18821cf05f02de4e66bc419c64913f4..f8b4c67d7c13e0b50c9ea9282f11aa536d52da83 100644 (file)
@@ -21,7 +21,7 @@ noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
        test_urcu_lfq_dynlink test_urcu_lfs_dynlink test_urcu_hash \
        test_urcu_lfs_rcu_dynlink \
        test_urcu_multiflavor test_urcu_multiflavor_dynlink
-noinst_HEADERS = rcutorture.h
+noinst_HEADERS = rcutorture.h test_urcu_multiflavor.h
 
 if COMPAT_ARCH
 COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
index c9f00a3e5e51cfaa1d9bd14f0c2d6d3fa8e0a49c..199818b69c185ea3601f4525f76bfdf488d4b685 100644 (file)
@@ -26,6 +26,7 @@
 
 #define RCU_SIGNAL
 #include <urcu-bp.h>
+#include "test_urcu_multiflavor.h"
 
 int test_mf_bp(void)
 {
index 5b5d7e41b4b8fdfaa04e4a42c5ec288fb34278fe..e4ba6a4d0d3e2fd83ffdf67997f23e9bad180b71 100644 (file)
@@ -26,6 +26,7 @@
 
 #define RCU_MB
 #include <urcu.h>
+#include "test_urcu_multiflavor.h"
 
 int test_mf_mb(void)
 {
index c3a01283a50f89a28f11bac7220fd7f8a8bd5312..583f2e14041f047f1a138d1b88285bc139ba5aec 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include <urcu.h>
+#include "test_urcu_multiflavor.h"
 
 int test_mf_memb(void)
 {
index f4fb145f77b362725091437c74d5df97242fc559..64f32f4e30547fb12449c70423ed27c782dfdeb6 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include <urcu-qsbr.h>
+#include "test_urcu_multiflavor.h"
 
 int test_mf_qsbr(void)
 {
index 5519d36e3df273ed836eb1138aaa87c6b93a969a..816c61584344118fd87092704d95bd9325afa11e 100644 (file)
@@ -26,6 +26,7 @@
 
 #define RCU_SIGNAL
 #include <urcu.h>
+#include "test_urcu_multiflavor.h"
 
 int test_mf_signal(void)
 {
index 825333e9396fc5eef082ea2677a75ecacc4ac743..cd573ca8f664b6de5c91d9a60aff3de6c059e2a2 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <stdlib.h>
+#include "test_urcu_multiflavor.h"
 
 int main(int argc, char **argv)
 {
diff --git a/tests/test_urcu_multiflavor.h b/tests/test_urcu_multiflavor.h
new file mode 100644 (file)
index 0000000..419ad5d
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * test_urcu_multiflavor.h
+ *
+ * Userspace RCU library - test multiple RCU flavors into one program
+ *
+ * Copyright February 2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright February 2012 - Lai Jiangshan <laijs@cn.fujitsu.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+extern int test_mf_memb(void);
+extern int test_mf_mb(void);
+extern int test_mf_signal(void);
+extern int test_mf_qsbr(void);
+extern int test_mf_bp(void);
+
This page took 0.028256 seconds and 4 git commands to generate.