#!/usr/bin/env python3 from bcc import BPF with open("tp_tcp.c", 'r') as f: data = f.read() b = BPF(text=data) #b = BPF(src_file="tp_tcp_py.c")