goebpf
goebpf copied to clipboard
LoadElf(prog.o) failed: loadAndCreateMaps() failed: map.Create() failed: ebpfObjPin to '/sys/fs/bpf/name_persistence_map' failed: File exists
Hi, exist kprobe program with map:
BPF_MAP_DEF(pinfo_map) = {
.map_type = BPF_MAP_TYPE_HASH,
.key_size = sizeof(key_type),
.value_size = sizeof(struct event),
.max_entries = 65535,
.persistent_path = "/sys/fs/bpf/pinfo",
};
BPF_MAP_ADD(pinfo_map);
```,
and there is a TC program that should look for values by key in this map. How init this map in TC-program?
If you initiate also, there will be an error:
`LoadElf(tc_prog.o) failed: loadAndCreateMaps() failed: map.Create() failed: ebpfObjPin to '/sys/fs/bpf/pinfo' failed: File exists`