Repository navigation
Debugging Tool Ripgrep
← Debugging Tools and Commands
ripgrep performs fast recursive source searches while respecting ignore rules. Use it after runtime evidence supplies a function, state name, register, trace label, or failure message.
| Property | Details |
|---|---|
| Supported OS | Windows, Linux, macOS. |
| Install | Install ripgrep using a package manager or official binary release. |
| Verify | rg --version |
| Primary output | See the workflow below. |
Once profiling gives you a symbol, register name, trace label, or FIXME, rg is the fastest way to map it back into the source tree.
rg -n "tlb_reset_dirty_range_all" .
rg -n "create_pipeline" hw include uirg -n "tlb_reset_dirty_range_all|tlb_reset_dirty|dirty_range" .
rg -n "vkQueueSubmit|vkWaitForFences|pgraph_vk_finish" hw/xboxrg -n "FIXME|TODO|assert\(" hw/xboxrg gives static source locations. The next job is to reconstruct:
caller
-> state mutation
-> callee
-> synchronization / cache / DMA side effect
-> return / retry / guest-visible result
A text match is not runtime evidence. Use it to understand the path already identified by the trace.
A text match is static evidence. Reconstruct callers, state ownership, error handling, and synchronization, then prove the relevant path executed.
By default ripgrep honors ignore files and skips hidden/binary files. Use -uuu only when the investigation intentionally needs ignored, hidden, and binary content.
- Tool name and exact version.
- Source commit/tree and executable SHA-256.
- The complete command or saved profile used.
- Input artifact hashes and the explicitly selected time or address range.
- Raw output plus any derived report; do not retain only a screenshot or conclusion.
- Admission failures, warnings, dropped events, incomplete rows, or unsupported operations.
DSP tooling guide and navigation updated November 2, 2026 for experimental PR #384, source 8f51d237. Capture/replay usage and limits.
The earlier wiki-wide review was published November 1, 2026. Emulator source: b7140848. Reviewed wiki content: 1d2b671. Current status · Release availability · Publication process.
- Home
- Current status
- Stable versus main
- Implemented mechanisms
- Controls and defaults
- Measured results and limits
- Complete change register
- System
- CPU and vCPU
- Memory and DMA
- Graphics / NV2A
- APU and audio
- Timing and timers
- Platform and I/O
- Hardware observations
- Fidelity boundaries
- Methodology
- PGR2 routes
- Debugging lag / hot paths
- Tools and commands
- DSP capture, replay and fuzzing
- HLE readiness and public XISO proof
- Concurrent DSP shadow and OpenAL proof
- DSP HLE operation inventory
- DSP HLE fix examples and testing
- Development
- Upstream shortlist
- Wiki maintenance
- Research / retired work
- Optimization catalog
- Hot-path shortcuts
- Researched experiments
- Unproven proposal directory
- PR lessons
- September26 snapshot
Repository · PRs · Issues