sockops test make build ./bin/sockops other terminal # bpftool prog show | grep sock_ops 247: sock_ops name program tag ad371c5bdf7d84db gpl sock_ops已经挂载到内核,然后可以用bpftool attach到cgroup上。 参考 ebpf/sockops/test.md