Documentation
¶
Overview ¶
Package parcagpu reads GPU events from the eBPF profiler's cupti_events ringbuf, marries them with symbolized CUDA stack traces from the profiler's interpreter/gpu package, and reports the completed traces directly via a TraceReporter. CUDA stack traces from the profiler are diverted into the GPU fixer via a Wrap'd reporter that the tracer is configured with as its TraceReporter.
Every event in the ringbuf begins with a u32 event_type discriminator at offset 0; the reader loop dispatches by tag to handlers for kernel timing, cubin-loaded notifications, PC samples, stall-reason maps, and BPF errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ctx context.Context, tr *tracer.Tracer, rep reporter.TraceReporter, exeRep reporter.ExecutableReporter, )
func Wrap ¶ added in v0.49.0
func Wrap(inner reporter.TraceReporter) reporter.TraceReporter
Wrap returns a TraceReporter that intercepts CUDA-origin traces, runs them through the GPU fixer, and forwards the resulting completed traces (zero or more per input) to inner. Non-CUDA traces are forwarded to inner unchanged. Pair with Start to drain the cupti_events ringbuf for kernel-timing, cubin-loaded, PC-sample, and stall-reason events.
Types ¶
This section is empty.