EXPAND ALL
  • Home

pxtrace.TraceProgram

Creates a trace program. Selectors for supported hosts can be specified using key-value arguments.

Arguments

NameTypeDescription
programstrThe BPFtrace program string.
min_kernelstr, optionalThe minimum kernel version that the tracepoint is supported on. Format is `<version>.<major>.<minor>`.
max_kernelstr, optionalThe maximum kernel version that the tracepoint is supported on. Format is `<version>.<major>.<minor>`.
host_namestr, optionalRestrict the tracepoint to a specific host.

Returns

TraceProgram: A pointer to the TraceProgram that can be passed as a probe_fn to UpsertTracepoint.

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.