Skip to content

Commit 0b3bbff

Browse files
kylewanginchinarvql
authored andcommitted
refactor: address review comments for tpbase and error handling
1 parent e309201 commit 0b3bbff

2 files changed

Lines changed: 141 additions & 146 deletions

File tree

agent/crates/trace-utils/src/error.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ pub enum Error {
3737
InvalidPointer(u64),
3838
#[error("Invalid or corrupted data")]
3939
InvalidData,
40+
#[error("Kernel symbol not found: {0}")]
41+
KernelSymbolNotFound(String),
42+
#[error("BTF parsing failed: {0}")]
43+
BtfParseError(String),
44+
#[error("Architecture not supported: {0}")]
45+
UnsupportedArch(String),
46+
#[error("Permission denied: {0}")]
47+
PermissionDenied(String),
4048
#[error("{0}")]
4149
Msg(String),
4250
}

0 commit comments

Comments
 (0)