Skip to content

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

@sp3rm0k

Description

@sp3rm0k

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions