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

  1. RTOS Trace & Multi-Core IPC Timeline (Tab 01):
    • Parses real QNX SDP 8.0 traceprinter captures into an interactive HTML5 Canvas 2D 4-core SMP Scheduling Gantt (THRUNNING slices with zoom, pan, hover tooltips, and red-hatched Priority Inversion windows) plus an IPC Latency Scatter Plot (linear/log10 toggle against configurable --wcet-us budget).
    • Computes exact synchronous MSG_SENDV → MSG_RECEIVEV → MSG_REPLYV latencies (p50, p95, p99, max WCET, breach count).
    • SMP-Aware Priority Inversion Detector: Distinguishes true same-core medium-priority preemption (e.g., lidar_diag_bg prio 35 preempting unboosted actuator_srv prio 20 on CPU 0 for 4,790 µs while adas_brake_ctl prio 58 stalls in REPLY) from harmless parallel execution on sibling cores (CPU 1..3), pinpointing _NTO_CHF_FIXED_PRIORITY and prescribing ChannelCreate(0).
  2. 10-Rule mkifs & secpol Hardening Linter (Tab 02):
    • Lints QNX 8.0 .build manifests on every keystroke against 10 real QNX pitfalls (MKIFS-001 through MKIFS-010): whitespace around = inside [...] brackets, unclosed {} blocks, tracelogger without procnto-smp-instr, services launched before slogger2 + waitfor /dev/slog2, custom services packaged as uid=0 without secpolpush, world-writable 0777 perms, missing startup-x86 -D 8250 QEMU serial debug, duplicate IFS target paths, missing /bin/sh or pidin, and slogger2 without -U non-root drop.
    • Auto-generates a least-privilege .secpol policy draft and synchronized copy-ready qcc, mkifs -M, mkqnximage, qemu-system-x86_64, and tracelogger host commands.
  3. pidin Deadlock Graph & slog2 Critical Fault Correlator (Tab 03):
    • Parses pidin threads into an interactive SVG IPC Wait-For Graph and runs DFS cycle detection to catch circular SEND/REPLY deadlocks (demonstrated on our 1kHz Medical Surgical Robotics preset catching force_cal_daemon(52010) ⇄ safety_watchdog(52011)).
    • Parses slog2info severities 0..7 and cross-correlates Sev 0–2 critical faults with traceprinter WCET breaches and pidin deadlocks, exporting a complete Markdown RTOS Audit Report in one click.
  4. Interactive 6-Step QNX 8.0 Codelab (Tab 04 + CODELAB.md):
    • Guides developers step-by-step from bare QNX Everywhere QEMU x86_64 boot → writing a least-privilege QNX 8.0 C IPC microservice (procmgr_ability() + setuid() + MsgSend/MsgReply + slog2f()) → hardening mkifs/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.

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, port 4175), 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 QEMU x86_64 Multiboot .build manifest (qnx8_qemu_x86_64.build), .secpol policy (sensor_policy.secpol), and cross-compile Makefile supporting both x86_64 QEMU and aarch64le Raspberry 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, prio 28) running concurrently on CPU 1 during a healthy 24 µs IPC exchange on CPU 0 was 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 exact seq #4 (4,820 µs) and seq #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 µs Priority Inversion and proving the 18 µs QNX ChannelCreate(0) native priority inheritance fix visually, mathematically, and in CI exit codes (1 → 0).
  • True Zero-Dependency Engineering: 0 npm dependencies, instant load on GitHub Pages, instant node src/cli.js audit execution in CI pipelines, and 10/10 passing tests.
  • Dual-Format Codelab: Both a standalone CODELAB.md and 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_PRIORITY is such a lethal, silent real-time trap—and why automated host trace gating matters.
  • Correlating traceprinter, pidin threads, and slog2info into 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 raw tracelogger files straight into the browser without running traceprinter first.
  • Live SSH / QConn streaming adapter for real-time telemetry ingestion from Raspberry Pi 5 (aarch64le) and QEMU x86_64 QNX 8.0 targets.
  • Prebuilt GitHub Action (qnx-pulse-action) posting formatted RTOS WCET & mkifs hardening tables directly as Pull Request comments.

Built With

  • c
  • ci-cd
  • html5
  • mkifs
  • node.js
  • pidin
  • qemu
  • qnx-neutrino
  • qnx-sdp-8
  • secpol
  • slog2
  • svg
  • tracelogger
  • zero-dependencies
Share this project:

Updates

Submission history