|
|
@ -317,25 +317,25 @@ impl Map {
|
|
|
|
pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> {
|
|
|
|
pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> {
|
|
|
|
match self {
|
|
|
|
match self {
|
|
|
|
Self::Array(map) => map.pin(path),
|
|
|
|
Self::Array(map) => map.pin(path),
|
|
|
|
Self::PerCpuArray(map) => map.pin(path),
|
|
|
|
Self::BloomFilter(map) => map.pin(path),
|
|
|
|
Self::ProgramArray(map) => map.pin(path),
|
|
|
|
Self::CpuMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::DevMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::DevMapHash(map) => map.pin(path),
|
|
|
|
Self::HashMap(map) => map.pin(path),
|
|
|
|
Self::HashMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::LpmTrie(map) => map.pin(path),
|
|
|
|
Self::LruHashMap(map) => map.pin(path),
|
|
|
|
Self::LruHashMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::PerCpuArray(map) => map.pin(path),
|
|
|
|
Self::PerCpuHashMap(map) => map.pin(path),
|
|
|
|
Self::PerCpuHashMap(map) => map.pin(path),
|
|
|
|
Self::PerCpuLruHashMap(map) => map.pin(path),
|
|
|
|
Self::PerCpuLruHashMap(map) => map.pin(path),
|
|
|
|
Self::PerfEventArray(map) => map.pin(path),
|
|
|
|
Self::PerfEventArray(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::ProgramArray(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::Queue(map) => map.pin(path),
|
|
|
|
Self::SockHash(map) => map.pin(path),
|
|
|
|
Self::SockHash(map) => map.pin(path),
|
|
|
|
Self::SockMap(map) => map.pin(path),
|
|
|
|
Self::SockMap(map) => map.pin(path),
|
|
|
|
Self::BloomFilter(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::LpmTrie(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::Stack(map) => map.pin(path),
|
|
|
|
Self::Stack(map) => map.pin(path),
|
|
|
|
Self::StackTraceMap(map) => map.pin(path),
|
|
|
|
Self::StackTraceMap(map) => map.pin(path),
|
|
|
|
Self::Queue(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::CpuMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::DevMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::DevMapHash(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::XskMap(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::Unsupported(map) => map.pin(path),
|
|
|
|
Self::Unsupported(map) => map.pin(path),
|
|
|
|
|
|
|
|
Self::XskMap(map) => map.pin(path),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|