Add support for BPF program custom errors (#5743)

* Add support for BPF program custom errors

* Rename SOL_SUCCESS -> SUCCESS
This commit is contained in:
Justin Starry
2019-09-06 16:05:01 -07:00
committed by GitHub
parent d3052d094c
commit 81c36699c4
26 changed files with 108 additions and 67 deletions

View File

@ -80,7 +80,7 @@ fn bench_program_alu(bencher: &mut Bencher) {
println!("Interpreted:");
assert_eq!(
1, /*true*/
0, /*success*/
vm.execute_program(&mut inner_iter, &[], &[]).unwrap()
);
assert_eq!(ARMSTRONG_LIMIT, LittleEndian::read_u64(&inner_iter));
@ -106,7 +106,7 @@ fn bench_program_alu(bencher: &mut Bencher) {
// vm.jit_compile().unwrap();
// unsafe {
// assert_eq!(
// 1, /*true*/
// 0, /*success*/
// vm.execute_program_jit(&mut inner_iter).unwrap()
// );
// }