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
Implement libbpf bpf_create_map #93
Comments
Hi @kakkoyun! Thanks for the kind words. Implementing libbpf APIs is a big priority going forward. I can certainly start with this API when I get to working on API implementation, likely next week! In the meantime if you'd like to try implementing it yourself i'd be more than happy to help you with it. If you have any questions you can join our slack: aquasecurity.slack.com |
Thanks @kakkoyun This should be considered when we create the libbpfgo API, as we want to make it stable |
Thanks @grantseltzer. I'll have look at it. It would be nice to join the slack I might have further questions. How can I join, though? It doesn't let me. Do I need an invite? And thanks @yanivagman for the heads up. |
@kakkoyun did you try to self-invite at slack.aquasec.com ? |
Hey 👋 Friendly ping. I couldn't find time to focus on this one but I can dedicate some time to make this happen next week. Any updates on your side or anything I need to know before jumping onto this? |
Hi @kakkoyun, I have not yet started working on this. Been focused on building out the latest release for libbpfgo and tracee, but was going to get to it afterwards. I was thinking i'll save this for you to work on if that's alright. |
Yes, thanks @grantseltzer. I would be happy to give it a try. |
I still haven't gotten to start this. Feel free to go for it :) |
I opened #138 for this, though I did come across quite a few gotcha's to using this API in libbpf, see mailing list thread: https://lore.kernel.org/bpf/CAO658oWagXsQDeFtRA2vZBzov7cwwVNTs5nHE9fMGrMOs6bbpQ@mail.gmail.com/ |
Amazing @grantseltzer, I can't thank you enough. I'll check the PR and the mailing list. |
@grantseltzer I finally got to this :D I'll give a shot at it |
@parca-dev contributor here. First of all, thanks for the fantastic work you are doing here. We are glad
libbpf
exists.To be able to use
BPF_MAP_TYPE_ARRAY_OF_MAPS
andBPF_MAP_TYPE_HASH_OF_MAPS
map types and create maps in user-space we need to access thelibbpf#bpf_create_map
function (and maybebpf_map__set_inner_map_fd
).I would be happy to give it a try if you don't have enough capacity. However, I don't know what I don't know, so it would be slow.
bpf_create_map
: https://github.com/libbpf/libbpf/blob/5b9d079c7f12d5c0b961623e56fdae17c721debf/src/bpf.c#L166-L178@yanivagman @eyakubovich @grantseltzer
cc @brancz
The text was updated successfully, but these errors were encountered: