Lines Matching refs:prog

14     ($name:ident, $prog:expr, $expected:expr) => {
17 let prog = assemble($prog).unwrap(); localVariable
18 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap();
23 ($name:ident, $prog:expr, $mem:expr, $expected:expr) => {
26 let prog = assemble($prog).unwrap(); localVariable
28 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap();
261 let prog = assemble( in test_cranelift_call() localVariable
273 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_call()
282 let prog = assemble( in test_cranelift_err_call_unreg() localVariable
294 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_err_call_unreg()
300 let prog = assemble( in test_cranelift_call_memfrob() localVariable
312 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_call_memfrob()
476 let prog = [ in test_cranelift_err_stack_out_of_bound() localVariable
480 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_err_stack_out_of_bound()
1756 let prog = assemble( in test_cranelift_stack2() localVariable
1777 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_stack2()
1820 let prog = assemble( in test_cranelift_string_stack() localVariable
1853 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_string_stack()
2044 let prog = &PROG_TCP_PORT_80; in test_cranelift_tcp_port80_match() localVariable
2045 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_match()
2061 let prog = &PROG_TCP_PORT_80; in test_cranelift_tcp_port80_nomatch() localVariable
2062 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch()
2078 let prog = &PROG_TCP_PORT_80; in test_cranelift_tcp_port80_nomatch_ethertype() localVariable
2079 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch_ethertype()
2095 let prog = &PROG_TCP_PORT_80; in test_cranelift_tcp_port80_nomatch_proto() localVariable
2096 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch_proto()
2104 let prog = assemble(TCP_SACK_ASM).unwrap(); in test_cranelift_tcp_sack_match() localVariable
2105 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_tcp_sack_match()
2116 let prog = assemble(TCP_SACK_ASM).unwrap(); in test_cranelift_tcp_sack_nomatch() localVariable
2117 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_tcp_sack_nomatch()
2127 let prog = &[ in test_cranelift_ldabsb() localVariable
2135 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldabsb()
2143 let prog = &[ in test_cranelift_ldabsh() localVariable
2151 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldabsh()
2159 let prog = &[ in test_cranelift_ldabsw() localVariable
2167 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldabsw()
2175 let prog = &[ in test_cranelift_ldabsdw() localVariable
2183 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldabsdw()
2194 let prog = &[ in test_cranelift_ldindb() localVariable
2202 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldindb()
2210 let prog = &[ in test_cranelift_ldindh() localVariable
2218 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldindh()
2226 let prog = &[ in test_cranelift_ldindw() localVariable
2234 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldindw()
2242 let prog = &[ in test_cranelift_ldinddw() localVariable
2250 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x00, 0x08).unwrap(); in test_cranelift_ldinddw()