-
Notifications
You must be signed in to change notification settings - Fork 19
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
Could not found a container for a registered process #169
Comments
This issue looks like similar issue for #145 |
Potentially a bug in Aya, which should reuse the maps simply by the https://github.com/rancher-sandbox/lockc/blob/main/lockc/src/load.rs#L14 |
vadorovsky
added a commit
to vadorovsky/lockc
that referenced
this issue
Feb 10, 2022
Aya relies on the `pinning` field in BPF map definitions. libbpf doesn't provide that field, so instead of using their bpf_map_def struct, here we define our bpf_elf_map struct which has it. Our structure is similar to those available in Cilium[0] and some selftests in the kernel tree[1]. [0] https://github.com/cilium/cilium/blob/v1.11.1/bpf/include/bpf/loader.h#L19-L29 [1] https://elixir.bootlin.com/linux/v5.16.8/source/samples/bpf/tc_l2_redirect_kern.c#L23 Fixes: lockc-project#169 Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Merged
Disregard my comments above ^^ All is good in Aya. The issue is that it just pins map differently than libbpf. So basically, there are two ways:
I just had to adjust our C code to the 1st way. |
vadorovsky
added a commit
to vadorovsky/lockc
that referenced
this issue
Feb 11, 2022
Aya relies on the `pinning` field in BPF map definitions. libbpf doesn't provide that field, so instead of using their bpf_map_def struct, here we define our bpf_elf_map struct which has it. Our structure is similar to those available in Cilium[0] and some selftests in the kernel tree[1]. [0] https://github.com/cilium/cilium/blob/v1.11.1/bpf/include/bpf/loader.h#L19-L29 [1] https://elixir.bootlin.com/linux/v5.16.8/source/samples/bpf/tc_l2_redirect_kern.c#L23 Fixes: lockc-project#169 Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After migration to Aya we can observe new issue.
How to reproduce it:
The text was updated successfully, but these errors were encountered: