doc.go 876 B

123456789101112131415161718
  1. // Package ebpf is a toolkit for working with eBPF programs.
  2. //
  3. // eBPF programs are small snippets of code which are executed directly
  4. // in a VM in the Linux kernel, which makes them very fast and flexible.
  5. // Many Linux subsystems now accept eBPF programs. This makes it possible
  6. // to implement highly application specific logic inside the kernel,
  7. // without having to modify the actual kernel itself.
  8. //
  9. // This package is designed for long-running processes which
  10. // want to use eBPF to implement part of their application logic. It has no
  11. // run-time dependencies outside of the library and the Linux kernel itself.
  12. // eBPF code should be compiled ahead of time using clang, and shipped with
  13. // your application as any other resource.
  14. //
  15. // This package doesn't include code required to attach eBPF to Linux
  16. // subsystems, since this varies per subsystem.
  17. package ebpf