From 3a9dca0c675907fe0858f27c76f6803d88dd9fc0 Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 17 Nov 2020 00:10:14 -0800 Subject: [PATCH] Add back BPF error logging (#13633) * Add back BPF error logging * Update programs/bpf_loader/src/lib.rs Co-authored-by: Michael Vines --- programs/bpf_loader/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/bpf_loader/src/lib.rs b/programs/bpf_loader/src/lib.rs index 51105b459d..deea10cd7e 100644 --- a/programs/bpf_loader/src/lib.rs +++ b/programs/bpf_loader/src/lib.rs @@ -295,6 +295,12 @@ impl Executor for BPFExecutor { } } Err(error) => { + log!( + logger, + "Program {} BPF VM error: {}", + program.unsigned_key(), + error + ); let error = match error { EbpfError::UserError(BPFError::SyscallError( SyscallError::InstructionError(error),