MaeBPF.IR.Program (maebpf v0.1.0)

Copy Markdown View Source

Typed eBPF program entry inside %MaeBPF.IR.Module{}.

Summary

Types

hook()

@type hook() ::
  :xdp
  | {:tcx, :ingress | :egress}
  | {:cgroup_skb, :ingress | :egress}
  | {:tracepoint, String.t()}

t()

@type t() :: %MaeBPF.IR.Program{
  c_name: String.t(),
  default_action: atom(),
  hook: hook(),
  meta: map(),
  name: atom(),
  ops: [MaeBPF.IR.Op.t()],
  section: String.t()
}