goebpf icon indicating copy to clipboard operation
goebpf copied to clipboard

LoadElf(prog.o) failed: loadAndCreateMaps() failed: map.Create() failed: ebpfObjPin to '/sys/fs/bpf/name_persistence_map' failed: File exists

Open sp3rm0k opened this issue 9 months ago • 0 comments

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`

sp3rm0k avatar May 28 '24 09:05 sp3rm0k