Home
last modified time | relevance | path

Searched refs:register_helper (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs257 pub fn register_helper(&mut self, key: u32, function: Helper) -> Result<(), Error> { in register_helper() method
760 pub fn register_helper( in register_helper() method
765 self.parent.register_helper(key, function) in register_helper()
1194 pub fn register_helper( in register_helper() method
1199 self.parent.register_helper(key, function) in register_helper()
1211 self.parent.register_helper(*key, *function)?; in register_helper_set()
1550 pub fn register_helper( in register_helper() method
1555 self.parent.register_helper(key, function) in register_helper()
1736 pub fn register_helper( in register_helper() method
1741 self.parent.register_helper(key, function) in register_helper()
[all …]
/DragonOS/kernel/crates/rbpf/tests/
H A Dcranelift.rs274 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_cranelift_call()
313 vm.register_helper(1, helpers::memfrob).unwrap(); in test_cranelift_call_memfrob()
1778 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_cranelift_stack2()
1779 vm.register_helper(1, helpers::memfrob).unwrap(); in test_cranelift_stack2()
1854 vm.register_helper(4, helpers::strcmp).unwrap(); in test_cranelift_string_stack()
H A Dmisc.rs150 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf) in test_vm_block_port()
216 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf) in test_jit_block_port()
H A Dubpf_jit_x86_64.rs350 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_jit_call()
372 vm.register_helper(1, helpers::memfrob).unwrap(); in test_jit_call_memfrob()
2462 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_jit_stack2()
2463 vm.register_helper(1, helpers::memfrob).unwrap(); in test_jit_stack2()
2558 vm.register_helper(4, helpers::strcmp).unwrap(); in test_jit_string_stack()
H A Dubpf_vm.rs365 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_vm_call()
384 vm.register_helper(1, helpers::memfrob).unwrap(); in test_vm_call_memfrob()
2281 vm.register_helper(0, helpers::gather_bytes).unwrap(); in test_vm_stack2()
2282 vm.register_helper(1, helpers::memfrob).unwrap(); in test_vm_stack2()
2385 vm.register_helper(4, helpers::strcmp).unwrap(); in test_vm_string_stack()
/DragonOS/kernel/crates/rbpf/examples/
H A Duptime.rs51 vm.register_helper(helpers::BPF_KTIME_GETNS_IDX, helpers::bpf_time_getns) in main()
H A Dload_elf.rs93 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf) in main()
H A Drbpf_plugin.rs95 vm.register_helper(5, _unwind).unwrap(); in main()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md202 pub fn register_helper(&mut self,
454 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX,