Home
last modified time | relevance | path

Searched refs:program (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dinsn_builder.rs656 let mut program = BpfCode::new(); in call_immediate() localVariable
657 program.call().set_imm(0x11_22_33_44).push(); in call_immediate()
660 program.into_bytes(), in call_immediate()
667 let mut program = BpfCode::new(); in exit_operation() localVariable
668 program.exit().push(); in exit_operation()
671 program.into_bytes(), in exit_operation()
685 let mut program = BpfCode::new(); in jump_on_dst_equals_src() localVariable
686 program in jump_on_dst_equals_src()
693 program.into_bytes(), in jump_on_dst_equals_src()
700 let mut program = BpfCode::new(); in jump_on_dst_greater_than_src() localVariable
[all …]
H A Dlib.rs451 let program = compiler.compile_function(prog)?; in cranelift_compile() localVariable
453 self.cranelift_prog = Some(program); in cranelift_compile()
963 let program = compiler.compile_function(prog)?; in cranelift_compile() localVariable
965 self.parent.cranelift_prog = Some(program); in cranelift_compile()
1353 let program = compiler.compile_function(prog)?; in cranelift_compile() localVariable
1355 self.parent.cranelift_prog = Some(program); in cranelift_compile()
/DragonOS/user/apps/test_ebpf/src/
H A Dmain.rs27 let program: &mut KProbe = bpf.program_mut("syscall_ebpf").unwrap().try_into()?; in main() localVariable
28 program.load()?; in main()
29 program.attach("dragonos_kernel::syscall::Syscall::handle", 0)?; in main()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md31 This crate contains a virtual machine for eBPF program execution. BPF, as in
90 Here are the steps to follow to run an eBPF program with rbpf:
93 back on this later. When creating the VM, pass the eBPF program as an
97 3. If you want a JIT-compiled program, compile it.
98 4. Execute your program: either run the interpreter or call the JIT-compiled
103 consequence, most of the load and store instructions of the program are
105 kernel, the eBPF program does not immediately access this data area: initially,
108 the end of the packet data area. So the program first loads those pointers from
115 * `struct EbpfVmMbuffer` mimics the kernel. When the program is run, the
123 internal buffer that is passed to the program. The user has to indicate the
[all …]
/DragonOS/
H A DLICENSE16 Foundation's software and to any other program whose authors commit to
33 For example, if you distribute copies of such a program, whether
50 Finally, any free program is threatened constantly by software
52 program will individually obtain patent licenses, in effect making the
53 program proprietary. To prevent this, we have made it clear that any
62 0. This License applies to any program or other work which contains
65 refers to any such program or work, and a "work based on the Program"
103 c) If the modified program normally reads commands interactively
108 a warranty) and that users may redistribute the program under
152 received the program in object code or executable form with such
[all …]
/DragonOS/kernel/crates/rbpf/tests/
H A Dmisc.rs255 let mut program = BpfCode::new(); in test_vm_mbuff_with_rust_api() localVariable
256 program in test_vm_mbuff_with_rust_api()
280 let vm = rbpf::EbpfVmMbuff::new(Some(program.into_bytes())).unwrap(); in test_vm_mbuff_with_rust_api()