Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sp3rm0k opened this issue May 28, 2024 · 0 comments

Comments

@sp3rm0k
Copy link

sp3rm0k commented May 28, 2024

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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant