Searched refs:EbpfVmRaw (Results 1 – 7 of 7) sorted by relevance
261 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_be16()278 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_be16_high()295 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_be32()312 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_be32_high()329 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_be64()371 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_call_memfrob()1830 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_ldxb_all()1846 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_ldxb()1864 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_ldxdw()1922 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_jit_ldxh_all()[all …]
291 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_be16()305 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_be16_high()319 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_be32()333 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_be32_high()347 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_be64()383 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_call_memfrob()1642 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_ldxb_all()1655 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_ldxb()1670 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_ldxdw()1725 let vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_vm_ldxh_all()[all …]
322 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldabsb()342 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldabsh()362 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldabsw()382 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldabsdw()402 let vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_err_ldabsb_oob()432 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldindb()452 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldindh()472 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldindw()492 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_jit_ldinddw()512 let vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_vm_err_ldindb_oob()
28 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap();312 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_call_memfrob()2045 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_match()2062 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch()2079 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch_ethertype()2096 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap(); in test_cranelift_tcp_port80_nomatch_proto()2105 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_tcp_sack_match()2117 let mut vm = rbpf::EbpfVmRaw::new(Some(&prog)).unwrap(); in test_cranelift_tcp_sack_nomatch()
1066 pub struct EbpfVmRaw<'a> { struct1070 impl<'a> EbpfVmRaw<'a> { implementation1087 pub fn new(prog: Option<&'a [u8]>) -> Result<EbpfVmRaw<'a>, Error> { in new()1089 Ok(EbpfVmRaw { parent }) in new()1430 parent: EbpfVmRaw<'a>,1450 let parent = EbpfVmRaw::new(prog)?; in new()1691 parent: EbpfVmRaw<'static>,1710 let parent = EbpfVmRaw::new(prog)?; in new()
92 let mut vm = rbpf::EbpfVmRaw::new(Some(&bytecode)).unwrap(); in main()
130 * `struct EbpfVmRaw` is for programs that want to run directly on packet data.151 // called with EbpfVmRaw:: prefix152 pub fn new(prog: &'a [u8]) -> Result<EbpfVmRaw<'a>, Error>160 `rbpf::EbpfVmRaw::new(Some(my_program))` would return an instance of `struct161 rbpf::EbpfVmRaw` (wrapped in a `Result`). When a program is loaded, it is173 // for struct EbpfVmMbuff, struct EbpfVmRaw and struct EbpfVmRawData218 // for struct EbpfVmFixedMbuff and struct EbpfVmRaw244 // for struct EbpfVmFixedMbuff and struct EbpfVmRaw308 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap();