Lines Matching refs:tests

38 /* Redefine REGs to make tests less verbose */
84 int stack_depth; /* for eBPF only, since tests don't call verifier */
476 * Branch conversion tests. Complex operations can expand to a lot
542 /* ALU result computation used in tests */
811 * tests. The block size parameters can be adjusted to increase/reduce the
895 * Block size parameters used in pattern tests below. une as needed to
911 * Exhaustive tests of ALU operations for all combinations of power-of-two
1590 * Exhaustive tests of atomic operations for all power-of-two operand
2027 /* 64-bit atomic register tests */
2078 /* 32-bit atomic register tests */
2140 int block = 64; /* Increase for more tests per MSB position */
2267 * Exhaustive tests of JMP operations for all combinations of power-of-two
2418 /* JMP immediate tests */
2474 /* JMP32 immediate tests */
2530 /* JMP register tests */
2586 /* JMP32 register tests */
2644 * increasing offset. This tests the conversion of relative jumps to
3063 static struct bpf_test tests[] = {
8938 * Exhaustive tests of atomic operation variants.
8939 * Individual tests are expanded from template macros for all
10903 * this tests that the JIT/interpreter correctly resets X
11903 * Register (non-)clobbering tests for the case where a JIT implements
11907 * The following tests check that the eBPF registers retain their
14767 if (tests[which].fill_helper)
14768 return tests[which].u.ptr.len;
14770 fp = tests[which].u.insns;
14780 if (tests[which].fill_helper)
14781 return tests[which].u.ptr.insns;
14783 return tests[which].u.insns;
14788 __u8 test_type = tests[which].aux & TEST_TYPE_MASK;
14800 if (tests[which].aux & FLAG_EXPECTED_FAIL) {
14801 if (*err == tests[which].expected_errcode) {
14834 fp->aux->stack_depth = tests[which].stack_depth;
14835 fp->aux->verifier_zext = !!(tests[which].aux &
14855 __u8 test_type = tests[which].aux & TEST_TYPE_MASK;
14901 * NOTE: Several sub-tests may be present, in which case
15139 for (i = 0; i < ARRAY_SIZE(tests); i++) {
15147 pr_info("#%d %s ", i, tests[i].descr);
15149 if (tests[i].fill_helper &&
15150 tests[i].fill_helper(&tests[i]) < 0) {
15157 if (tests[i].fill_helper) {
15158 kfree(tests[i].u.ptr.insns);
15159 tests[i].u.ptr.insns = NULL;
15177 err = run_one(fp, &tests[i]);
15251 * Tail call tests. Each test case may call any other test in the table,
15570 for (i = 0; i < ARRAY_SIZE(tests); i++) {
15571 if (!strcmp(tests[i].descr, test_name))
15598 valid_range = ARRAY_SIZE(tests);