Searched refs:register_helper (Results 1 – 9 of 9) sorted by relevance
/DragonOS/kernel/crates/rbpf/src/ |
H A D | lib.rs | 257 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 D | cranelift.rs | 274 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 D | misc.rs | 150 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 D | ubpf_jit_x86_64.rs | 350 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 D | ubpf_vm.rs | 365 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 D | uptime.rs | 51 vm.register_helper(helpers::BPF_KTIME_GETNS_IDX, helpers::bpf_time_getns) in main()
|
H A D | load_elf.rs | 93 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf) in main()
|
H A D | rbpf_plugin.rs | 95 vm.register_helper(5, _unwind).unwrap(); in main()
|
/DragonOS/kernel/crates/rbpf/ |
H A D | README.md | 202 pub fn register_helper(&mut self, 454 vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX,
|