I am currently running Fedora 43, which has python3-bcc v0.35.0, which does not support the 6.18 kernel.
Support for 6.18 was only added in v0.36.0: https://github.com/iovisor/bcc/releases/tag/v0.36.0
Therefore I had to make the following adjustments to sockdump.py to prevent an error:
diff --git a/sockdump.py b/sockdump.py
index 25c51ed..5522b50 100755
--- a/sockdump.py
+++ b/sockdump.py
@@ -11,6 +11,10 @@ import multiprocessing
from bcc import BPF
bpf_text = '''
+struct bpf_task_work {
+ __u64 __opaque;
+} __attribute__((aligned(8)));
+
#include <linux/sched.h>
#include <linux/net.h>
#include <uapi/linux/un.h>
Source: iovisor/bcc#5444 (comment)
Is this worthy of committing to sockdump?
I am currently running Fedora 43, which has
python3-bccv0.35.0, which does not support the 6.18 kernel.Support for 6.18 was only added in v0.36.0: https://github.com/iovisor/bcc/releases/tag/v0.36.0
Therefore I had to make the following adjustments to
sockdump.pyto prevent an error:Source: iovisor/bcc#5444 (comment)
Is this worthy of committing to
sockdump?