Lines Matching refs:map_meta
193 let map_meta = BpfMapMeta::try_from(attr)?; in bpf_map_create() localVariable
194 info!("The map attr is {:#?}", map_meta); in bpf_map_create()
195 let map: Box<dyn BpfMapCommonOps> = match map_meta.map_type { in bpf_map_create()
197 let array_map = ArrayMap::new(&map_meta)?; in bpf_map_create()
201 let per_cpu_array_map = PerCpuArrayMap::new(&map_meta)?; in bpf_map_create()
205 let perf_event_array_map = PerfEventArrayMap::new(&map_meta)?; in bpf_map_create()
212 error!("bpf map type {:?} not implemented", map_meta.map_type); in bpf_map_create()
216 let hash_map = hash_map::BpfHashMap::new(&map_meta)?; in bpf_map_create()
220 let per_cpu_hash_map = PerCpuHashMap::new(&map_meta)?; in bpf_map_create()
224 let queue_map = queue::QueueMap::new(&map_meta)?; in bpf_map_create()
228 let stack_map = queue::StackMap::new(&map_meta)?; in bpf_map_create()
232 let lru_hash_map = lru::LruMap::new(&map_meta)?; in bpf_map_create()
236 let lru_per_cpu_hash_map = lru::PerCpuLruMap::new(&map_meta)?; in bpf_map_create()
240 unimplemented!("bpf map type {:?} not implemented", map_meta.map_type) in bpf_map_create()
243 let bpf_map = BpfMap::new(map, map_meta); in bpf_map_create()