Lines Matching +full:avg +full:- +full:count
4 * SPDX-License-Identifier: Apache-2.0
25 static size_t count[2]; variable
68 ret = op[id](fixture->fd); in th_fun()
70 zassert_true(ret == 0 || (ret == -1 && errno == EAGAIN), in th_fun()
73 count[id] += (ret == 0); in th_fun()
77 printk("%zu %s\n", count[id], msg[id]); in th_fun()
84 printk("avg: %zu %s/s\n", (size_t)((count[id] * MSEC_PER_SEC) / end_ms), msg[id]); in th_fun()
97 reopen(&fixture->fd, 0, EFD_NONBLOCK | EFD_SEMAPHORE); in ZTEST_F()
109 zassert_true(count[READER] > 0, "read count is zero"); in ZTEST_F()
110 zassert_true(count[WRITER] > 0, "write count is zero"); in ZTEST_F()
111 zassert_true(count[WRITER] >= count[READER], "read count (%zu) > write count (%zu)", in ZTEST_F()
112 count[READER], count[WRITER]); in ZTEST_F()