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 & changed io-sock semantics: io-pkt and static libsocket.a are gone, io-sock omits hardware buses unless explicitly loaded (-m pci with mods-pci.so), and legacy CLI options (timer_pulse_prio, taskq_pulse_prio, netisr_threads, npnp_pci) moved to runtime sysctl tunables.
  • Discontinued security abilities: interruptevent (PROCMGR_AID_INTERRUPTEVENT) was removed in QNX 8.0 (only interrupt / PROCMGR_AID_INTERRUPT is used), and runtime secpolgenerate in 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 on rcvid_t, and lean io-sock headers 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 inside tracelogger/traceprinter captures.

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/):

  1. mkifs Bootfile 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, and secpol. Detects 32-bit targets, removed io-pkt, deprecated io-sock CLI options (emitting exact sysctl -w replacements), missing -m pci/mods-pci.so, static libsocket.a, runtime secpolgenerate, missing waitfor /dev/slog & waitfor /dev/socket boot races, and generates a 1-click unified patch diff that lifts a blocked QNX 7.1 bootfile toward QNX 8.0 compliance immediately.
  2. QNX 8.0 Security Policy (secpol) Auditor (core/secpol_analyzer.js): Flags discontinued interruptevent, wildcard */all grants, overly broad allow_attach /dev/*, and undeclared security types; renders a live Type Capability Matrix; auto-remediates interruptevent → interrupt; and emits exact secpolcompile -o secpol.bin host build commands.
  3. System Analysis Toolkit (tracelogger/traceprinter) RTOS Profiler (core/trace_analyzer.js): Parses traceprinter CSV and text captures, computes Ready-to-Run scheduling latency (p50, p95, p99, max, jitter) across QNX priorities 0..255, visualizes execution on an interactive SVG Priority-Lane Oscilloscope, and pinpoints priority inversions (naming the exact mutex, low-priority holder, medium-priority preemptor, and PTHREAD_PRIO_INHERIT fix), IRQ storms, IPC round-trip latency, and APS partition budget overruns.
  4. C/C++/Makefile Porting Scanner & SDP 8.0 Toolchain Generator (core/port_scanner.js): Detects int rcvid → rcvid_t, PROCMGR_AID_INTERRUPTEVENT, missing <net/if.h>, static libsocket.a, legacy io-sock LIBVPATH/EXTRA_INCVPATH, slogf → slog2f, and pthread_mutex_init(..., NULL)—and generates ready-to-build QNX SDP 8.0 CMake toolchains (qcc -Vgcc_ntoaarch64le / x86_64) and QEMU virtio-net launch scripts.
  5. 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/100 QNX8_VERIFIED with 16 us max RTOS latency.
  6. 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 both node bin/qnxscope.mjs and 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 via node --test covering all four engines, diff generation, toolchain generation, and CI exit codes (exit 2 on critical blockers, exit 0 on 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_t scanner 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> so CMakeLists.txt is never mistaken for a traceprinter text capture when both .csv traces and CMakeLists.txt coexist 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, tracelogger priority 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 QEMU aarch64le.
  • 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_64 focus, modular io-sock bus loading, offline secpolcompile hardening, and how QNX System Analysis Toolkit traces reveal subtle RTOS scheduling hazards.

What's next for QNXScope 8.0

  • Direct binary .kev parser support (eliminating the traceprinter export 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.

Built With

Share this project:

Updates

Submission history