Find out which of your motherboard's USB ports are actually direct to the CPU — and measure it.
Not all USB ports are equal. Some hang off XHCI controllers integrated in the CPU die; others route through the motherboard chipset (an extra PCIe hop) or through internal hubs. portprobe maps your board's real USB topology, labels every controller, and lets you measure per-port input polling consistency with nothing but a USB mouse.
Paste this into PowerShell or Windows Terminal:
irm https://github.com/nprev-dev/portprobe/releases/latest/download/run.ps1 | iexThat's it. The script downloads the latest release (a single ~2 MB portable exe, cached in %LOCALAPPDATA%\portprobe) and runs it in your terminal. No admin rights, no runtime, no installer.
Windows SmartScreen may note the exe is unsigned the first time — that's expected for a small open-source tool. The release page includes SHA256 sums, and you can always build from source (below).
Enumerates every USB host controller, root hub, port, and connected device (the same way Microsoft's USBView does), then walks each controller's PCI parent chain to classify it:
| Badge | Meaning |
|---|---|
[CPU] |
XHCI integrated in the CPU die, directly on the root complex — the most direct path |
[CPU/USB4] |
CPU-attached via a Thunderbolt / USB4 host router |
[CHIPSET] |
Behind the motherboard chipset — traffic crosses the chipset↔CPU link |
[CARD] |
Discrete PCIe USB controller (extra onboard chip or add-in card) |
[?] |
Couldn't classify — the raw PCI path is shown so you can check manually |
Every classification comes with a plain-English reason and the raw PCI path, so you can verify it yourself. Known tricky cases are handled — e.g. the AMD X570 chipset reuses the CPU's I/O die, so its USB controllers report the same device ID as the CPU's; portprobe tells them apart structurally (chipset ports sit behind the chipset's PCIe switch).
Intel note: on most Intel desktop boards nearly all USB ports are on the PCH (chipset). That's normal, and the DMI link adds only a small fixed cost — the tool says so rather than inventing a problem.
Plug a USB mouse into a port, and portprobe timestamps every HID report with QueryPerformanceCounter via Raw Input, then computes:
- nominal & effective polling rate (Hz)
- inter-report interval: mean / median / p99
- jitter (stddev) and outlier percentage
The guided flow auto-detects which controller + port the mouse landed on each time you replug it, so you can walk around the board port by port and compare them in a sortable table.
Press e to export a markdown + JSON report (board model, BIOS, CPU, per-controller classification, per-port measurements). The markdown pastes cleanly anywhere GitHub-flavored markdown renders, if you want to compare boards with someone.
portprobe measures inter-report arrival intervals of a HID device — i.e., how consistently reports from your mouse arrive at the OS. This captures USB polling + controller + driver + scheduling effects. It is not click-to-photon latency, and differences between ports are typically small (tens to hundreds of µs in jitter/p99, not milliseconds). Interesting for the curious and marginal-gains crowd; no magic FPS upgrade.
Practical notes:
- Use a wired (or 2.4 GHz dongle) mouse for port testing — Bluetooth mice don't go through a USB port at all (the tool will tell you if that's the case).
- Keep the mouse moving continuously during a measurement; pauses are detected and excluded, but p99 only means something with steady motion.
- Front-panel ports often route through an internal hub — the report marks these.
- 8 kHz mice: heavy report rates may saturate the message loop; results at 4–8 kHz should be taken with extra salt.
- While measuring, mouse input still reaches other apps — keep the terminal focused.
| Key | Action |
|---|---|
1 / 2 / 3 |
Topology · Measure · Results |
j/k or arrows |
Move selection |
r |
Rescan topology |
Space |
Start / stop / save measurement |
d |
Discard measurement |
s |
Cycle results sort column |
x |
Delete selected result |
e |
Export report (JSON + markdown) |
? |
Help |
q |
Quit |
portprobe # TUI (default)
portprobe --scan # print the topology tree and exit
portprobe --json # topology as JSON
portprobe --measure # headless measurement (--seconds N, default 10)
portprobe --report # export a report without the TUI
git clone https://github.com/nprev-dev/portprobe
cd portprobe
cargo build --release # target/release/portprobe.exeRust stable, Windows 10/11 only (it's all SetupAPI/CfgMgr32/Raw Input). No admin required.
Each XHCI controller's devnode is walked up the PCI tree (CM_Get_Parent). A controller directly on the root complex (no bridges off bus 0 above it) with a known CPU-integrated device ID is [CPU]. A controller behind the chipset's PCIe switch is [CHIPSET] — detected structurally (intermediate bridges on non-zero buses) plus known ID tables for AMD Promontory, Intel PCH (bus 0 device 0x14), and common discrete controllers (ASMedia, Renesas, VIA…). Unknowns are labeled [?] with the full path rather than guessed.
MIT