Lines Matching refs:prog
144 pub fn new(prog: &'a [u8]) -> Result<EbpfVmMbuff<'a>, Error>
147 pub fn new(prog: &'a [u8],
152 pub fn new(prog: &'a [u8]) -> Result<EbpfVmRaw<'a>, Error>
155 pub fn new(prog: &'a [u8]) -> Result<EbpfVmNoData<'a>, Error>
174 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error>
177 pub fn set_program(&mut self, prog: &'a [u8],
188 pub type Verifier = fn(prog: &[u8]) -> Result<(), Error>;
270 let prog = &[
281 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap();
296 let prog = &[
308 let mut vm = rbpf::EbpfVmRaw::new(Some(prog)).unwrap();
332 let prog = &[
354 let mut vm = rbpf::EbpfVmMbuff::new(Some(prog)).unwrap();
419 let prog = &text_scn.data;
448 let mut vm = rbpf::EbpfVmFixedMbuff::new(Some(prog), 0x40, 0x50).unwrap();
479 let prog = assemble("add64 r1, 0x605
487 println!("{:?}", prog);
509 let prog = &[
518 disassemble(prog);