Lines Matching refs:ebpf
23 use crate::ebpf::{
39 helpers: HashMap<u32, ebpf::Helper>,
61 pub(crate) fn new(helpers: HashMap<u32, ebpf::Helper>) -> Self { in new()
252 while insn_ptr * ebpf::INSN_SIZE < prog.len() { in translate_program()
253 let insn = ebpf::get_insn(prog, insn_ptr); in translate_program()
274 ebpf::LD_ABS_B in translate_program()
275 | ebpf::LD_ABS_H in translate_program()
276 | ebpf::LD_ABS_W in translate_program()
277 | ebpf::LD_ABS_DW in translate_program()
278 | ebpf::LD_IND_B in translate_program()
279 | ebpf::LD_IND_H in translate_program()
280 | ebpf::LD_IND_W in translate_program()
281 | ebpf::LD_IND_DW => { in translate_program()
283 ebpf::LD_ABS_B | ebpf::LD_IND_B => I8, in translate_program()
284 ebpf::LD_ABS_H | ebpf::LD_IND_H => I16, in translate_program()
285 ebpf::LD_ABS_W | ebpf::LD_IND_W => I32, in translate_program()
286 ebpf::LD_ABS_DW | ebpf::LD_IND_DW => I64, in translate_program()
317 ebpf::LD_DW_IMM => { in translate_program()
319 let next_insn = ebpf::get_insn(prog, insn_ptr); in translate_program()
327 ebpf::LD_B_REG | ebpf::LD_H_REG | ebpf::LD_W_REG | ebpf::LD_DW_REG => { in translate_program()
329 ebpf::LD_B_REG => I8, in translate_program()
330 ebpf::LD_H_REG => I16, in translate_program()
331 ebpf::LD_W_REG => I32, in translate_program()
332 ebpf::LD_DW_REG => I64, in translate_program()
349 ebpf::ST_B_IMM in translate_program()
350 | ebpf::ST_H_IMM in translate_program()
351 | ebpf::ST_W_IMM in translate_program()
352 | ebpf::ST_DW_IMM in translate_program()
353 | ebpf::ST_B_REG in translate_program()
354 | ebpf::ST_H_REG in translate_program()
355 | ebpf::ST_W_REG in translate_program()
356 | ebpf::ST_DW_REG => { in translate_program()
358 ebpf::ST_B_IMM | ebpf::ST_B_REG => I8, in translate_program()
359 ebpf::ST_H_IMM | ebpf::ST_H_REG => I16, in translate_program()
360 ebpf::ST_W_IMM | ebpf::ST_W_REG => I32, in translate_program()
361 ebpf::ST_DW_IMM | ebpf::ST_DW_REG => I64, in translate_program()
365 ebpf::ST_B_IMM | ebpf::ST_H_IMM | ebpf::ST_W_IMM | ebpf::ST_DW_IMM => true, in translate_program()
366 ebpf::ST_B_REG | ebpf::ST_H_REG | ebpf::ST_W_REG | ebpf::ST_DW_REG => false, in translate_program()
386 ebpf::ST_W_XADD => unimplemented!(), in translate_program()
387 ebpf::ST_DW_XADD => unimplemented!(), in translate_program()
393 ebpf::ADD32_IMM => { in translate_program()
399 ebpf::ADD32_REG => { in translate_program()
406 ebpf::SUB32_IMM => { in translate_program()
413 ebpf::SUB32_REG => { in translate_program()
420 ebpf::MUL32_IMM => { in translate_program()
427 ebpf::MUL32_REG => { in translate_program()
434 ebpf::DIV32_IMM => { in translate_program()
445 ebpf::DIV32_REG => { in translate_program()
460 ebpf::OR32_IMM => { in translate_program()
467 ebpf::OR32_REG => { in translate_program()
474 ebpf::AND32_IMM => { in translate_program()
481 ebpf::AND32_REG => { in translate_program()
488 ebpf::LSH32_IMM => { in translate_program()
495 ebpf::LSH32_REG => { in translate_program()
502 ebpf::RSH32_IMM => { in translate_program()
509 ebpf::RSH32_REG => { in translate_program()
516 ebpf::NEG32 => { in translate_program()
523 ebpf::MOD32_IMM => { in translate_program()
533 ebpf::MOD32_REG => { in translate_program()
548 ebpf::XOR32_IMM => { in translate_program()
555 ebpf::XOR32_REG => { in translate_program()
562 ebpf::MOV32_IMM => { in translate_program()
566 ebpf::MOV32_REG => { in translate_program()
571 ebpf::ARSH32_IMM => { in translate_program()
578 ebpf::ARSH32_REG => { in translate_program()
586 ebpf::BE | ebpf::LE => { in translate_program()
588 ebpf::BE => self.isa.endianness() == Endianness::Little, in translate_program()
589 ebpf::LE => self.isa.endianness() == Endianness::Big, in translate_program()
620 ebpf::ADD64_IMM => { in translate_program()
627 ebpf::ADD64_REG => { in translate_program()
634 ebpf::SUB64_IMM => { in translate_program()
641 ebpf::SUB64_REG => { in translate_program()
648 ebpf::MUL64_IMM => { in translate_program()
655 ebpf::MUL64_REG => { in translate_program()
662 ebpf::DIV64_IMM => { in translate_program()
673 ebpf::DIV64_REG => { in translate_program()
689 ebpf::MOD64_IMM => { in translate_program()
699 ebpf::MOD64_REG => { in translate_program()
715 ebpf::OR64_IMM => { in translate_program()
722 ebpf::OR64_REG => { in translate_program()
729 ebpf::AND64_IMM => { in translate_program()
736 ebpf::AND64_REG => { in translate_program()
743 ebpf::LSH64_IMM => { in translate_program()
750 ebpf::LSH64_REG => { in translate_program()
757 ebpf::RSH64_IMM => { in translate_program()
764 ebpf::RSH64_REG => { in translate_program()
771 ebpf::NEG64 => { in translate_program()
777 ebpf::XOR64_IMM => { in translate_program()
784 ebpf::XOR64_REG => { in translate_program()
791 ebpf::MOV64_IMM => { in translate_program()
796 ebpf::MOV64_REG => { in translate_program()
801 ebpf::ARSH64_IMM => { in translate_program()
808 ebpf::ARSH64_REG => { in translate_program()
817 ebpf::JA => { in translate_program()
823 ebpf::JEQ_IMM in translate_program()
824 | ebpf::JEQ_REG in translate_program()
825 | ebpf::JGT_IMM in translate_program()
826 | ebpf::JGT_REG in translate_program()
827 | ebpf::JGE_IMM in translate_program()
828 | ebpf::JGE_REG in translate_program()
829 | ebpf::JLT_IMM in translate_program()
830 | ebpf::JLT_REG in translate_program()
831 | ebpf::JLE_IMM in translate_program()
832 | ebpf::JLE_REG in translate_program()
833 | ebpf::JNE_IMM in translate_program()
834 | ebpf::JNE_REG in translate_program()
835 | ebpf::JSGT_IMM in translate_program()
836 | ebpf::JSGT_REG in translate_program()
837 | ebpf::JSGE_IMM in translate_program()
838 | ebpf::JSGE_REG in translate_program()
839 | ebpf::JSLT_IMM in translate_program()
840 | ebpf::JSLT_REG in translate_program()
841 | ebpf::JSLE_IMM in translate_program()
842 | ebpf::JSLE_REG in translate_program()
843 | ebpf::JSET_IMM in translate_program()
844 | ebpf::JSET_REG in translate_program()
845 | ebpf::JEQ_IMM32 in translate_program()
846 | ebpf::JEQ_REG32 in translate_program()
847 | ebpf::JGT_IMM32 in translate_program()
848 | ebpf::JGT_REG32 in translate_program()
849 | ebpf::JGE_IMM32 in translate_program()
850 | ebpf::JGE_REG32 in translate_program()
851 | ebpf::JLT_IMM32 in translate_program()
852 | ebpf::JLT_REG32 in translate_program()
853 | ebpf::JLE_IMM32 in translate_program()
854 | ebpf::JLE_REG32 in translate_program()
855 | ebpf::JNE_IMM32 in translate_program()
856 | ebpf::JNE_REG32 in translate_program()
857 | ebpf::JSGT_IMM32 in translate_program()
858 | ebpf::JSGT_REG32 in translate_program()
859 | ebpf::JSGE_IMM32 in translate_program()
860 | ebpf::JSGE_REG32 in translate_program()
861 | ebpf::JSLT_IMM32 in translate_program()
862 | ebpf::JSLT_REG32 in translate_program()
863 | ebpf::JSLE_IMM32 in translate_program()
864 | ebpf::JSLE_REG32 in translate_program()
865 | ebpf::JSET_IMM32 in translate_program()
866 | ebpf::JSET_REG32 => { in translate_program()
910 ebpf::CALL => { in translate_program()
935 ebpf::TAIL_CALL => unimplemented!(), in translate_program()
936 ebpf::EXIT => { in translate_program()
1085 while insn_ptr * ebpf::INSN_SIZE < prog.len() { in build_cfg()
1086 let insn = ebpf::get_insn(prog, insn_ptr); in build_cfg()
1090 ebpf::LD_DW_IMM => { in build_cfg()
1094 ebpf::JA in build_cfg()
1095 | ebpf::JEQ_IMM in build_cfg()
1096 | ebpf::JEQ_REG in build_cfg()
1097 | ebpf::JGT_IMM in build_cfg()
1098 | ebpf::JGT_REG in build_cfg()
1099 | ebpf::JGE_IMM in build_cfg()
1100 | ebpf::JGE_REG in build_cfg()
1101 | ebpf::JLT_IMM in build_cfg()
1102 | ebpf::JLT_REG in build_cfg()
1103 | ebpf::JLE_IMM in build_cfg()
1104 | ebpf::JLE_REG in build_cfg()
1105 | ebpf::JNE_IMM in build_cfg()
1106 | ebpf::JNE_REG in build_cfg()
1107 | ebpf::JSGT_IMM in build_cfg()
1108 | ebpf::JSGT_REG in build_cfg()
1109 | ebpf::JSGE_IMM in build_cfg()
1110 | ebpf::JSGE_REG in build_cfg()
1111 | ebpf::JSLT_IMM in build_cfg()
1112 | ebpf::JSLT_REG in build_cfg()
1113 | ebpf::JSLE_IMM in build_cfg()
1114 | ebpf::JSLE_REG in build_cfg()
1115 | ebpf::JSET_IMM in build_cfg()
1116 | ebpf::JSET_REG in build_cfg()
1117 | ebpf::JEQ_IMM32 in build_cfg()
1118 | ebpf::JEQ_REG32 in build_cfg()
1119 | ebpf::JGT_IMM32 in build_cfg()
1120 | ebpf::JGT_REG32 in build_cfg()
1121 | ebpf::JGE_IMM32 in build_cfg()
1122 | ebpf::JGE_REG32 in build_cfg()
1123 | ebpf::JLT_IMM32 in build_cfg()
1124 | ebpf::JLT_REG32 in build_cfg()
1125 | ebpf::JLE_IMM32 in build_cfg()
1126 | ebpf::JLE_REG32 in build_cfg()
1127 | ebpf::JNE_IMM32 in build_cfg()
1128 | ebpf::JNE_REG32 in build_cfg()
1129 | ebpf::JSGT_IMM32 in build_cfg()
1130 | ebpf::JSGT_REG32 in build_cfg()
1131 | ebpf::JSGE_IMM32 in build_cfg()
1132 | ebpf::JSGE_REG32 in build_cfg()
1133 | ebpf::JSLT_IMM32 in build_cfg()
1134 | ebpf::JSLT_REG32 in build_cfg()
1135 | ebpf::JSLE_IMM32 in build_cfg()
1136 | ebpf::JSLE_REG32 in build_cfg()
1137 | ebpf::JSET_IMM32 in build_cfg()
1138 | ebpf::JSET_REG32 in build_cfg()
1139 | ebpf::EXIT in build_cfg()
1140 | ebpf::TAIL_CALL => { in build_cfg()