Documentation
ΒΆ
There is no documentation for this package.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
bench
|
|
|
cmd/report
command
Command report aggregates one or more bench/cmd/scenario JSON outputs into a markdown summary.
|
Command report aggregates one or more bench/cmd/scenario JSON outputs into a markdown summary. |
|
cmd/scenario
command
Command scenario runs a perf-agent --unwind dwarf startup benchmark against a synthetic process fleet, recording per-binary CFI compile timings via dwarfagent.Hooks.
|
Command scenario runs a perf-agent --unwind dwarf startup benchmark against a synthetic process fleet, recording per-binary CFI compile timings via dwarfagent.Hooks. |
|
internal/fleet
Package fleet spawns and manages a set of child processes used as a fixture for the perf-agent scenario benchmark.
|
Package fleet spawns and manages a set of child processes used as a fixture for the perf-agent scenario benchmark. |
|
inject
|
|
|
elfsym
Package elfsym provides ELF symbol resolution and SONAME parsing primitives shared across language-specific injectors (inject/python, future inject/nodejs, etc.).
|
Package elfsym provides ELF symbol resolution and SONAME parsing primitives shared across language-specific injectors (inject/python, future inject/nodejs, etc.). |
|
ptraceop
Package ptraceop provides low-level ptrace primitives for remote function invocation: attach, save registers, write a payload, run a sequence of remote function calls (each returning via SIGSEGV at address 0), restore registers, detach.
|
Package ptraceop provides low-level ptrace primitives for remote function invocation: attach, save registers, write a payload, run a sequence of remote function calls (each returning via SIGSEGV at address 0), restore registers, detach. |
|
python
Package python implements injection of CPython 3.12+'s perf trampoline (sys.activate_stack_trampoline) into running processes via ptrace, so that perf-agent can resolve Python JIT frames to qualnames without requiring the target to be launched with `python -X perf`.
|
Package python implements injection of CPython 3.12+'s perf trampoline (sys.activate_stack_trampoline) into running processes via ptrace, so that perf-agent can resolve Python JIT frames to qualnames without requiring the target to be launched with `python -X perf`. |
|
internal
|
|
|
bpfstack
Package bpfstack parses the raw layout produced by BPF_MAP_TYPE_STACK_TRACE: a fixed 127-slot buffer of little-endian u64 instruction pointers, terminated by a zero slot.
|
Package bpfstack parses the raw layout produced by BPF_MAP_TYPE_STACK_TRACE: a fixed 127-slot buffer of little-endian u64 instruction pointers, terminated by a zero slot. |
|
k8slabels
Package k8slabels derives Kubernetes identity labels from a target process's cgroup path and the agent's own downward-API environment.
|
Package k8slabels derives Kubernetes identity labels from a target process's cgroup path and the agent's own downward-API environment. |
|
nspid
Package nspid translates a PID from any Linux PID namespace into the outermost (host) kernel PID.
|
Package nspid translates a PID from any Linux PID namespace into the outermost (host) kernel PID. |
|
perfdata
Package perfdata writes Linux kernel perf.data files.
|
Package perfdata writes Linux kernel perf.data files. |
|
perfevent
Package perfevent opens per-CPU software perf_event_open events and attaches a BPF program to each.
|
Package perfevent opens per-CPU software perf_event_open events and attaches a BPF program to each. |
|
Package metrics provides types and interfaces for exporting performance metrics.
|
Package metrics provides types and interfaces for exporting performance metrics. |
|
Package perfagent provides a library interface for the performance monitoring agent.
|
Package perfagent provides a library interface for the performance monitoring agent. |
|
Package symbolize provides perf-agent's address-to-frame resolution abstraction.
|
Package symbolize provides perf-agent's address-to-frame resolution abstraction. |
|
debuginfod/cache
Package cache stores debuginfod-fetched artifacts on disk under a .build-id/<NN>/<rest>{.debug,} layout that blazesym's debug_dirs walker recognizes natively.
|
Package cache stores debuginfod-fetched artifacts on disk under a .build-id/<NN>/<rest>{.debug,} layout that blazesym's debug_dirs walker recognizes natively. |
|
unwind
|
|
|
dwarfagent
Package dwarfagent wires the perf_dwarf BPF program, the ehmaps lifecycle (TableStore / PIDTracker / MmapWatcher), and pprof output into a single Profiler with the same Collect/CollectAndWrite shape as profile.Profiler.
|
Package dwarfagent wires the perf_dwarf BPF program, the ehmaps lifecycle (TableStore / PIDTracker / MmapWatcher), and pprof output into a single Profiler with the same Collect/CollectAndWrite shape as profile.Profiler. |
|
ehcompile
Package ehcompile parses an ELF file's .eh_frame section and produces flat tables of unwind rules suitable for loading into BPF maps.
|
Package ehcompile parses an ELF file's .eh_frame section and produces flat tables of unwind rules suitable for loading into BPF maps. |
|
ehmaps
Package ehmaps populates the BPF-side CFI / classification / pid-mappings maps from unwind/ehcompile output.
|
Package ehmaps populates the BPF-side CFI / classification / pid-mappings maps from unwind/ehcompile output. |
|
fpwalker
Package fpwalker unwinds a stack given captured registers and raw stack bytes from a PERF_SAMPLE_STACK_USER sample, assuming the target used frame pointers.
|
Package fpwalker unwinds a stack given captured registers and raw stack bytes from a PERF_SAMPLE_STACK_USER sample, assuming the target used frame pointers. |
|
perfreader
Package perfreader captures PERF_RECORD_SAMPLE events via perf_event_open with REGS_USER + STACK_USER so userspace can DWARF-unwind the raw stack.
|
Package perfreader captures PERF_RECORD_SAMPLE events via perf_event_open with REGS_USER + STACK_USER so userspace can DWARF-unwind the raw stack. |
|
procmap
Package procmap resolves addresses into per-binary mapping identity (path, start/limit, file offset, build-id) by parsing /proc/<pid>/maps and ELF .note.gnu.build-id sections.
|
Package procmap resolves addresses into per-binary mapping identity (path, start/limit, file offset, build-id) by parsing /proc/<pid>/maps and ELF .note.gnu.build-id sections. |
Click to show internal directories.
Click to hide internal directories.