diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-07-04 13:52:13 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-07-04 13:52:13 +0000 |
commit | 6baf216422da55b5687aa00a534f0a7f50a07d70 (patch) | |
tree | c88586a9e1e2c2e38034c532cf606ed021bf2f26 /tools | |
parent | 13d1f90cfcb6e9fa0f30b6b2f264fb9448c01ddf (diff) | |
download | src-6baf216422da55b5687aa00a534f0a7f50a07d70.tar.gz src-6baf216422da55b5687aa00a534f0a7f50a07d70.zip |
Disable pipepingtd benchmarks, to make it not depend on libthr.
Obtained from: CheriBSD
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Notes
Notes:
svn path=/head/; revision=335945
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/syscall_timing/Makefile | 2 | ||||
-rw-r--r-- | tools/tools/syscall_timing/syscall_timing.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/tools/syscall_timing/Makefile b/tools/tools/syscall_timing/Makefile index 6d87bde582ce..2b4accaa2470 100644 --- a/tools/tools/syscall_timing/Makefile +++ b/tools/tools/syscall_timing/Makefile @@ -6,7 +6,7 @@ PROG= syscall_timing CFLAGS+= -static -O MAN= -LIBADD= pthread +#LIBADD= pthread WARNS= 6 diff --git a/tools/tools/syscall_timing/syscall_timing.c b/tools/tools/syscall_timing/syscall_timing.c index d64e7a6a0f7a..c33ed0ddf665 100644 --- a/tools/tools/syscall_timing/syscall_timing.c +++ b/tools/tools/syscall_timing/syscall_timing.c @@ -44,7 +44,9 @@ #include <fcntl.h> #include <inttypes.h> #include <limits.h> +#ifdef WITH_PTHREAD #include <pthread.h> +#endif #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -319,6 +321,7 @@ test_pipeping(uintmax_t num, uintmax_t int_arg, const char *path __unused) return (i); } +#ifdef WITH_PTHREAD struct pipepingtd_ctx { int fd; uintmax_t int_arg; @@ -375,6 +378,7 @@ test_pipepingtd(uintmax_t num, uintmax_t int_arg, const char *path __unused) return (i); } +#endif /* WITH_PTHREAD */ static uintmax_t test_socket_stream(uintmax_t num, uintmax_t int_arg, const char *path __unused) @@ -827,6 +831,7 @@ static const struct test tests[] = { { "pipeping_10000", test_pipeping, .t_flags = 0, .t_int = 10000 }, { "pipeping_100000", test_pipeping, .t_flags = 0, .t_int = 100000 }, { "pipeping_1000000", test_pipeping, .t_flags = 0, .t_int = 1000000 }, +#ifdef WITH_PTHREAD { "pipepingtd_1", test_pipepingtd, .t_flags = 0, .t_int = 1 }, { "pipepingtd_10", test_pipepingtd, .t_flags = 0, .t_int = 10 }, { "pipepingtd_100", test_pipepingtd, .t_flags = 0, .t_int = 100 }, @@ -834,6 +839,7 @@ static const struct test tests[] = { { "pipepingtd_10000", test_pipepingtd, .t_flags = 0, .t_int = 10000 }, { "pipepingtd_100000", test_pipepingtd, .t_flags = 0, .t_int = 100000 }, { "pipepingtd_1000000", test_pipepingtd, .t_flags = 0, .t_int = 1000000 }, +#endif { "gettimeofday", test_gettimeofday, .t_flags = 0 }, { "getpriority", test_getpriority, .t_flags = 0 }, { "getprogname", test_getprogname, .t_flags = 0 }, |