Documentation ¶
Overview ¶
Package clang implements a simple wrapper for invoking clang to compile C to eBPF
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opts ¶
type Opts struct { // clang binary to use Clang string // Header directories to include Include []string // Destination directory for compiled programs. // Uses a temporary directory if empty. Output string // Emit DWARF debug info in the XDP elf. // Required for BTF. EmitDebug bool }
CompileOpts configure how an XDP program is compiled / built
Click to show internal directories.
Click to hide internal directories.