Documentation
¶
Overview ¶
CEL -> BPF code generation Heavily based on an earlier implementation by Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Cel -> BPF code generation Heavily based on an earlier implementation by Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Cel -> BPF code generation Heavily based on an earlier implementation by Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
CEL -> BPF code generation Heavily based on an earlier implementation by Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Cel -> BPF code generation Heavily based on an earlier implementation by Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Index ¶
- func Compile(celExpr string, sig []v1alpha1.KProbeArg, labelPrefix string) (asm.Instructions, []uint16, error)
- func CompileEmptyFunction(fnName string) asm.Instructions
- func CompileFn(fnName, celExpr string, sig []v1alpha1.KProbeArg) (asm.Instructions, []uint16, error)
- func EnabledInBPF() bool
- func Supported() bool
- type Env
- type ExprArg
- type Provider
- func (p *Provider) EnumValue(_ string) cgRef.Val
- func (p *Provider) FindIdent(_ string) (cgRef.Val, bool)
- func (p *Provider) FindStructFieldNames(_ string) ([]string, bool)
- func (p *Provider) FindStructFieldType(_, _ string) (*cgTypes.FieldType, bool)
- func (p *Provider) FindStructType(_ string) (*cgTypes.Type, bool)
- func (p *Provider) NewValue(_ string, _ map[string]cgRef.Val) cgRef.Val
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileEmptyFunction ¶
func CompileEmptyFunction(fnName string) asm.Instructions
func EnabledInBPF ¶
func EnabledInBPF() bool
EnabledInBPF returns true if celbpf is supported in the BPF programs
func Supported ¶
func Supported() bool
Supported returns true if celbpf is supported at runtime NB: The cel_expr code uses bpf-to-bpf calls, so we need to detect whether mixing bpf-to-bpf calls and tail-calls is allowed. See: https://lore.kernel.org/bpf/20200829231925.GB31692@ranger.igk.intel.com/T/
Types ¶
type Provider ¶
type Provider struct{}