Add back BPF error logging (#13633)

* Add back BPF error logging

* Update programs/bpf_loader/src/lib.rs

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
Jack May 2020-11-17 00:10:14 -08:00 committed by GitHub
parent 3e4acba72f
commit 3a9dca0c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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),