dropbox / dropbox/goebpf

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

Open
#89 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
82
PR merge metrics
No merged PRs in 30d

Description

Hi,
exist kprobe program with map:
```c
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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.