Lines Matching +full:recv +full:- +full:empty

47 "  %s [-c #[,#..] -f] path\n"
49 " -c # Skip most tests and go straight to a high queue depth test\n"
59 " -f Only usable with continuous mode. Pin ourself to the CPUs\n"
99 mqd_t queue = -1;
120 "re-run the tests using fake mode in order to check "
136 "the no-mqueue work and mqueue work tests",
192 if (queue != -1) in shutdown()
283 * open_queue - open the global queue for testing
284 * @attr - An attr struct specifying the desired queue traits
285 * @result - An attr struct that lists the actual traits the queue has
298 if (queue == -1) in open_queue()
358 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \
359 (middle.tv_nsec - start.tv_nsec); \
363 send_total.tv_nsec -= 1000000000; \
365 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \
366 (end.tv_nsec - middle.tv_nsec); \
370 recv_total.tv_nsec -= 1000000000; \
392 if (--*prio < 0) in dec_prio()
393 *prio = mq_prio_max - 1; in dec_prio()
402 {"\n\tTest #2a: Time send/recv message, queue full, constant prio\n",
404 {"\n\tTest #2b: Time send/recv message, queue full, increasing prio\n",
406 {"\n\tTest #2c: Time send/recv message, queue full, decreasing prio\n",
408 {"\n\tTest #2d: Time send/recv message, queue full, random prio\n",
440 if (mq_prio_max == -1) in perf_test_thread()
454 printf("\n\tTest #1: Time send/recv message, queue empty\n"); in perf_test_thread()
475 for (cur_test = test2; cur_test->desc != NULL; cur_test++) { in perf_test_thread()
476 printf("%s:\n", cur_test->desc); in perf_test_thread()
486 for (i = 0; i < result.mq_maxmsg - 1; i++) { in perf_test_thread()
488 cur_test->func(&prio_out); in perf_test_thread()
491 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread()
492 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()
499 cur_test->func(&prio_out); in perf_test_thread()
517 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread()
518 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()
536 if (setpriority(PRIO_PROCESS, 0, -20) != 0) in increase_limits()
538 cur_nice = -20; in increase_limits()
553 if (sysconf(_SC_NPROCESSORS_ONLN) == -1) { in main()
610 * non-absolute path name, unlink will fail. So, in main()
637 cpus_to_pin[0] = cpus_online - 1; in main()
699 if (sigaction(SIGUSR1, &sa, NULL) == -1) in main()
702 if (sigaction(SIGHUP, &sa, NULL) == -1) in main()
704 if (sigaction(SIGINT, &sa, NULL) == -1) in main()
706 if (sigaction(SIGQUIT, &sa, NULL) == -1) in main()
708 if (sigaction(SIGTERM, &sa, NULL) == -1) in main()