Want to understand the issue with BPFTRACE_HAVE_BTF #3054
Replies: 3 comments 7 replies
-
tcpconnect.bt uses the TLDR; you need to install the glibc-headers package (or other package containing |
Beta Was this translation helpful? Give feedback.
-
I added a little comment to this file, which may help future users: #3055 |
Beta Was this translation helpful? Give feedback.
-
If the question is "why is sys/socket.h used instead of linux/socket.h": |
Beta Was this translation helpful? Give feedback.
-
Hi Team - I have deployed latest version of bpftrace (appimage) in ubuntu 20.04. I am running
tcpconnect.bt
from tools section.But while running the
tcpconnect.bt
, it gives me an error thatsys/socket.h
is not available.I was looking at the code for
tcpconnect.bt
and it has following include files:I also ran the script check_kernel_features.sh which returned that all features are available. Linux headers are also available.
Could you explain why the
sys/socket.h
is being called when BTF is enabled on the VM? What could be missing?Beta Was this translation helpful? Give feedback.
All reactions