MaeBPF.IR.Op (maebpf v0.1.0)

Copy Markdown View Source

Typed IR operation emitted by a MaeBPF.Plug or DSL statement.

Summary

Types

op_kind()

@type op_kind() ::
  :drop_invalid
  | :match_l4_port
  | :blocklist_lookup
  | :tls_sni
  | :tls_sni_c
  | :inline_c
  | :count_packets
  | :count_tracepoint
  | :emit_ringbuf
  | :scope
  | :alloc_stack
  | :return

t()

@type t() :: %MaeBPF.IR.Op{
  args: map(),
  desc: String.t() | nil,
  file: String.t() | nil,
  line: non_neg_integer() | nil,
  op: op_kind(),
  plug: module() | nil,
  plug_id: non_neg_integer(),
  stack_bytes: non_neg_integer()
}