Lines Matching refs:program
656 let mut program = BpfCode::new(); in call_immediate() localVariable
657 program.call().set_imm(0x11_22_33_44).push(); in call_immediate()
660 program.into_bytes(), in call_immediate()
667 let mut program = BpfCode::new(); in exit_operation() localVariable
668 program.exit().push(); in exit_operation()
671 program.into_bytes(), in exit_operation()
685 let mut program = BpfCode::new(); in jump_on_dst_equals_src() localVariable
686 program in jump_on_dst_equals_src()
693 program.into_bytes(), in jump_on_dst_equals_src()
700 let mut program = BpfCode::new(); in jump_on_dst_greater_than_src() localVariable
701 program in jump_on_dst_greater_than_src()
708 program.into_bytes(), in jump_on_dst_greater_than_src()
715 let mut program = BpfCode::new(); in jump_on_dst_greater_or_equals_to_src() localVariable
716 program in jump_on_dst_greater_or_equals_to_src()
723 program.into_bytes(), in jump_on_dst_greater_or_equals_to_src()
730 let mut program = BpfCode::new(); in jump_on_dst_lower_than_src() localVariable
731 program in jump_on_dst_lower_than_src()
738 program.into_bytes(), in jump_on_dst_lower_than_src()
745 let mut program = BpfCode::new(); in jump_on_dst_lower_or_equals_to_src() localVariable
746 program in jump_on_dst_lower_or_equals_to_src()
753 program.into_bytes(), in jump_on_dst_lower_or_equals_to_src()
760 let mut program = BpfCode::new(); in jump_on_dst_bit_and_with_src_not_equal_zero() localVariable
761 program in jump_on_dst_bit_and_with_src_not_equal_zero()
768 program.into_bytes(), in jump_on_dst_bit_and_with_src_not_equal_zero()
775 let mut program = BpfCode::new(); in jump_on_dst_not_equals_src() localVariable
776 program in jump_on_dst_not_equals_src()
783 program.into_bytes(), in jump_on_dst_not_equals_src()
790 let mut program = BpfCode::new(); in jump_on_dst_greater_than_src_signed() localVariable
791 program in jump_on_dst_greater_than_src_signed()
798 program.into_bytes(), in jump_on_dst_greater_than_src_signed()
805 let mut program = BpfCode::new(); in jump_on_dst_greater_or_equals_src_signed() localVariable
806 program in jump_on_dst_greater_or_equals_src_signed()
813 program.into_bytes(), in jump_on_dst_greater_or_equals_src_signed()
820 let mut program = BpfCode::new(); in jump_on_dst_lower_than_src_signed() localVariable
821 program in jump_on_dst_lower_than_src_signed()
828 program.into_bytes(), in jump_on_dst_lower_than_src_signed()
835 let mut program = BpfCode::new(); in jump_on_dst_lower_or_equals_src_signed() localVariable
836 program in jump_on_dst_lower_or_equals_src_signed()
843 program.into_bytes(), in jump_on_dst_lower_or_equals_src_signed()
855 let mut program = BpfCode::new(); in jump_to_label() localVariable
856 program.jump_unconditional().set_off(0x00_11).push(); in jump_to_label()
859 program.into_bytes(), in jump_to_label()
866 let mut program = BpfCode::new(); in jump_on_dst_equals_const() localVariable
867 program in jump_on_dst_equals_const()
874 program.into_bytes(), in jump_on_dst_equals_const()
881 let mut program = BpfCode::new(); in jump_on_dst_greater_than_const() localVariable
882 program in jump_on_dst_greater_than_const()
889 program.into_bytes(), in jump_on_dst_greater_than_const()
896 let mut program = BpfCode::new(); in jump_on_dst_greater_or_equals_to_const() localVariable
897 program in jump_on_dst_greater_or_equals_to_const()
904 program.into_bytes(), in jump_on_dst_greater_or_equals_to_const()
911 let mut program = BpfCode::new(); in jump_on_dst_lower_than_const() localVariable
912 program in jump_on_dst_lower_than_const()
919 program.into_bytes(), in jump_on_dst_lower_than_const()
926 let mut program = BpfCode::new(); in jump_on_dst_lower_or_equals_to_const() localVariable
927 program in jump_on_dst_lower_or_equals_to_const()
934 program.into_bytes(), in jump_on_dst_lower_or_equals_to_const()
941 let mut program = BpfCode::new(); in jump_on_dst_bit_and_with_const_not_equal_zero() localVariable
942 program in jump_on_dst_bit_and_with_const_not_equal_zero()
948 program.into_bytes(), in jump_on_dst_bit_and_with_const_not_equal_zero()
955 let mut program = BpfCode::new(); in jump_on_dst_not_equals_const() localVariable
956 program in jump_on_dst_not_equals_const()
962 program.into_bytes(), in jump_on_dst_not_equals_const()
969 let mut program = BpfCode::new(); in jump_on_dst_greater_than_const_signed() localVariable
970 program in jump_on_dst_greater_than_const_signed()
976 program.into_bytes(), in jump_on_dst_greater_than_const_signed()
983 let mut program = BpfCode::new(); in jump_on_dst_greater_or_equals_src_signed() localVariable
984 program in jump_on_dst_greater_or_equals_src_signed()
990 program.into_bytes(), in jump_on_dst_greater_or_equals_src_signed()
997 let mut program = BpfCode::new(); in jump_on_dst_lower_than_const_signed() localVariable
998 program in jump_on_dst_lower_than_const_signed()
1004 program.into_bytes(), in jump_on_dst_lower_than_const_signed()
1011 let mut program = BpfCode::new(); in jump_on_dst_lower_or_equals_src_signed() localVariable
1012 program in jump_on_dst_lower_or_equals_src_signed()
1018 program.into_bytes(), in jump_on_dst_lower_or_equals_src_signed()
1031 let mut program = BpfCode::new(); in store_word_from_dst_into_immediate_address() localVariable
1032 program in store_word_from_dst_into_immediate_address()
1040 program.into_bytes(), in store_word_from_dst_into_immediate_address()
1047 let mut program = BpfCode::new(); in store_half_word_from_dst_into_immediate_address() localVariable
1048 program in store_half_word_from_dst_into_immediate_address()
1055 program.into_bytes(), in store_half_word_from_dst_into_immediate_address()
1062 let mut program = BpfCode::new(); in store_byte_from_dst_into_immediate_address() localVariable
1063 program.store(MemSize::Byte).push(); in store_byte_from_dst_into_immediate_address()
1066 program.into_bytes(), in store_byte_from_dst_into_immediate_address()
1073 let mut program = BpfCode::new(); in store_double_word_from_dst_into_immediate_address() localVariable
1074 program.store(MemSize::DoubleWord).push(); in store_double_word_from_dst_into_immediate_address()
1077 program.into_bytes(), in store_double_word_from_dst_into_immediate_address()
1084 let mut program = BpfCode::new(); in store_word_from_dst_into_src_address() localVariable
1085 program in store_word_from_dst_into_src_address()
1092 program.into_bytes(), in store_word_from_dst_into_src_address()
1099 let mut program = BpfCode::new(); in store_half_word_from_dst_into_src_address() localVariable
1100 program.store_x(MemSize::HalfWord).push(); in store_half_word_from_dst_into_src_address()
1103 program.into_bytes(), in store_half_word_from_dst_into_src_address()
1110 let mut program = BpfCode::new(); in store_byte_from_dst_into_src_address() localVariable
1111 program.store_x(MemSize::Byte).push(); in store_byte_from_dst_into_src_address()
1114 program.into_bytes(), in store_byte_from_dst_into_src_address()
1121 let mut program = BpfCode::new(); in store_double_word_from_dst_into_src_address() localVariable
1122 program.store_x(MemSize::DoubleWord).push(); in store_double_word_from_dst_into_src_address()
1125 program.into_bytes(), in store_double_word_from_dst_into_src_address()
1139 let mut program = BpfCode::new(); in load_word_from_set_src_with_offset() localVariable
1140 program in load_word_from_set_src_with_offset()
1148 program.into_bytes(), in load_word_from_set_src_with_offset()
1155 let mut program = BpfCode::new(); in load_half_word_from_set_src_with_offset() localVariable
1156 program in load_half_word_from_set_src_with_offset()
1164 program.into_bytes(), in load_half_word_from_set_src_with_offset()
1171 let mut program = BpfCode::new(); in load_byte_from_set_src_with_offset() localVariable
1172 program in load_byte_from_set_src_with_offset()
1180 program.into_bytes(), in load_byte_from_set_src_with_offset()
1187 let mut program = BpfCode::new(); in load_double_word_from_set_src_with_offset() localVariable
1188 program in load_double_word_from_set_src_with_offset()
1196 program.into_bytes(), in load_double_word_from_set_src_with_offset()
1208 let mut program = BpfCode::new(); in load_double_word() localVariable
1209 program in load_double_word()
1216 program.into_bytes(), in load_double_word()
1223 let mut program = BpfCode::new(); in load_abs_word() localVariable
1224 program.load_abs(MemSize::Word).push(); in load_abs_word()
1227 program.into_bytes(), in load_abs_word()
1234 let mut program = BpfCode::new(); in load_abs_half_word() localVariable
1235 program.load_abs(MemSize::HalfWord).set_dst(0x05).push(); in load_abs_half_word()
1238 program.into_bytes(), in load_abs_half_word()
1245 let mut program = BpfCode::new(); in load_abs_byte() localVariable
1246 program.load_abs(MemSize::Byte).set_dst(0x01).push(); in load_abs_byte()
1249 program.into_bytes(), in load_abs_byte()
1256 let mut program = BpfCode::new(); in load_abs_double_word() localVariable
1257 program in load_abs_double_word()
1264 program.into_bytes(), in load_abs_double_word()
1271 let mut program = BpfCode::new(); in load_indirect_word() localVariable
1272 program.load_ind(MemSize::Word).push(); in load_indirect_word()
1275 program.into_bytes(), in load_indirect_word()
1282 let mut program = BpfCode::new(); in load_indirect_half_word() localVariable
1283 program.load_ind(MemSize::HalfWord).push(); in load_indirect_half_word()
1286 program.into_bytes(), in load_indirect_half_word()
1293 let mut program = BpfCode::new(); in load_indirect_byte() localVariable
1294 program.load_ind(MemSize::Byte).push(); in load_indirect_byte()
1297 program.into_bytes(), in load_indirect_byte()
1304 let mut program = BpfCode::new(); in load_indirect_double_word() localVariable
1305 program.load_ind(MemSize::DoubleWord).push(); in load_indirect_double_word()
1308 program.into_bytes(), in load_indirect_double_word()
1321 let mut program = BpfCode::new(); in convert_host_to_little_endian_16bits() localVariable
1322 program in convert_host_to_little_endian_16bits()
1329 program.into_bytes(), in convert_host_to_little_endian_16bits()
1336 let mut program = BpfCode::new(); in convert_host_to_little_endian_32bits() localVariable
1337 program in convert_host_to_little_endian_32bits()
1344 program.into_bytes(), in convert_host_to_little_endian_32bits()
1351 let mut program = BpfCode::new(); in convert_host_to_little_endian_64bit() localVariable
1352 program in convert_host_to_little_endian_64bit()
1359 program.into_bytes(), in convert_host_to_little_endian_64bit()
1366 let mut program = BpfCode::new(); in convert_host_to_big_endian_16bits() localVariable
1367 program in convert_host_to_big_endian_16bits()
1374 program.into_bytes(), in convert_host_to_big_endian_16bits()
1381 let mut program = BpfCode::new(); in convert_host_to_big_endian_32bits() localVariable
1382 program in convert_host_to_big_endian_32bits()
1389 program.into_bytes(), in convert_host_to_big_endian_32bits()
1396 let mut program = BpfCode::new(); in convert_host_to_big_endian_64bit() localVariable
1397 program in convert_host_to_big_endian_64bit()
1404 program.into_bytes(), in convert_host_to_big_endian_64bit()
1420 let mut program = BpfCode::new(); in move_and_add_const_to_register() localVariable
1421 program in move_and_add_const_to_register()
1428 program.into_bytes(), in move_and_add_const_to_register()
1435 let mut program = BpfCode::new(); in move_sub_const_to_register() localVariable
1436 program in move_sub_const_to_register()
1443 program.into_bytes(), in move_sub_const_to_register()
1450 let mut program = BpfCode::new(); in move_mul_const_to_register() localVariable
1451 program in move_mul_const_to_register()
1458 program.into_bytes(), in move_mul_const_to_register()
1465 let mut program = BpfCode::new(); in move_div_constant_to_register() localVariable
1466 program in move_div_constant_to_register()
1473 program.into_bytes(), in move_div_constant_to_register()
1480 let mut program = BpfCode::new(); in move_bit_or_const_to_register() localVariable
1481 program in move_bit_or_const_to_register()
1488 program.into_bytes(), in move_bit_or_const_to_register()
1495 let mut program = BpfCode::new(); in move_bit_and_const_to_register() localVariable
1496 program in move_bit_and_const_to_register()
1503 program.into_bytes(), in move_bit_and_const_to_register()
1510 let mut program = BpfCode::new(); in move_left_shift_const_to_register() localVariable
1511 program in move_left_shift_const_to_register()
1517 program.into_bytes(), in move_left_shift_const_to_register()
1524 let mut program = BpfCode::new(); in move_logical_right_shift_const_to_register() localVariable
1525 program in move_logical_right_shift_const_to_register()
1531 program.into_bytes(), in move_logical_right_shift_const_to_register()
1538 let mut program = BpfCode::new(); in move_negate_register() localVariable
1539 program.negate(Arch::X64).set_dst(0x02).push(); in move_negate_register()
1542 program.into_bytes(), in move_negate_register()
1549 let mut program = BpfCode::new(); in move_mod_const_to_register() localVariable
1550 program.modulo(Source::Imm, Arch::X64).set_dst(0x02).push(); in move_mod_const_to_register()
1553 program.into_bytes(), in move_mod_const_to_register()
1560 let mut program = BpfCode::new(); in move_bit_xor_const_to_register() localVariable
1561 program.bit_xor(Source::Imm, Arch::X64).set_dst(0x03).push(); in move_bit_xor_const_to_register()
1564 program.into_bytes(), in move_bit_xor_const_to_register()
1571 let mut program = BpfCode::new(); in move_const_to_register() localVariable
1572 program in move_const_to_register()
1579 program.into_bytes(), in move_const_to_register()
1586 let mut program = BpfCode::new(); in move_signed_right_shift_const_to_register() localVariable
1587 program in move_signed_right_shift_const_to_register()
1593 program.into_bytes(), in move_signed_right_shift_const_to_register()
1605 let mut program = BpfCode::new(); in move_and_add_from_register() localVariable
1606 program in move_and_add_from_register()
1613 program.into_bytes(), in move_and_add_from_register()
1620 let mut program = BpfCode::new(); in move_sub_from_register_to_register() localVariable
1621 program in move_sub_from_register_to_register()
1628 program.into_bytes(), in move_sub_from_register_to_register()
1635 let mut program = BpfCode::new(); in move_mul_from_register_to_register() localVariable
1636 program in move_mul_from_register_to_register()
1643 program.into_bytes(), in move_mul_from_register_to_register()
1650 let mut program = BpfCode::new(); in move_div_from_register_to_register() localVariable
1651 program in move_div_from_register_to_register()
1658 program.into_bytes(), in move_div_from_register_to_register()
1665 let mut program = BpfCode::new(); in move_bit_or_from_register_to_register() localVariable
1666 program in move_bit_or_from_register_to_register()
1673 program.into_bytes(), in move_bit_or_from_register_to_register()
1680 let mut program = BpfCode::new(); in move_bit_and_from_register_to_register() localVariable
1681 program in move_bit_and_from_register_to_register()
1688 program.into_bytes(), in move_bit_and_from_register_to_register()
1695 let mut program = BpfCode::new(); in move_left_shift_from_register_to_register() localVariable
1696 program in move_left_shift_from_register_to_register()
1703 program.into_bytes(), in move_left_shift_from_register_to_register()
1710 let mut program = BpfCode::new(); in move_logical_right_shift_from_register_to_register() localVariable
1711 program in move_logical_right_shift_from_register_to_register()
1718 program.into_bytes(), in move_logical_right_shift_from_register_to_register()
1725 let mut program = BpfCode::new(); in move_mod_from_register_to_register() localVariable
1726 program in move_mod_from_register_to_register()
1733 program.into_bytes(), in move_mod_from_register_to_register()
1740 let mut program = BpfCode::new(); in move_bit_xor_from_register_to_register() localVariable
1741 program in move_bit_xor_from_register_to_register()
1748 program.into_bytes(), in move_bit_xor_from_register_to_register()
1755 let mut program = BpfCode::new(); in move_from_register_to_another_register() localVariable
1756 program.mov(Source::Reg, Arch::X64).set_src(0x01).push(); in move_from_register_to_another_register()
1759 program.into_bytes(), in move_from_register_to_another_register()
1766 let mut program = BpfCode::new(); in move_signed_right_shift_from_register_to_register() localVariable
1767 program in move_signed_right_shift_from_register_to_register()
1774 program.into_bytes(), in move_signed_right_shift_from_register_to_register()
1789 let mut program = BpfCode::new(); in move_and_add_const_to_register() localVariable
1790 program in move_and_add_const_to_register()
1797 program.into_bytes(), in move_and_add_const_to_register()
1804 let mut program = BpfCode::new(); in move_sub_const_to_register() localVariable
1805 program in move_sub_const_to_register()
1812 program.into_bytes(), in move_sub_const_to_register()
1819 let mut program = BpfCode::new(); in move_mul_const_to_register() localVariable
1820 program in move_mul_const_to_register()
1827 program.into_bytes(), in move_mul_const_to_register()
1834 let mut program = BpfCode::new(); in move_div_constant_to_register() localVariable
1835 program in move_div_constant_to_register()
1842 program.into_bytes(), in move_div_constant_to_register()
1849 let mut program = BpfCode::new(); in move_bit_or_const_to_register() localVariable
1850 program in move_bit_or_const_to_register()
1857 program.into_bytes(), in move_bit_or_const_to_register()
1864 let mut program = BpfCode::new(); in move_bit_and_const_to_register() localVariable
1865 program in move_bit_and_const_to_register()
1872 program.into_bytes(), in move_bit_and_const_to_register()
1879 let mut program = BpfCode::new(); in move_left_shift_const_to_register() localVariable
1880 program in move_left_shift_const_to_register()
1886 program.into_bytes(), in move_left_shift_const_to_register()
1893 let mut program = BpfCode::new(); in move_logical_right_shift_const_to_register() localVariable
1894 program in move_logical_right_shift_const_to_register()
1900 program.into_bytes(), in move_logical_right_shift_const_to_register()
1907 let mut program = BpfCode::new(); in move_negate_register() localVariable
1908 program.negate(Arch::X32).set_dst(0x02).push(); in move_negate_register()
1911 program.into_bytes(), in move_negate_register()
1918 let mut program = BpfCode::new(); in move_mod_const_to_register() localVariable
1919 program.modulo(Source::Imm, Arch::X32).set_dst(0x02).push(); in move_mod_const_to_register()
1922 program.into_bytes(), in move_mod_const_to_register()
1929 let mut program = BpfCode::new(); in move_bit_xor_const_to_register() localVariable
1930 program.bit_xor(Source::Imm, Arch::X32).set_dst(0x03).push(); in move_bit_xor_const_to_register()
1933 program.into_bytes(), in move_bit_xor_const_to_register()
1940 let mut program = BpfCode::new(); in move_const_to_register() localVariable
1941 program in move_const_to_register()
1948 program.into_bytes(), in move_const_to_register()
1955 let mut program = BpfCode::new(); in move_signed_right_shift_const_to_register() localVariable
1956 program in move_signed_right_shift_const_to_register()
1962 program.into_bytes(), in move_signed_right_shift_const_to_register()
1974 let mut program = BpfCode::new(); in move_and_add_from_register() localVariable
1975 program in move_and_add_from_register()
1982 program.into_bytes(), in move_and_add_from_register()
1989 let mut program = BpfCode::new(); in move_sub_from_register_to_register() localVariable
1990 program in move_sub_from_register_to_register()
1997 program.into_bytes(), in move_sub_from_register_to_register()
2004 let mut program = BpfCode::new(); in move_mul_from_register_to_register() localVariable
2005 program in move_mul_from_register_to_register()
2012 program.into_bytes(), in move_mul_from_register_to_register()
2019 let mut program = BpfCode::new(); in move_div_from_register_to_register() localVariable
2020 program in move_div_from_register_to_register()
2027 program.into_bytes(), in move_div_from_register_to_register()
2034 let mut program = BpfCode::new(); in move_bit_or_from_register_to_register() localVariable
2035 program in move_bit_or_from_register_to_register()
2042 program.into_bytes(), in move_bit_or_from_register_to_register()
2049 let mut program = BpfCode::new(); in move_bit_and_from_register_to_register() localVariable
2050 program in move_bit_and_from_register_to_register()
2057 program.into_bytes(), in move_bit_and_from_register_to_register()
2064 let mut program = BpfCode::new(); in move_left_shift_from_register_to_register() localVariable
2065 program in move_left_shift_from_register_to_register()
2072 program.into_bytes(), in move_left_shift_from_register_to_register()
2079 let mut program = BpfCode::new(); in move_logical_right_shift_from_register_to_register() localVariable
2080 program in move_logical_right_shift_from_register_to_register()
2087 program.into_bytes(), in move_logical_right_shift_from_register_to_register()
2094 let mut program = BpfCode::new(); in move_mod_from_register_to_register() localVariable
2095 program in move_mod_from_register_to_register()
2102 program.into_bytes(), in move_mod_from_register_to_register()
2109 let mut program = BpfCode::new(); in move_bit_xor_from_register_to_register() localVariable
2110 program in move_bit_xor_from_register_to_register()
2117 program.into_bytes(), in move_bit_xor_from_register_to_register()
2124 let mut program = BpfCode::new(); in move_from_register_to_another_register() localVariable
2125 program in move_from_register_to_another_register()
2132 program.into_bytes(), in move_from_register_to_another_register()
2139 let mut program = BpfCode::new(); in move_signed_right_shift_from_register_to_register() localVariable
2140 program in move_signed_right_shift_from_register_to_register()
2147 program.into_bytes(), in move_signed_right_shift_from_register_to_register()
2161 let mut program = BpfCode::new(); in example_from_assembler() localVariable
2162 program in example_from_assembler()
2185 let bytecode = program.into_bytes(); in example_from_assembler()