COLLAPSE ALL
  • Home
  • About Pixie
    • Pixie Overview
    • Data Sources
    • How Pixie uses eBPF
    • Roadmap
    • FAQ
    • Troubleshooting
  • Installing Pixie
    • Requirements
  • Using Pixie
    • Using the Live UI
    • Using the CLI
    • Using the API
  • Tutorials
  • Reference
    • Architecture
    • PxL
      • Tracepoint Management
        • pxtrace.DeleteTracepoint
        • pxtrace.TraceProgram
        • pxtrace.UpsertTracepoint

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.