Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com> --- include/lapi/futex.h | 24 ++++++++++++++++++++++++ lib/tst_checkpoint.c | 3 +-- testcases/kernel/syscalls/futex/futextest.h | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 include/lapi/futex.h
diff --git a/include/lapi/futex.h b/include/lapi/futex.h new file mode 100644 index 0000000..ac4036b --- /dev/null +++ b/include/lapi/futex.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Linux Test Project + * + * 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 would 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 the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef LAPI_FUTEX_H__ +#define LAPI_FUTEX_H__ + +typedef volatile uint32_t futex_t; + +#endif /* LAPI_FUTEX_H__ */ diff --git a/lib/tst_checkpoint.c b/lib/tst_checkpoint.c index 79e49ac..0e2c402 100644 --- a/lib/tst_checkpoint.c +++ b/lib/tst_checkpoint.c @@ -29,11 +29,10 @@ #include "test.h" #include "safe_macros.h" +#include "lapi/futex.h" #define DEFAULT_MSEC_TIMEOUT 10000 -typedef volatile uint32_t futex_t; - static futex_t *futexes; static int page_size; diff --git a/testcases/kernel/syscalls/futex/futextest.h b/testcases/kernel/syscalls/futex/futextest.h index 1e9713d..5754d36 100644 --- a/testcases/kernel/syscalls/futex/futextest.h +++ b/testcases/kernel/syscalls/futex/futextest.h @@ -38,8 +38,8 @@ #include <sys/syscall.h> #include <sys/types.h> #include <linux/futex.h> +#include "lapi/futex.h" -typedef volatile u_int32_t futex_t; #define FUTEX_INITIALIZER 0 #ifndef FUTEX_CMP_REQUEUE -- 1.7.1 ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list