provide full Rust panic messages in BPF and add memory optimizations (#13455)

This commit is contained in:
Jack May
2020-11-09 13:40:26 -08:00
committed by GitHub
parent c644b05c54
commit 461ae40eea
7 changed files with 113 additions and 20 deletions

View File

@ -41,7 +41,7 @@ use thiserror::Error as ThisError;
pub enum SyscallError {
#[error("{0}: {1:?}")]
InvalidString(Utf8Error, Vec<u8>),
#[error("BPF program called abort()!")]
#[error("BPF program panicked")]
Abort,
#[error("BPF program Panicked in {0} at {1}:{2}")]
Panic(String, u64, u64),