Inspiration
QNX OS 8.0 (now free for non-commercial development via QNX Everywhere) delivers deterministic hard real-time performance across 64-bit multicore systems. Yet developers adopting QNX 8.0 or migrating existing QNX 7.1 BSPs repeatedly run into the same frustrating failure modes after flashing a board or launching QEMU:
- Removed
io-pkt& changedio-socksemantics:io-pktand staticlibsocket.aare gone,io-sockomits hardware buses unless explicitly loaded (-m pciwithmods-pci.so), and legacy CLI options (timer_pulse_prio,taskq_pulse_prio,netisr_threads,npnp_pci) moved to runtimesysctltunables. - Discontinued security abilities:
interruptevent(PROCMGR_AID_INTERRUPTEVENT) was removed in QNX 8.0 (onlyinterrupt/PROCMGR_AID_INTERRUPTis used), and runtimesecpolgeneratein boot scripts should be replaced with pre-compiled/proc/boot/secpol.bin. - 64-bit & ABI hardening: 32-bit targets (
armv7/x86) are unsupported, receive IDs standardize onrcvid_t, and leanio-sockheaders require explicit<net/if.h>and<sys/types.h>. - Hidden RTOS scheduling jitter: Even on a deterministic microkernel, mutexes without
PTHREAD_PRIO_INHERIT, IRQ storms, and APS partition overruns can cause microsecond-to-millisecond deadline misses that only surface insidetracelogger/traceprintercaptures.
We built QNXScope 8.0 so every QNX developer—on Windows, macOS, or Linux, with or without target hardware—can catch these defects statically in seconds before flashing an image.
What it does
QNXScope 8.0 ships as both a cross-platform CI-ready Host CLI (bin/qnxscope.mjs) and an interactive browser-based Engineering Workbench sharing the exact same zero-dependency ES module analysis engines (core/):
mkifsBootfile Static Analyzer & 1-Click QNX 7.1 → 8.0 Migrator (core/buildfile_analyzer.js): Parses[virtual=...],[+script],[autoso],procnto-smp-instr,slogger2,io-pkt/io-sock, andsecpol. Detects 32-bit targets, removedio-pkt, deprecatedio-sockCLI options (emitting exactsysctl -wreplacements), missing-m pci/mods-pci.so, staticlibsocket.a, runtimesecpolgenerate, missingwaitfor /dev/slog&waitfor /dev/socketboot races, and generates a 1-click unified patch diff that lifts a blocked QNX 7.1 bootfile toward QNX 8.0 compliance immediately.- QNX 8.0 Security Policy (
secpol) Auditor (core/secpol_analyzer.js): Flags discontinuedinterruptevent, wildcard*/allgrants, overly broadallow_attach /dev/*, and undeclared security types; renders a live Type Capability Matrix; auto-remediatesinterruptevent→interrupt; and emits exactsecpolcompile -o secpol.binhost build commands. - System Analysis Toolkit (
tracelogger/traceprinter) RTOS Profiler (core/trace_analyzer.js): ParsestraceprinterCSV and text captures, computes Ready-to-Run scheduling latency (p50,p95,p99,max, jitter) across QNX priorities0..255, visualizes execution on an interactive SVG Priority-Lane Oscilloscope, and pinpoints priority inversions (naming the exact mutex, low-priority holder, medium-priority preemptor, andPTHREAD_PRIO_INHERITfix), IRQ storms, IPC round-trip latency, and APS partition budget overruns. - C/C++/Makefile Porting Scanner & SDP 8.0 Toolchain Generator (
core/port_scanner.js): Detectsint rcvid→rcvid_t,PROCMGR_AID_INTERRUPTEVENT, missing<net/if.h>, staticlibsocket.a, legacyio-sockLIBVPATH/EXTRA_INCVPATH,slogf→slog2f, andpthread_mutex_init(..., NULL)—and generates ready-to-build QNX SDP 8.0 CMake toolchains (qcc -Vgcc_ntoaarch64le/x86_64) and QEMUvirtio-netlaunch scripts. - Reference QNX 8.0 C11 Resource Manager (
samples/qnx8-sensor-resmgr/): Complete idiomatic QNX OS 8.0 IMU resource manager (main.c,CMakeLists.txt,qnx8-aarch64le.cmake,sensor-node.build,sensor-node.secpol,sensor-trace.csv) scoring 100/100QNX8_VERIFIEDwith16 usmax RTOS latency. - 6-Lab Hands-On Codelab (
docs/CODELAB.md&/#codelab): A 50-minute guided curriculum walking builders from a failing QNX 7.1 ADAS bundle and a medical infusion pump priority inversion all the way to a CI-verified QNX 8.0 release candidate.
How we built it
- Shared Core Engines (
core/*.js): Zero-dependency ES modules powering bothnode bin/qnxscope.mjsand the Vite/React workbench so CLI CI gates and browser inspections produce byte-identical diagnostics. - Precision Systems Workbench (
src/): Built with React 18, Vite 6, Tailwind CSS, and custom SVG priority-lane oscilloscope rendering styled after real embedded hardware/profiler tools (tabular monospace metrics, clean light surfaces, zero visual clutter). - Automated Verification (
tests/qnxscope.test.mjs): 7 unit and CLI integration tests vianode --testcovering all four engines, diff generation, toolchain generation, and CI exit codes (exit 2on critical blockers,exit 0on verified QNX 8.0 builds), plus Playwright visual verification with zero console errors and zero overflow across desktop and mobile.
Challenges we ran into
- Ensuring the
rcvid_tscanner recognized QNX's official cross-version portability guard (#ifndef __RCVID_T_SIZE / typedef int rcvid_t; / #endif) without emitting false positives on compliant QNX 8.0 resource managers. - Handling real directory structures in
qnxscope audit <dir>soCMakeLists.txtis never mistaken for atraceprintertext capture when both.csvtraces andCMakeLists.txtcoexist in the same QNX target folder. - Designing a compact, crisp SVG scheduling timeline that makes a 3-thread priority inversion and 4-IRQ storm immediately legible at both 1440px desktop and 390px mobile viewports.
Accomplishments that we're proud of
- Turning dense QNX OS 8.0 migration rules (
io-sock,sysctl,mods-pci.so,interruptevent,rcvid_t,traceloggerpriority inversion) into an immediate, actionable host tool that works out-of-the-box with zero target hardware required while also shipping a clean QNX SDP 8.0 C11 resource manager ready for QEMUaarch64le. - Creating both an interactive browser 6-Lab Codelab (
https://webinstudio-plugins.github.io/qnxscope/#codelab) and a standalone Markdown tutorial (docs/CODELAB.md) where every lab links directly to live presets and CLI checkpoints.
What we learned
- Deep hands-on understanding of QNX OS 8.0's architectural modernization: 64-bit
aarch64le/x86_64focus, modulario-sockbus loading, offlinesecpolcompilehardening, and how QNX System Analysis Toolkit traces reveal subtle RTOS scheduling hazards.
What's next for QNXScope 8.0
- Direct binary
.kevparser support (eliminating thetraceprinterexport step), SARIF output for GitHub Code Scanning PR annotations, and a VS Code extension integrating QNXScope diagnostics directly alongside the official QNX VS Code extension.