Home
last modified time | relevance | path

Searched refs:EbpfVmRaw (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/crates/rbpf/tests/
H A Dubpf_jit_x86_64.rs261 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 …]
H A Dubpf_vm.rs291 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 …]
H A Dmisc.rs322 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()
H A Dcranelift.rs28 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()
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs1066 pub struct EbpfVmRaw<'a> { struct
1070 impl<'a> EbpfVmRaw<'a> { implementation
1087 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()
/DragonOS/kernel/crates/rbpf/examples/
H A Drbpf_plugin.rs92 let mut vm = rbpf::EbpfVmRaw::new(Some(&bytecode)).unwrap(); in main()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md130 * `struct EbpfVmRaw` is for programs that want to run directly on packet data.
151 // called with EbpfVmRaw:: prefix
152 pub fn new(prog: &'a [u8]) -> Result<EbpfVmRaw<'a>, Error>
160 `rbpf::EbpfVmRaw::new(Some(my_program))` would return an instance of `struct
161 rbpf::EbpfVmRaw` (wrapped in a `Result`). When a program is loaded, it is
173 // for struct EbpfVmMbuff, struct EbpfVmRaw and struct EbpfVmRawData
218 // for struct EbpfVmFixedMbuff and struct EbpfVmRaw
244 // for struct EbpfVmFixedMbuff and struct EbpfVmRaw
308 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap();