You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ubuntu 18.04 lts , Kernel version : 5.4.0-91-generic
Describe the bug
I successfully build tcpconnect example using bee build tcpconnect.c tcp:v2
But while running it using bee run tcp:v2 getting below error:
SUCCESS Fetching program from registry: tcp:v2
ERROR Loading BPF program and maps into Kernel
Error: map events_ring: map create: invalid argument
2022/01/11 14:42:58 exiting: map events_ring: map create: invalid argument
I also tested a hash map and ring buffer test ebpf codes separately. I saw that the code using hash_map ran successfully but the one with ring buffer is giving the same error while running.
Steps to reproduce the bug
bee build tcpconnect.c tcp:v2
bee run tcp:v2
Expected Behavior
It shall run successfully.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
arayu05
changed the title
invalid argument Error while running ebpf code having ring buffer iwth bee
invalid argument Error while running ebpf code having ring buffer using bee
Jan 12, 2022
The fix for issues like this should be to leverage the new compat layer that could fall back to legacy map types if the new ones are not supported in the kernel running the code, like this: iovisor/bcc#4282
For that, we should add support for perfbuf first.
Version
0.0.9
Linux Version
ubuntu 18.04 lts , Kernel version : 5.4.0-91-generic
Describe the bug
I successfully build tcpconnect example using
bee build tcpconnect.c tcp:v2
But while running it using
bee run tcp:v2
getting below error:I also tested a hash map and ring buffer test ebpf codes separately. I saw that the code using hash_map ran successfully but the one with ring buffer is giving the same error while running.
Steps to reproduce the bug
Expected Behavior
It shall run successfully.
Additional Context
No response
The text was updated successfully, but these errors were encountered: