> For the complete documentation index, see [llms.txt](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.17.md).

# 08.17 使用ePBF

`eBPF`是增强的伯克利包过滤器，它是一个内核的虚拟机，集成到`Linux`内核中，可用于`Linux`跟踪。为了能够使用`eBPF`，需要使用`CONFIG_BPF_SYSCALL`选项编译内核，该选项在`Ubuntu Linux`上自动激活。

> *`eBPF`在内核版本相对较新的`Linux`机器上工作，但不在`macOS`或`Mac OS X`机器上工作。*

你可以在`https://github.com/iovisor/bcc`上了解更多关于`eBPF`的信息，在`https://kinvolk.io/blog/2016/11/introducing-gobpf---using-ebpf-from-go/`上了解`eBPF`和`Go`。`gobpf`包可在`https://github.com/iovisor/gobpf/`上找到。

不幸的是，对`eBPF`和`Go`的进一步讨论超出了本书的范围。
