Lines Matching refs:bpf_test
65 struct bpf_test {
81 int (*fill_helper)(struct bpf_test *self);
90 static int bpf_fill_maxinsns1(struct bpf_test *self)
110 static int bpf_fill_maxinsns2(struct bpf_test *self)
129 static int bpf_fill_maxinsns3(struct bpf_test *self)
156 static int bpf_fill_maxinsns4(struct bpf_test *self)
175 static int bpf_fill_maxinsns5(struct bpf_test *self)
198 static int bpf_fill_maxinsns6(struct bpf_test *self)
220 static int bpf_fill_maxinsns7(struct bpf_test *self)
246 static int bpf_fill_maxinsns8(struct bpf_test *self)
269 static int bpf_fill_maxinsns9(struct bpf_test *self)
295 static int bpf_fill_maxinsns10(struct bpf_test *self)
320 static int __bpf_fill_ja(struct bpf_test *self, unsigned int len,
349 static int bpf_fill_maxinsns11(struct bpf_test *self)
355 static int bpf_fill_maxinsns12(struct bpf_test *self)
378 static int bpf_fill_maxinsns13(struct bpf_test *self)
401 static int bpf_fill_ja(struct bpf_test *self)
407 static int bpf_fill_ld_abs_get_processor_id(struct bpf_test *self)
431 static int __bpf_fill_stxdw(struct bpf_test *self, int size)
457 static int bpf_fill_stxw(struct bpf_test *self)
462 static int bpf_fill_stxdw(struct bpf_test *self)
481 static int __bpf_fill_max_jmp(struct bpf_test *self, int jmp, int imm)
519 static int bpf_fill_max_jmp_taken(struct bpf_test *self)
525 static int bpf_fill_max_jmp_not_taken(struct bpf_test *self)
531 static int bpf_fill_max_jmp_always_taken(struct bpf_test *self)
537 static int bpf_fill_max_jmp_never_taken(struct bpf_test *self)
594 static int __bpf_fill_alu_shift(struct bpf_test *self, u8 op,
669 static int bpf_fill_alu64_lsh_imm(struct bpf_test *self)
674 static int bpf_fill_alu64_rsh_imm(struct bpf_test *self)
679 static int bpf_fill_alu64_arsh_imm(struct bpf_test *self)
684 static int bpf_fill_alu64_lsh_reg(struct bpf_test *self)
689 static int bpf_fill_alu64_rsh_reg(struct bpf_test *self)
694 static int bpf_fill_alu64_arsh_reg(struct bpf_test *self)
699 static int bpf_fill_alu32_lsh_imm(struct bpf_test *self)
704 static int bpf_fill_alu32_rsh_imm(struct bpf_test *self)
709 static int bpf_fill_alu32_arsh_imm(struct bpf_test *self)
714 static int bpf_fill_alu32_lsh_reg(struct bpf_test *self)
719 static int bpf_fill_alu32_rsh_reg(struct bpf_test *self)
724 static int bpf_fill_alu32_arsh_reg(struct bpf_test *self)
733 static int __bpf_fill_alu_shift_same_reg(struct bpf_test *self, u8 op,
779 static int bpf_fill_alu64_lsh_same_reg(struct bpf_test *self)
784 static int bpf_fill_alu64_rsh_same_reg(struct bpf_test *self)
789 static int bpf_fill_alu64_arsh_same_reg(struct bpf_test *self)
794 static int bpf_fill_alu32_lsh_same_reg(struct bpf_test *self)
799 static int bpf_fill_alu32_rsh_same_reg(struct bpf_test *self)
804 static int bpf_fill_alu32_arsh_same_reg(struct bpf_test *self)
821 static int __bpf_fill_pattern(struct bpf_test *self, void *arg,
823 int (*emit)(struct bpf_test*, void*,
916 static int __bpf_emit_alu64_imm(struct bpf_test *self, void *arg,
937 static int __bpf_emit_alu32_imm(struct bpf_test *self, void *arg,
958 static int __bpf_emit_alu64_reg(struct bpf_test *self, void *arg,
980 static int __bpf_emit_alu32_reg(struct bpf_test *self, void *arg,
1002 static int __bpf_fill_alu64_imm(struct bpf_test *self, int op)
1009 static int __bpf_fill_alu32_imm(struct bpf_test *self, int op)
1016 static int __bpf_fill_alu64_reg(struct bpf_test *self, int op)
1023 static int __bpf_fill_alu32_reg(struct bpf_test *self, int op)
1031 static int bpf_fill_alu64_mov_imm(struct bpf_test *self)
1036 static int bpf_fill_alu64_and_imm(struct bpf_test *self)
1041 static int bpf_fill_alu64_or_imm(struct bpf_test *self)
1046 static int bpf_fill_alu64_xor_imm(struct bpf_test *self)
1051 static int bpf_fill_alu64_add_imm(struct bpf_test *self)
1056 static int bpf_fill_alu64_sub_imm(struct bpf_test *self)
1061 static int bpf_fill_alu64_mul_imm(struct bpf_test *self)
1066 static int bpf_fill_alu64_div_imm(struct bpf_test *self)
1071 static int bpf_fill_alu64_mod_imm(struct bpf_test *self)
1077 static int bpf_fill_alu32_mov_imm(struct bpf_test *self)
1082 static int bpf_fill_alu32_and_imm(struct bpf_test *self)
1087 static int bpf_fill_alu32_or_imm(struct bpf_test *self)
1092 static int bpf_fill_alu32_xor_imm(struct bpf_test *self)
1097 static int bpf_fill_alu32_add_imm(struct bpf_test *self)
1102 static int bpf_fill_alu32_sub_imm(struct bpf_test *self)
1107 static int bpf_fill_alu32_mul_imm(struct bpf_test *self)
1112 static int bpf_fill_alu32_div_imm(struct bpf_test *self)
1117 static int bpf_fill_alu32_mod_imm(struct bpf_test *self)
1123 static int bpf_fill_alu64_mov_reg(struct bpf_test *self)
1128 static int bpf_fill_alu64_and_reg(struct bpf_test *self)
1133 static int bpf_fill_alu64_or_reg(struct bpf_test *self)
1138 static int bpf_fill_alu64_xor_reg(struct bpf_test *self)
1143 static int bpf_fill_alu64_add_reg(struct bpf_test *self)
1148 static int bpf_fill_alu64_sub_reg(struct bpf_test *self)
1153 static int bpf_fill_alu64_mul_reg(struct bpf_test *self)
1158 static int bpf_fill_alu64_div_reg(struct bpf_test *self)
1163 static int bpf_fill_alu64_mod_reg(struct bpf_test *self)
1169 static int bpf_fill_alu32_mov_reg(struct bpf_test *self)
1174 static int bpf_fill_alu32_and_reg(struct bpf_test *self)
1179 static int bpf_fill_alu32_or_reg(struct bpf_test *self)
1184 static int bpf_fill_alu32_xor_reg(struct bpf_test *self)
1189 static int bpf_fill_alu32_add_reg(struct bpf_test *self)
1194 static int bpf_fill_alu32_sub_reg(struct bpf_test *self)
1199 static int bpf_fill_alu32_mul_reg(struct bpf_test *self)
1204 static int bpf_fill_alu32_div_reg(struct bpf_test *self)
1209 static int bpf_fill_alu32_mod_reg(struct bpf_test *self)
1218 static int __bpf_fill_alu_imm_regs(struct bpf_test *self, u8 op, bool alu32)
1276 static int bpf_fill_alu64_mov_imm_regs(struct bpf_test *self)
1281 static int bpf_fill_alu64_and_imm_regs(struct bpf_test *self)
1286 static int bpf_fill_alu64_or_imm_regs(struct bpf_test *self)
1291 static int bpf_fill_alu64_xor_imm_regs(struct bpf_test *self)
1296 static int bpf_fill_alu64_lsh_imm_regs(struct bpf_test *self)
1301 static int bpf_fill_alu64_rsh_imm_regs(struct bpf_test *self)
1306 static int bpf_fill_alu64_arsh_imm_regs(struct bpf_test *self)
1311 static int bpf_fill_alu64_add_imm_regs(struct bpf_test *self)
1316 static int bpf_fill_alu64_sub_imm_regs(struct bpf_test *self)
1321 static int bpf_fill_alu64_mul_imm_regs(struct bpf_test *self)
1326 static int bpf_fill_alu64_div_imm_regs(struct bpf_test *self)
1331 static int bpf_fill_alu64_mod_imm_regs(struct bpf_test *self)
1337 static int bpf_fill_alu32_mov_imm_regs(struct bpf_test *self)
1342 static int bpf_fill_alu32_and_imm_regs(struct bpf_test *self)
1347 static int bpf_fill_alu32_or_imm_regs(struct bpf_test *self)
1352 static int bpf_fill_alu32_xor_imm_regs(struct bpf_test *self)
1357 static int bpf_fill_alu32_lsh_imm_regs(struct bpf_test *self)
1362 static int bpf_fill_alu32_rsh_imm_regs(struct bpf_test *self)
1367 static int bpf_fill_alu32_arsh_imm_regs(struct bpf_test *self)
1372 static int bpf_fill_alu32_add_imm_regs(struct bpf_test *self)
1377 static int bpf_fill_alu32_sub_imm_regs(struct bpf_test *self)
1382 static int bpf_fill_alu32_mul_imm_regs(struct bpf_test *self)
1387 static int bpf_fill_alu32_div_imm_regs(struct bpf_test *self)
1392 static int bpf_fill_alu32_mod_imm_regs(struct bpf_test *self)
1401 static int __bpf_fill_alu_reg_pairs(struct bpf_test *self, u8 op, bool alu32)
1468 static int bpf_fill_alu64_mov_reg_pairs(struct bpf_test *self)
1473 static int bpf_fill_alu64_and_reg_pairs(struct bpf_test *self)
1478 static int bpf_fill_alu64_or_reg_pairs(struct bpf_test *self)
1483 static int bpf_fill_alu64_xor_reg_pairs(struct bpf_test *self)
1488 static int bpf_fill_alu64_lsh_reg_pairs(struct bpf_test *self)
1493 static int bpf_fill_alu64_rsh_reg_pairs(struct bpf_test *self)
1498 static int bpf_fill_alu64_arsh_reg_pairs(struct bpf_test *self)
1503 static int bpf_fill_alu64_add_reg_pairs(struct bpf_test *self)
1508 static int bpf_fill_alu64_sub_reg_pairs(struct bpf_test *self)
1513 static int bpf_fill_alu64_mul_reg_pairs(struct bpf_test *self)
1518 static int bpf_fill_alu64_div_reg_pairs(struct bpf_test *self)
1523 static int bpf_fill_alu64_mod_reg_pairs(struct bpf_test *self)
1529 static int bpf_fill_alu32_mov_reg_pairs(struct bpf_test *self)
1534 static int bpf_fill_alu32_and_reg_pairs(struct bpf_test *self)
1539 static int bpf_fill_alu32_or_reg_pairs(struct bpf_test *self)
1544 static int bpf_fill_alu32_xor_reg_pairs(struct bpf_test *self)
1549 static int bpf_fill_alu32_lsh_reg_pairs(struct bpf_test *self)
1554 static int bpf_fill_alu32_rsh_reg_pairs(struct bpf_test *self)
1559 static int bpf_fill_alu32_arsh_reg_pairs(struct bpf_test *self)
1564 static int bpf_fill_alu32_add_reg_pairs(struct bpf_test *self)
1569 static int bpf_fill_alu32_sub_reg_pairs(struct bpf_test *self)
1574 static int bpf_fill_alu32_mul_reg_pairs(struct bpf_test *self)
1579 static int bpf_fill_alu32_div_reg_pairs(struct bpf_test *self)
1584 static int bpf_fill_alu32_mod_reg_pairs(struct bpf_test *self)
1594 static int __bpf_emit_atomic64(struct bpf_test *self, void *arg,
1641 static int __bpf_emit_atomic32(struct bpf_test *self, void *arg,
1688 static int __bpf_emit_cmpxchg64(struct bpf_test *self, void *arg,
1728 static int __bpf_emit_cmpxchg32(struct bpf_test *self, void *arg,
1771 static int __bpf_fill_atomic64(struct bpf_test *self, int op)
1778 static int __bpf_fill_atomic32(struct bpf_test *self, int op)
1786 static int bpf_fill_atomic64_add(struct bpf_test *self)
1791 static int bpf_fill_atomic64_and(struct bpf_test *self)
1796 static int bpf_fill_atomic64_or(struct bpf_test *self)
1801 static int bpf_fill_atomic64_xor(struct bpf_test *self)
1806 static int bpf_fill_atomic64_add_fetch(struct bpf_test *self)
1811 static int bpf_fill_atomic64_and_fetch(struct bpf_test *self)
1816 static int bpf_fill_atomic64_or_fetch(struct bpf_test *self)
1821 static int bpf_fill_atomic64_xor_fetch(struct bpf_test *self)
1826 static int bpf_fill_atomic64_xchg(struct bpf_test *self)
1831 static int bpf_fill_cmpxchg64(struct bpf_test *self)
1838 static int bpf_fill_atomic32_add(struct bpf_test *self)
1843 static int bpf_fill_atomic32_and(struct bpf_test *self)
1848 static int bpf_fill_atomic32_or(struct bpf_test *self)
1853 static int bpf_fill_atomic32_xor(struct bpf_test *self)
1858 static int bpf_fill_atomic32_add_fetch(struct bpf_test *self)
1863 static int bpf_fill_atomic32_and_fetch(struct bpf_test *self)
1868 static int bpf_fill_atomic32_or_fetch(struct bpf_test *self)
1873 static int bpf_fill_atomic32_xor_fetch(struct bpf_test *self)
1878 static int bpf_fill_atomic32_xchg(struct bpf_test *self)
1883 static int bpf_fill_cmpxchg32(struct bpf_test *self)
1893 static int __bpf_fill_atomic_reg_pairs(struct bpf_test *self, u8 width, u8 op)
2028 static int bpf_fill_atomic64_add_reg_pairs(struct bpf_test *self)
2033 static int bpf_fill_atomic64_and_reg_pairs(struct bpf_test *self)
2038 static int bpf_fill_atomic64_or_reg_pairs(struct bpf_test *self)
2043 static int bpf_fill_atomic64_xor_reg_pairs(struct bpf_test *self)
2048 static int bpf_fill_atomic64_add_fetch_reg_pairs(struct bpf_test *self)
2053 static int bpf_fill_atomic64_and_fetch_reg_pairs(struct bpf_test *self)
2058 static int bpf_fill_atomic64_or_fetch_reg_pairs(struct bpf_test *self)
2063 static int bpf_fill_atomic64_xor_fetch_reg_pairs(struct bpf_test *self)
2068 static int bpf_fill_atomic64_xchg_reg_pairs(struct bpf_test *self)
2073 static int bpf_fill_atomic64_cmpxchg_reg_pairs(struct bpf_test *self)
2079 static int bpf_fill_atomic32_add_reg_pairs(struct bpf_test *self)
2084 static int bpf_fill_atomic32_and_reg_pairs(struct bpf_test *self)
2089 static int bpf_fill_atomic32_or_reg_pairs(struct bpf_test *self)
2094 static int bpf_fill_atomic32_xor_reg_pairs(struct bpf_test *self)
2099 static int bpf_fill_atomic32_add_fetch_reg_pairs(struct bpf_test *self)
2104 static int bpf_fill_atomic32_and_fetch_reg_pairs(struct bpf_test *self)
2109 static int bpf_fill_atomic32_or_fetch_reg_pairs(struct bpf_test *self)
2114 static int bpf_fill_atomic32_xor_fetch_reg_pairs(struct bpf_test *self)
2119 static int bpf_fill_atomic32_xchg_reg_pairs(struct bpf_test *self)
2124 static int bpf_fill_atomic32_cmpxchg_reg_pairs(struct bpf_test *self)
2138 static int bpf_fill_ld_imm64_magn(struct bpf_test *self)
2190 static int __bpf_fill_ld_imm64_bytes(struct bpf_test *self,
2246 static int bpf_fill_ld_imm64_checker(struct bpf_test *self)
2251 static int bpf_fill_ld_imm64_pos_neg(struct bpf_test *self)
2256 static int bpf_fill_ld_imm64_pos_zero(struct bpf_test *self)
2261 static int bpf_fill_ld_imm64_neg_zero(struct bpf_test *self)
2302 static int __bpf_emit_jmp_imm(struct bpf_test *self, void *arg,
2325 static int __bpf_emit_jmp32_imm(struct bpf_test *self, void *arg,
2346 static int __bpf_emit_jmp_reg(struct bpf_test *self, void *arg,
2368 static int __bpf_emit_jmp32_reg(struct bpf_test *self, void *arg,
2390 static int __bpf_fill_jmp_imm(struct bpf_test *self, int op)
2397 static int __bpf_fill_jmp32_imm(struct bpf_test *self, int op)
2404 static int __bpf_fill_jmp_reg(struct bpf_test *self, int op)
2411 static int __bpf_fill_jmp32_reg(struct bpf_test *self, int op)
2419 static int bpf_fill_jmp_jset_imm(struct bpf_test *self)
2424 static int bpf_fill_jmp_jeq_imm(struct bpf_test *self)
2429 static int bpf_fill_jmp_jne_imm(struct bpf_test *self)
2434 static int bpf_fill_jmp_jgt_imm(struct bpf_test *self)
2439 static int bpf_fill_jmp_jge_imm(struct bpf_test *self)
2444 static int bpf_fill_jmp_jlt_imm(struct bpf_test *self)
2449 static int bpf_fill_jmp_jle_imm(struct bpf_test *self)
2454 static int bpf_fill_jmp_jsgt_imm(struct bpf_test *self)
2459 static int bpf_fill_jmp_jsge_imm(struct bpf_test *self)
2464 static int bpf_fill_jmp_jslt_imm(struct bpf_test *self)
2469 static int bpf_fill_jmp_jsle_imm(struct bpf_test *self)
2475 static int bpf_fill_jmp32_jset_imm(struct bpf_test *self)
2480 static int bpf_fill_jmp32_jeq_imm(struct bpf_test *self)
2485 static int bpf_fill_jmp32_jne_imm(struct bpf_test *self)
2490 static int bpf_fill_jmp32_jgt_imm(struct bpf_test *self)
2495 static int bpf_fill_jmp32_jge_imm(struct bpf_test *self)
2500 static int bpf_fill_jmp32_jlt_imm(struct bpf_test *self)
2505 static int bpf_fill_jmp32_jle_imm(struct bpf_test *self)
2510 static int bpf_fill_jmp32_jsgt_imm(struct bpf_test *self)
2515 static int bpf_fill_jmp32_jsge_imm(struct bpf_test *self)
2520 static int bpf_fill_jmp32_jslt_imm(struct bpf_test *self)
2525 static int bpf_fill_jmp32_jsle_imm(struct bpf_test *self)
2531 static int bpf_fill_jmp_jset_reg(struct bpf_test *self)
2536 static int bpf_fill_jmp_jeq_reg(struct bpf_test *self)
2541 static int bpf_fill_jmp_jne_reg(struct bpf_test *self)
2546 static int bpf_fill_jmp_jgt_reg(struct bpf_test *self)
2551 static int bpf_fill_jmp_jge_reg(struct bpf_test *self)
2556 static int bpf_fill_jmp_jlt_reg(struct bpf_test *self)
2561 static int bpf_fill_jmp_jle_reg(struct bpf_test *self)
2566 static int bpf_fill_jmp_jsgt_reg(struct bpf_test *self)
2571 static int bpf_fill_jmp_jsge_reg(struct bpf_test *self)
2576 static int bpf_fill_jmp_jslt_reg(struct bpf_test *self)
2581 static int bpf_fill_jmp_jsle_reg(struct bpf_test *self)
2587 static int bpf_fill_jmp32_jset_reg(struct bpf_test *self)
2592 static int bpf_fill_jmp32_jeq_reg(struct bpf_test *self)
2597 static int bpf_fill_jmp32_jne_reg(struct bpf_test *self)
2602 static int bpf_fill_jmp32_jgt_reg(struct bpf_test *self)
2607 static int bpf_fill_jmp32_jge_reg(struct bpf_test *self)
2612 static int bpf_fill_jmp32_jlt_reg(struct bpf_test *self)
2617 static int bpf_fill_jmp32_jle_reg(struct bpf_test *self)
2622 static int bpf_fill_jmp32_jsgt_reg(struct bpf_test *self)
2627 static int bpf_fill_jmp32_jsge_reg(struct bpf_test *self)
2632 static int bpf_fill_jmp32_jslt_reg(struct bpf_test *self)
2637 static int bpf_fill_jmp32_jsle_reg(struct bpf_test *self)
2698 static int __bpf_fill_staggered_jumps(struct bpf_test *self,
2743 static int bpf_fill_staggered_ja(struct bpf_test *self)
2751 static int bpf_fill_staggered_jeq_imm(struct bpf_test *self)
2758 static int bpf_fill_staggered_jne_imm(struct bpf_test *self)
2765 static int bpf_fill_staggered_jset_imm(struct bpf_test *self)
2772 static int bpf_fill_staggered_jgt_imm(struct bpf_test *self)
2779 static int bpf_fill_staggered_jge_imm(struct bpf_test *self)
2786 static int bpf_fill_staggered_jlt_imm(struct bpf_test *self)
2793 static int bpf_fill_staggered_jle_imm(struct bpf_test *self)
2800 static int bpf_fill_staggered_jsgt_imm(struct bpf_test *self)
2807 static int bpf_fill_staggered_jsge_imm(struct bpf_test *self)
2814 static int bpf_fill_staggered_jslt_imm(struct bpf_test *self)
2821 static int bpf_fill_staggered_jsle_imm(struct bpf_test *self)
2829 static int bpf_fill_staggered_jeq_reg(struct bpf_test *self)
2836 static int bpf_fill_staggered_jne_reg(struct bpf_test *self)
2843 static int bpf_fill_staggered_jset_reg(struct bpf_test *self)
2850 static int bpf_fill_staggered_jgt_reg(struct bpf_test *self)
2857 static int bpf_fill_staggered_jge_reg(struct bpf_test *self)
2864 static int bpf_fill_staggered_jlt_reg(struct bpf_test *self)
2871 static int bpf_fill_staggered_jle_reg(struct bpf_test *self)
2878 static int bpf_fill_staggered_jsgt_reg(struct bpf_test *self)
2885 static int bpf_fill_staggered_jsge_reg(struct bpf_test *self)
2892 static int bpf_fill_staggered_jslt_reg(struct bpf_test *self)
2899 static int bpf_fill_staggered_jsle_reg(struct bpf_test *self)
2907 static int bpf_fill_staggered_jeq32_imm(struct bpf_test *self)
2914 static int bpf_fill_staggered_jne32_imm(struct bpf_test *self)
2921 static int bpf_fill_staggered_jset32_imm(struct bpf_test *self)
2928 static int bpf_fill_staggered_jgt32_imm(struct bpf_test *self)
2935 static int bpf_fill_staggered_jge32_imm(struct bpf_test *self)
2942 static int bpf_fill_staggered_jlt32_imm(struct bpf_test *self)
2949 static int bpf_fill_staggered_jle32_imm(struct bpf_test *self)
2956 static int bpf_fill_staggered_jsgt32_imm(struct bpf_test *self)
2963 static int bpf_fill_staggered_jsge32_imm(struct bpf_test *self)
2970 static int bpf_fill_staggered_jslt32_imm(struct bpf_test *self)
2977 static int bpf_fill_staggered_jsle32_imm(struct bpf_test *self)
2985 static int bpf_fill_staggered_jeq32_reg(struct bpf_test *self)
2992 static int bpf_fill_staggered_jne32_reg(struct bpf_test *self)
2999 static int bpf_fill_staggered_jset32_reg(struct bpf_test *self)
3006 static int bpf_fill_staggered_jgt32_reg(struct bpf_test *self)
3013 static int bpf_fill_staggered_jge32_reg(struct bpf_test *self)
3020 static int bpf_fill_staggered_jlt32_reg(struct bpf_test *self)
3027 static int bpf_fill_staggered_jle32_reg(struct bpf_test *self)
3034 static int bpf_fill_staggered_jsgt32_reg(struct bpf_test *self)
3041 static int bpf_fill_staggered_jsge32_reg(struct bpf_test *self)
3048 static int bpf_fill_staggered_jslt32_reg(struct bpf_test *self)
3055 static int bpf_fill_staggered_jsle32_reg(struct bpf_test *self)
3063 static struct bpf_test tests[] = {
14359 static void *generate_test_data(struct bpf_test *test, int sub)
14398 static void release_test_data(const struct bpf_test *test, void *data)
14535 static int run_one(const struct bpf_prog *fp, struct bpf_test *test)