|
|
@ -54,6 +54,9 @@ pub enum PerfBufferError {
|
|
|
|
|
|
|
|
|
|
|
|
#[error("the buffer needs to be of at least {size} bytes")]
|
|
|
|
#[error("the buffer needs to be of at least {size} bytes")]
|
|
|
|
MoreSpaceNeeded { size: usize },
|
|
|
|
MoreSpaceNeeded { size: usize },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[error(transparent)]
|
|
|
|
|
|
|
|
IOError(#[from] io::Error),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, PartialEq)]
|
|
|
|
#[derive(Debug, PartialEq)]
|
|
|
@ -266,6 +269,9 @@ pub enum PerfMapError {
|
|
|
|
#[error("perf buffer error: {0}")]
|
|
|
|
#[error("perf buffer error: {0}")]
|
|
|
|
PerfBufferError(#[from] PerfBufferError),
|
|
|
|
PerfBufferError(#[from] PerfBufferError),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[error(transparent)]
|
|
|
|
|
|
|
|
IOError(#[from] io::Error),
|
|
|
|
|
|
|
|
|
|
|
|
#[error("bpf_map_update_elem failed: {io_error}")]
|
|
|
|
#[error("bpf_map_update_elem failed: {io_error}")]
|
|
|
|
UpdateElementError {
|
|
|
|
UpdateElementError {
|
|
|
|
#[source]
|
|
|
|
#[source]
|
|
|
|