iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.58k stars 3.88k forks source link

How to run TCPSYNBL giving Exception: Failed to compile BPF text #4181

Open Zarak-Shah-ji opened 2 years ago

Zarak-Shah-ji commented 2 years ago

I"m able to run other tools like TCPLIFE but i didn't have TCPSYNBL available when i cloned the repo , so i tried to create a file and copy the code from the repo but when i try to run it using ./tcpsynbl it shows: `/virtual/main.c:17:10: error: no member named 'atomic_increment' in 'struct dist_table_t' dist.atomic_increment(key);


1 error generated.
Traceback (most recent call last):
  File "./tcpsynbl", line 60, in <module>
    b = BPF(text=bpf_text)
  File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 325, in __init__
    raise Exception("Failed to compile BPF text")
Exception: Failed to compile BPF text
`
fredfany commented 8 months ago

Has this issue been solved by yourselt? I meet it in my host which is CentOS 8.5 with the kernel version 4.18.0-348.el8.x86_64.