From: Lai Jiangshan Date: Fri, 7 Dec 2012 16:37:21 +0000 (-0500) Subject: urcu: declare test_urcu_multiflavor functions X-Git-Tag: v0.8.0~126 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=b5002bee0cfd9fab20edc7d2bfaa9d0c75628f5b;hp=23ae48eff1de5f6bba7d77b4e0449120be56b4ba urcu: declare test_urcu_multiflavor functions Signed-off-by: Lai Jiangshan Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/Makefile.am b/tests/Makefile.am index b029377..f8b4c67 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 diff --git a/tests/test_urcu_multiflavor-bp.c b/tests/test_urcu_multiflavor-bp.c index c9f00a3..199818b 100644 --- a/tests/test_urcu_multiflavor-bp.c +++ b/tests/test_urcu_multiflavor-bp.c @@ -26,6 +26,7 @@ #define RCU_SIGNAL #include +#include "test_urcu_multiflavor.h" int test_mf_bp(void) { diff --git a/tests/test_urcu_multiflavor-mb.c b/tests/test_urcu_multiflavor-mb.c index 5b5d7e4..e4ba6a4 100644 --- a/tests/test_urcu_multiflavor-mb.c +++ b/tests/test_urcu_multiflavor-mb.c @@ -26,6 +26,7 @@ #define RCU_MB #include +#include "test_urcu_multiflavor.h" int test_mf_mb(void) { diff --git a/tests/test_urcu_multiflavor-memb.c b/tests/test_urcu_multiflavor-memb.c index c3a0128..583f2e1 100644 --- a/tests/test_urcu_multiflavor-memb.c +++ b/tests/test_urcu_multiflavor-memb.c @@ -25,6 +25,7 @@ #endif #include +#include "test_urcu_multiflavor.h" int test_mf_memb(void) { diff --git a/tests/test_urcu_multiflavor-qsbr.c b/tests/test_urcu_multiflavor-qsbr.c index f4fb145..64f32f4 100644 --- a/tests/test_urcu_multiflavor-qsbr.c +++ b/tests/test_urcu_multiflavor-qsbr.c @@ -25,6 +25,7 @@ #endif #include +#include "test_urcu_multiflavor.h" int test_mf_qsbr(void) { diff --git a/tests/test_urcu_multiflavor-signal.c b/tests/test_urcu_multiflavor-signal.c index 5519d36..816c615 100644 --- a/tests/test_urcu_multiflavor-signal.c +++ b/tests/test_urcu_multiflavor-signal.c @@ -26,6 +26,7 @@ #define RCU_SIGNAL #include +#include "test_urcu_multiflavor.h" int test_mf_signal(void) { diff --git a/tests/test_urcu_multiflavor.c b/tests/test_urcu_multiflavor.c index 825333e..cd573ca 100644 --- a/tests/test_urcu_multiflavor.c +++ b/tests/test_urcu_multiflavor.c @@ -21,6 +21,7 @@ */ #include +#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 index 0000000..419ad5d --- /dev/null +++ b/tests/test_urcu_multiflavor.h @@ -0,0 +1,29 @@ +/* + * test_urcu_multiflavor.h + * + * Userspace RCU library - test multiple RCU flavors into one program + * + * Copyright February 2012 - Mathieu Desnoyers + * Copyright February 2012 - Lai Jiangshan + * + * 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); +