Closed GermanCoding closed 2 years ago
Hm, RingBuf is a reasonably new code to begin with, so it's super helpful you can test this in real life. @rhdxmr I can't see an obvious reason in https://github.com/foniod/redbpf/commit/51e118df6514188220afabe9128081e49ea0b543 for this to happen. Do you have any ideas?
Hello again 😄 ,
commit 51e118df6514188220afabe9128081e49ea0b543 indeed fixed issue #325, however since that commit Ring Buffer maps no longer work. No matter what output size I choose, the OS always reports Invalid Argument error.
Minimal reproducer probe:
Loading this probe with log level set to debug prints:
This issue was introduced via commit 51e118df6514188220afabe9128081e49ea0b543. Prior to that commit I would only get this "invalid argument OS error" error when attempting to create a RingBuf map that is not a power of two. Now it seems to appear for every RingBuf map, no matter what size I choose.
I've quickly skimmed over other map types and it seems only the RingBuf ones cause panics, others seem to work fine.
Again, thanks for redBPF and the quick fix 👍