Real-Time Microkernel Observability
For Mission-Critical Systems
An open-source diagnostic profiler and Resource Manager that detects which QNX threads are REPLY-blocked, on which server channel, and for how long. Designed for safety-critical real-time environments.
QNX-TOP v1.1.0 │ SAMPLE DATA, NOT A LIVE CAPTURE Core 0: [■■■■■■■■■■······] 64.2% (CtxSw: 3,920/s) │ Core 1: [■■■■■···········] 32.1% (CtxSw: 2,140/s) RAM: 812 MB / 4096 MB (19.8%) │ ResMgr Pool: 48.2 MB │ Channel Messages: 97,420 msgs/sec ────────────────────────────────────────────────────────────────────────────────────────── PID TID PRI STATE CHID PULSES/S COMMAND 1 1 255r RUNNING 0x01 2,410 [kernel/procmgr] 124 1 21f RECEIVE 0x03 84,102 /sbin/devc-ser8250 256 1 30f RECEIVE 0x04 12,940 /sbin/io-pkt-v6-hc 312 1 18f REPLY-blocked - 312 /sbin/devb-eide [waiting on PID 124 CHID 0x03: 12.4ms (kernel)] 480 1 40r RUNNING 0x08 450,119 /usr/bin/safety_actuator
Purpose-Built for QNX Microkernels
Traditional Unix tools can't see microkernel primitives. qnx-top bridges the gap.
REPLY-Blocked Client Tracking
Shows which threads are REPLY-blocked, on which server process and channel, and for how long. Priority inversion detection is not implemented.
Adaptive Partitioning (APS)
Detects whether the APS scheduler is active on the target. Per-partition budgets are not read yet and are shown as N/A.
/dev Listing and Telemetry Endpoint
Lists the entries under /dev (owner and handler details are shown as N/A) and serves a text report at /dev/qnx_top.
Microkernel Deep Diagnostics
Unmasking synchronous IPC bottlenecks that standard monolithic top tools cannot see.
MsgSend & MsgReceive Tracing
Maps client threads in STATE_REPLY directly to the target server process and channel ID (chid). Highlights stalls exceeding the 2.0 ms safety threshold.
Native Resource Manager
Registers /dev/qnx_top as a standard POSIX I/O device. Read diagnostic snapshots anytime with cat /dev/qnx_top via a dedicated dispatch thread.
Turnkey Stall Reproducer
Includes qnx-stall-demo, a test utility to inject controlled server latency into real QNX channels and verify observability pipelines under load.
Quickstart & Build Instructions
Built with standard C11 and CMake for QNX Neutrino 8.0 SDP and host compatibility.
1. Target Build (QNX SDP 8.0)
Cross-compile with the official QNX toolchain.
cmake -B build -DCMAKE_TOOLCHAIN_FILE=cmake/qnx800-x86_64.toolchain.cmake
cmake --build build
- Targets QNX Neutrino 8.0 x86_64 & aarch64
- Native procfs & devctl telemetry
2. Host Mode & CI Suites
Verify algorithms, snapshot invariants & concurrency.
cmake --build build
ctest --test-dir build --output-on-failure
- Comprehensive state mapping unit tests
- LLVM ThreadSanitizer verified
3. Run & Observe Stalls
Launch profiler with live thread inspection.
./qnx-stall-demo -d 50
# Terminal 2: Inspect blocked threads
./qnx-top -t
- Thread view with server channel attribution
- Instant
cat /dev/qnx_topsnapshot