-
libbpf avoids this issue by adjusting the size to an integer multiple of 4096 before the syscall, so does ebpfgo need to perform the same handling? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The value of 4096 is probably not a constant, I'm guessing it's the size of an operating system page? I'm always very careful about enforcing another system's (here the kernel) constraints, since it can cause problems if the kernel ever decides to change the limit. To sum up, I think that silently changing the value is a bad idea. We could / should however make this easier to figure out for users. A rough idea: if the syscall returns
|
Beta Was this translation helpful? Give feedback.
-
Issue got resolved with the merge of #1420. |
Beta Was this translation helpful? Give feedback.
Issue got resolved with the merge of #1420.