Disable pipepingtd benchmarks, to make it not depend on libthr.

Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
This commit is contained in:
trasz 2018-07-04 13:52:13 +00:00
parent 4286b395ad
commit c6f32f0c3a
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ PROG= syscall_timing
CFLAGS+= -static -O
MAN=
LIBADD= pthread
#LIBADD= pthread
WARNS= 6

View File

@ -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 },