BCC tool tcpconnect script fails with an error: no member named 'type' in 'struct iov_iter'
Issue
- BCC tool
tcpconnectscript with the option-dfails with an error:no member named 'type' in 'struct iov_iter'
# /usr/share/bcc/tools/tcpconnect -d
/virtual/main.c:188:26: error: no member named 'type' in 'struct iov_iter'
if (msghdr->msg_iter.type != ITER_IOVEC)
~~~~~~~~~~~~~~~~ ^
1 error generated.
Traceback (most recent call last):
File "/usr/share/bcc/tools/tcpconnect", line 485, in <module>
b = BPF(text=bpf_text)
File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 365, in __init__
raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>
Environment
- Red Hat Enterprise Linux release 9.0
- bcc-tools
- tcpconnect
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.