BCC tool tcpconnect script fails with an error: no member named 'type' in 'struct iov_iter'

Solution In Progress - Updated -

Issue

  • BCC tool tcpconnect script with the option -d fails 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content