Lines Matching refs:ebpf

16 use crate::ebpf;
19 fn alu_imm_str(name: &str, insn: &ebpf::Insn) -> String { in alu_imm_str()
24 fn alu_reg_str(name: &str, insn: &ebpf::Insn) -> String { in alu_reg_str()
29 fn byteswap_str(name: &str, insn: &ebpf::Insn) -> String { in byteswap_str()
38 fn ld_st_imm_str(name: &str, insn: &ebpf::Insn) -> String { in ld_st_imm_str()
52 fn ld_reg_str(name: &str, insn: &ebpf::Insn) -> String { in ld_reg_str()
66 fn st_reg_str(name: &str, insn: &ebpf::Insn) -> String { in st_reg_str()
80 fn ldabs_str(name: &str, insn: &ebpf::Insn) -> String { in ldabs_str()
85 fn ldind_str(name: &str, insn: &ebpf::Insn) -> String { in ldind_str()
90 fn jmp_imm_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_imm_str()
104 fn jmp_reg_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_reg_str()
203 if prog.len() % ebpf::INSN_SIZE != 0 { in to_insn_vec()
206 ebpf::INSN_SIZE in to_insn_vec()
216 while insn_ptr * ebpf::INSN_SIZE < prog.len() { in to_insn_vec()
217 let insn = ebpf::get_insn(prog, insn_ptr); in to_insn_vec()
224 ebpf::LD_ABS_B => { in to_insn_vec()
228 ebpf::LD_ABS_H => { in to_insn_vec()
232 ebpf::LD_ABS_W => { in to_insn_vec()
236 ebpf::LD_ABS_DW => { in to_insn_vec()
240 ebpf::LD_IND_B => { in to_insn_vec()
244 ebpf::LD_IND_H => { in to_insn_vec()
248 ebpf::LD_IND_W => { in to_insn_vec()
252 ebpf::LD_IND_DW => { in to_insn_vec()
257 ebpf::LD_DW_IMM => { in to_insn_vec()
259 let next_insn = ebpf::get_insn(prog, insn_ptr); in to_insn_vec()
266 ebpf::LD_B_REG => { in to_insn_vec()
270 ebpf::LD_H_REG => { in to_insn_vec()
274 ebpf::LD_W_REG => { in to_insn_vec()
278 ebpf::LD_DW_REG => { in to_insn_vec()
284 ebpf::ST_B_IMM => { in to_insn_vec()
288 ebpf::ST_H_IMM => { in to_insn_vec()
292 ebpf::ST_W_IMM => { in to_insn_vec()
296 ebpf::ST_DW_IMM => { in to_insn_vec()
302 ebpf::ST_B_REG => { in to_insn_vec()
306 ebpf::ST_H_REG => { in to_insn_vec()
310 ebpf::ST_W_REG => { in to_insn_vec()
314 ebpf::ST_DW_REG => { in to_insn_vec()
318 ebpf::ST_W_XADD => { in to_insn_vec()
322 ebpf::ST_DW_XADD => { in to_insn_vec()
328 ebpf::ADD32_IMM => { in to_insn_vec()
332 ebpf::ADD32_REG => { in to_insn_vec()
336 ebpf::SUB32_IMM => { in to_insn_vec()
340 ebpf::SUB32_REG => { in to_insn_vec()
344 ebpf::MUL32_IMM => { in to_insn_vec()
348 ebpf::MUL32_REG => { in to_insn_vec()
352 ebpf::DIV32_IMM => { in to_insn_vec()
356 ebpf::DIV32_REG => { in to_insn_vec()
360 ebpf::OR32_IMM => { in to_insn_vec()
364 ebpf::OR32_REG => { in to_insn_vec()
368 ebpf::AND32_IMM => { in to_insn_vec()
372 ebpf::AND32_REG => { in to_insn_vec()
376 ebpf::LSH32_IMM => { in to_insn_vec()
380 ebpf::LSH32_REG => { in to_insn_vec()
384 ebpf::RSH32_IMM => { in to_insn_vec()
388 ebpf::RSH32_REG => { in to_insn_vec()
392 ebpf::NEG32 => { in to_insn_vec()
396 ebpf::MOD32_IMM => { in to_insn_vec()
400 ebpf::MOD32_REG => { in to_insn_vec()
404 ebpf::XOR32_IMM => { in to_insn_vec()
408 ebpf::XOR32_REG => { in to_insn_vec()
412 ebpf::MOV32_IMM => { in to_insn_vec()
416 ebpf::MOV32_REG => { in to_insn_vec()
420 ebpf::ARSH32_IMM => { in to_insn_vec()
424 ebpf::ARSH32_REG => { in to_insn_vec()
428 ebpf::LE => { in to_insn_vec()
432 ebpf::BE => { in to_insn_vec()
438 ebpf::ADD64_IMM => { in to_insn_vec()
442 ebpf::ADD64_REG => { in to_insn_vec()
446 ebpf::SUB64_IMM => { in to_insn_vec()
450 ebpf::SUB64_REG => { in to_insn_vec()
454 ebpf::MUL64_IMM => { in to_insn_vec()
458 ebpf::MUL64_REG => { in to_insn_vec()
462 ebpf::DIV64_IMM => { in to_insn_vec()
466 ebpf::DIV64_REG => { in to_insn_vec()
470 ebpf::OR64_IMM => { in to_insn_vec()
474 ebpf::OR64_REG => { in to_insn_vec()
478 ebpf::AND64_IMM => { in to_insn_vec()
482 ebpf::AND64_REG => { in to_insn_vec()
486 ebpf::LSH64_IMM => { in to_insn_vec()
490 ebpf::LSH64_REG => { in to_insn_vec()
494 ebpf::RSH64_IMM => { in to_insn_vec()
498 ebpf::RSH64_REG => { in to_insn_vec()
502 ebpf::NEG64 => { in to_insn_vec()
506 ebpf::MOD64_IMM => { in to_insn_vec()
510 ebpf::MOD64_REG => { in to_insn_vec()
514 ebpf::XOR64_IMM => { in to_insn_vec()
518 ebpf::XOR64_REG => { in to_insn_vec()
522 ebpf::MOV64_IMM => { in to_insn_vec()
526 ebpf::MOV64_REG => { in to_insn_vec()
530 ebpf::ARSH64_IMM => { in to_insn_vec()
534 ebpf::ARSH64_REG => { in to_insn_vec()
540 ebpf::JA => { in to_insn_vec()
548 ebpf::JEQ_IMM => { in to_insn_vec()
552 ebpf::JEQ_REG => { in to_insn_vec()
556 ebpf::JGT_IMM => { in to_insn_vec()
560 ebpf::JGT_REG => { in to_insn_vec()
564 ebpf::JGE_IMM => { in to_insn_vec()
568 ebpf::JGE_REG => { in to_insn_vec()
572 ebpf::JLT_IMM => { in to_insn_vec()
576 ebpf::JLT_REG => { in to_insn_vec()
580 ebpf::JLE_IMM => { in to_insn_vec()
584 ebpf::JLE_REG => { in to_insn_vec()
588 ebpf::JSET_IMM => { in to_insn_vec()
592 ebpf::JSET_REG => { in to_insn_vec()
596 ebpf::JNE_IMM => { in to_insn_vec()
600 ebpf::JNE_REG => { in to_insn_vec()
604 ebpf::JSGT_IMM => { in to_insn_vec()
608 ebpf::JSGT_REG => { in to_insn_vec()
612 ebpf::JSGE_IMM => { in to_insn_vec()
616 ebpf::JSGE_REG => { in to_insn_vec()
620 ebpf::JSLT_IMM => { in to_insn_vec()
624 ebpf::JSLT_REG => { in to_insn_vec()
628 ebpf::JSLE_IMM => { in to_insn_vec()
632 ebpf::JSLE_REG => { in to_insn_vec()
636 ebpf::CALL => { in to_insn_vec()
640 ebpf::TAIL_CALL => { in to_insn_vec()
644 ebpf::EXIT => { in to_insn_vec()
650 ebpf::JEQ_IMM32 => { in to_insn_vec()
654 ebpf::JEQ_REG32 => { in to_insn_vec()
658 ebpf::JGT_IMM32 => { in to_insn_vec()
662 ebpf::JGT_REG32 => { in to_insn_vec()
666 ebpf::JGE_IMM32 => { in to_insn_vec()
670 ebpf::JGE_REG32 => { in to_insn_vec()
674 ebpf::JLT_IMM32 => { in to_insn_vec()
678 ebpf::JLT_REG32 => { in to_insn_vec()
682 ebpf::JLE_IMM32 => { in to_insn_vec()
686 ebpf::JLE_REG32 => { in to_insn_vec()
690 ebpf::JSET_IMM32 => { in to_insn_vec()
694 ebpf::JSET_REG32 => { in to_insn_vec()
698 ebpf::JNE_IMM32 => { in to_insn_vec()
702 ebpf::JNE_REG32 => { in to_insn_vec()
706 ebpf::JSGT_IMM32 => { in to_insn_vec()
710 ebpf::JSGT_REG32 => { in to_insn_vec()
714 ebpf::JSGE_IMM32 => { in to_insn_vec()
718 ebpf::JSGE_REG32 => { in to_insn_vec()
722 ebpf::JSLT_IMM32 => { in to_insn_vec()
726 ebpf::JSLT_REG32 => { in to_insn_vec()
730 ebpf::JSLE_IMM32 => { in to_insn_vec()
734 ebpf::JSLE_REG32 => { in to_insn_vec()