diff --git a/aya/src/maps/perf_map.rs b/aya/src/maps/perf_map.rs index 561c60ce..a4e142f2 100644 --- a/aya/src/maps/perf_map.rs +++ b/aya/src/maps/perf_map.rs @@ -54,6 +54,9 @@ pub enum PerfBufferError { #[error("the buffer needs to be of at least {size} bytes")] MoreSpaceNeeded { size: usize }, + + #[error(transparent)] + IOError(#[from] io::Error), } #[derive(Debug, PartialEq)] @@ -266,6 +269,9 @@ pub enum PerfMapError { #[error("perf buffer error: {0}")] PerfBufferError(#[from] PerfBufferError), + #[error(transparent)] + IOError(#[from] io::Error), + #[error("bpf_map_update_elem failed: {io_error}")] UpdateElementError { #[source]