-
-
Tab 1: ADAS Priority-Inversion Bug (4,820 µs max WCET, 2 inversions, 4-core SMP Gantt + Scatter + IPC table)
-
Tab 1: Zoomed 3.0× into seq #4 CPU 0 Preemption Window + Log10 Latency Scatter
-
Tab 1: Verified ChannelCreate(0) Priority Inheritance Fix (4,820 µs → 18 µs, 99.6% drop, CI GATE: PASS)
-
Tab 2: 10-Rule mkifs & secpol Hardening Linter catching 9 real QNX 8.0 issues + drafting .secpol & QEMU commands
-
Tab 4: Interactive 6-Step QNX 8.0 Codelab with progress tracking & live Studio bridge buttons
-
Tab 3: Surgical 1kHz SVG Wait-For Graph Deadlock Cycle + slog2 Critical Fault Correlator + Markdown Audit Report
Inspiration
Building deterministic automotive ADAS, avionics, and surgical robotics services on QNX SDP 8.0 requires coordinating four distinct host/target artifacts: mkifs .build image manifests, .secpol security policies, tracelogger/traceprinter SAT kernel traces, and pidin threads + slog2info diagnostics. Today, engineers inspect these manually across disconnected terminal dumps—making subtle regressions like disabling priority inheritance (_NTO_CHF_FIXED_PRIORITY), shipping uid=0 services without secpolpush, or introducing circular MsgSend/MsgReply deadlocks painfully slow to diagnose and impossible to gate automatically in CI.
We built QNX-PULSE to give every QNX 8.0 developer—from first-time QNX Everywhere QEMU learners to senior ISO 26262 / IEC 62304 teams—an instant, zero-dependency host studio, fail-closed CI auditor, and guided 6-step codelab.
What it does
QNX-PULSE runs 100% locally in Node.js (>= 20) and statically in any browser (GitHub Pages) with zero external dependencies, unifying four core workbenches alongside a real compilable QNX 8.0 C target (qnx-target/):
- RTOS Trace & Multi-Core IPC Timeline (Tab 01):
- Parses real QNX SDP 8.0
traceprintercaptures into an interactive HTML5 Canvas 2D 4-core SMP Scheduling Gantt (THRUNNINGslices with zoom, pan, hover tooltips, and red-hatched Priority Inversion windows) plus an IPC Latency Scatter Plot (linear/log10 toggle against configurable--wcet-usbudget). - Computes exact synchronous
MSG_SENDV → MSG_RECEIVEV → MSG_REPLYVlatencies (p50,p95,p99,max WCET, breach count). - SMP-Aware Priority Inversion Detector: Distinguishes true same-core medium-priority preemption (e.g.,
lidar_diag_bgprio35preempting unboostedactuator_srvprio20onCPU 0for4,790 µswhileadas_brake_ctlprio58stalls inREPLY) from harmless parallel execution on sibling cores (CPU 1..3), pinpointing_NTO_CHF_FIXED_PRIORITYand prescribingChannelCreate(0).
- Parses real QNX SDP 8.0
- 10-Rule
mkifs&secpolHardening Linter (Tab 02):- Lints QNX 8.0
.buildmanifests on every keystroke against 10 real QNX pitfalls (MKIFS-001throughMKIFS-010): whitespace around=inside[...]brackets, unclosed{}blocks,traceloggerwithoutprocnto-smp-instr, services launched beforeslogger2+waitfor /dev/slog2, custom services packaged asuid=0withoutsecpolpush, world-writable0777perms, missingstartup-x86 -D 8250QEMU serial debug, duplicate IFS target paths, missing/bin/shorpidin, andslogger2without-Unon-root drop. - Auto-generates a least-privilege
.secpolpolicy draft and synchronized copy-readyqcc,mkifs -M,mkqnximage,qemu-system-x86_64, andtraceloggerhost commands.
- Lints QNX 8.0
pidinDeadlock Graph &slog2Critical Fault Correlator (Tab 03):- Parses
pidin threadsinto an interactive SVG IPC Wait-For Graph and runs DFS cycle detection to catch circularSEND/REPLYdeadlocks (demonstrated on our 1kHz Medical Surgical Robotics preset catchingforce_cal_daemon(52010) ⇄ safety_watchdog(52011)). - Parses
slog2infoseverities0..7and cross-correlates Sev 0–2 critical faults withtraceprinterWCET breaches andpidindeadlocks, exporting a complete Markdown RTOS Audit Report in one click.
- Parses
- Interactive 6-Step QNX 8.0 Codelab (Tab 04 +
CODELAB.md):- Guides developers step-by-step from bare QNX Everywhere QEMU
x86_64boot → writing a least-privilege QNX 8.0 C IPC microservice (procmgr_ability()+setuid()+MsgSend/MsgReply+slog2f()) → hardeningmkifs/secpol→ capturing target telemetry → reproducing the 4,820 µs Priority Inversion → proving the 18 µs QNX Native Priority Inheritance fix (99.6%reduction) and wiring our fail-closed CLI into GitHub Actions.
- Guides developers step-by-step from bare QNX Everywhere QEMU
How we built it
- Isomorphic Zero-Dependency Core (
src/analyzers/mkifsAnalyzer.js,src/analyzers/traceAnalyzer.js): Pure ES modules running identically in the Node.js CI CLI (src/cli.js), the local Node HTTP server (src/server/server.js, port4175), and directly inside the static browser Host Studio (index.html,styles.css,src/ui/app.js). - Authentic QNX SDP 8.0 Target Stack (
qnx-target/): Complete compilable C microservice (qnx8_rt_sensor_ipc.c), hardened QEMUx86_64Multiboot.buildmanifest (qnx8_qemu_x86_64.build),.secpolpolicy (sensor_policy.secpol), and cross-compileMakefilesupporting bothx86_64QEMU andaarch64leRaspberry Pi 5. - Verification Discipline: 10 comprehensive Node.js unit & integration tests (
tests/qnxPulse.test.mjs, 10/10 passing), plus automated headless Chrome QA verifying 0 console errors, 0 page errors, and 0 horizontal overflow on both local and live GitHub Pages deployments.
Challenges we ran into
- Avoiding Cross-Core False Positives in SMP Priority Inversion Detection: On our first trace analyzer run, a medium-priority thread (
can_gateway, prio28) running concurrently onCPU 1during a healthy 24 µs IPC exchange onCPU 0was initially flagged as a preemptor. Making the detector strictly SMP core-aware (s.cpu === (tx.recvCpu ?? tx.sendCpu)) eliminated every false positive and isolated the exactseq #4(4,820 µs) andseq #7(1,940 µs) CPU 0 preemptions cleanly. - Zero-Bundler Isomorphic Architecture: Designing analyzers and telemetry loaders that work seamlessly both via Node.js CLI filesystem reads and static GitHub Pages
fetch()calls without a single npm dependency or build step.
Accomplishments that we're proud of
- 99.6% Verified Latency Reduction Demo: Reproducing a genuine
4,820 µsPriority Inversion and proving the18 µsQNXChannelCreate(0)native priority inheritance fix visually, mathematically, and in CI exit codes (1 → 0). - True Zero-Dependency Engineering:
0npm dependencies, instant load on GitHub Pages, instantnode src/cli.js auditexecution in CI pipelines, and10/10passing tests. - Dual-Format Codelab: Both a standalone
CODELAB.mdand an interactive 6-step browser workbench with completion tracking and 1-click "Try Live in Studio" bridges.
What we learned
- QNX 8.0's synchronous message passing (
MsgSend/MsgReceive/MsgReply) makes microkernel priority inheritance effortless by default (ChannelCreate(0)), which is why accidentally passing_NTO_CHF_FIXED_PRIORITYis such a lethal, silent real-time trap—and why automated host trace gating matters. - Correlating
traceprinter,pidin threads, andslog2infointo a single unified audit artifact dramatically shortens root-cause time compared to reading each tool in isolation.
What's next for QNX-PULSE
- Native binary
.kev(QNX Kernel Event) decoder in WebAssembly / pure JS so engineers can drag-and-drop rawtraceloggerfiles straight into the browser without runningtraceprinterfirst. - Live SSH / QConn streaming adapter for real-time telemetry ingestion from Raspberry Pi 5 (
aarch64le) and QEMUx86_64QNX 8.0 targets. - Prebuilt GitHub Action (
qnx-pulse-action) posting formatted RTOS WCET &mkifshardening tables directly as Pull Request comments.