Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MapName is the name of the map. MapName = "cilium_percpu_trace_id" // MaxEntries represents the maximum number of trace ID entries. MaxEntries = 1 )
Variables ¶
View Source
var Cell = cell.Module( "iptrace-map", "eBPF map for IP tracing", cell.Provide( func(lc cell.Lifecycle) bpf.MapOut[*ipTraceMap] { m := NewMap() lc.Append(cell.Hook{ OnStart: func(startCtx cell.HookContext) error { return m.OpenOrCreate() }, OnStop: func(stopCtx cell.HookContext) error { return m.Close() }, }) return bpf.NewMapOut(m) }, ), )
Cell provides the PerCPUTraceMap, which is an eBPF map used for IP tracing. This map is designed to store trace IDs on a per-CPU basis, allowing for efficient and concurrent tracing of IP packets. The map has a maximum of one entry, which is used to store the trace ID for the current CPU.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.