QNXScope — QNX Neutrino 8.0 IFS Buildfile Auditor, Real-Time IPC/APS Trace Profiler & Hands-On Codelab
QNXScope is an open-source Developer Tooling & Host Tools suite + interactive 7-Step QNX 8.0 Codelab designed to make building, hardening, and profiling real-time QNX Neutrino 8.0 systems dramatically faster — whether you are migrating a legacy QNX 7.1 mkifs image to QNX 8.0 or gating deterministic IPC latency in CI/CD.
Developers entering QNX 8.0 (or migrating from QNX 7.1) consistently hit two painful bottlenecks:
Silent mkifs .build regressions: Legacy io-pkt networking, libc.so.5, non-instrumented procnto-smp when invoking tracelogger, drivers booted before slogger2, unbounded waitfor timeouts, and user-space daemons accidentally running as uid=0 (root).
Hard-to-automate kernel trace analysis: tracelogger + traceprinter capture rich microsecond-level Neutrino IPC (MsgSend / MsgReceive / MsgReply) and Adaptive Partitioning Scheduler (APS) telemetry, yet teams lack a lightweight, cross-platform CLI + web visualizer that catches priority inheritance stalls , p99 latency spikes , and APS bankruptcy risks automatically in GitHub Actions.
Module
What It Does
Key QNX 8.0 Artifacts
1. mkifs Buildfile Auditor (src/core/ifsParser.ts)
Statically audits QNX .build files (0–100 Health Score), estimates raw & +compress IFS flash footprint, detects 8 QNX 8.0 migration/security rules, and auto-remediates .build files with one click or --write-fix.
libc.so.6, io-sock, procnto-smp-instr, slogger2, secpolpush, waitfor, [uid=100 gid=100]
2. Neutrino IPC & APS Trace Profiler (src/core/traceAnalyzer.ts, TraceTimelineSvg.tsx)
Parses traceprinter logs, correlates synchronous MSG_SENDV → MSG_RECEIVEV → MSG_REPLYV RTT (p50, p95, p99, max), renders an SVG multi-process swimlane timeline, detects priority inheritance inversions and APS CPU budget overruns , and enforces CI pass/fail exit codes.
tracelogger, traceprinter, MSG_SENDV/RECEIVEV/REPLYV, INT_ENTR/EXIT, APS_BUDGET
3. Cross-Platform Host CLI (src/cli.ts)
Zero-hardware CI/CD tool (qnxscope audit-ifs, qnxscope analyze-trace --max-p99-us, qnxscope demo, --json, --write-fix). Exits non-zero on CRITICAL IFS findings or CI latency gate breaches.
Works on Linux, macOS, Windows, GitHub Actions
4. Hardened QNX 8.0 C Reference Target (examples/qnx8-sensor-resmgr/)
Real QNX Neutrino 8.0 C resource manager (/dev/lidar0) + real-time client (adas_planner), dual-arch qcc Makefile, hardened 100/100 qemu-x86_64.build, and sample 4-core traceprinter capture.
dispatch_create_channel(), resmgr_attach(), procmgr_ability(), slog2f(), ClockCycles()
5. Interactive 7-Step QNX 8.0 Codelab (CODELAB.md + CodelabView.tsx)
Step-by-step hands-on tutorial taking any developer from QNX SDP 8.0 setup to a hardened QEMU x86_64 resource manager with automated IPC latency CI gates in ~29 minutes.
QEMU x86_64 & Raspberry Pi 4 AArch64
Neutrino IPC & APS Trace Profiler
QNX 8.0 mkifs Buildfile Auditor
Interactive 7-Step QNX 8.0 Codelab
QNX 8.0 C Resource Manager & CLI
Quick Start — Host CLI & Web Studio
Node.js 22+ and npm 10+ (runs on Windows, macOS, or Linux)
git clone https://github.com/Torpedas/qnxscope.git
cd qnxscope
npm install
npm run verify # Runs TypeScript type-check, Node unit tests, Vite UI build, and CLI bundle
# Audit the hardened QNX 8.0 QEMU buildfile (passes with 100/100, exit code 0)
node dist-cli/cli.mjs audit-ifs examples/qnx8-sensor-resmgr/qemu-x86_64.build
# Analyze the 4-core ADAS Neutrino trace (detects priority inversion & APS overrun, exit code 1)
node dist-cli/cli.mjs analyze-trace examples/qnx8-sensor-resmgr/sample_adas_trace.txt --max-p99-us 250
# Emit JSON for CI/CD integration
node dist-cli/cli.mjs analyze-trace examples/qnx8-sensor-resmgr/sample_adas_trace.txt --json
# Run built-in QNX 8.0 demo comparing legacy vs hardened IFS & ADAS trace
node dist-cli/cli.mjs demo
Launch the Local Web Studio
npm run dev
# Open http://localhost:5173/?tab=trace (or ?tab=ifs, ?tab=codelab, ?tab=reference)
Building & Running the QNX 8.0 Reference Target
Target & Toolchain Specification
OS / SDK: QNX Software Development Platform (QNX SDP 8.0 )
Primary Virtual Target: QEMU x86_64 (4-vCPU SMP, startup-x86, procnto-smp-instr, io-sock + vtnet)
Secondary Hardware Target: Raspberry Pi 4 aarch64le (startup-bcm2711-rpi4, io-sock + genet)
Cross-Compiler: qcc -Vgcc_ntox86_64 (default) or qcc -Vgcc_ntoaarch64le
Image Builder: mkifs
Build & Boot Commands (QNX SDP 8.0 Host)
# 1. Source QNX SDP 8.0 environment
source ~ /qnx800/qnxsdp-env.sh
# 2. Cross-compile /dev/lidar0 resource manager & adas_planner client
cd examples/qnx8-sensor-resmgr
make ARCH=x86_64 # or: make ARCH=aarch64le for Raspberry Pi 4
# 3. Audit the mkifs buildfile before building the IFS image
npx qnxscope audit-ifs qemu-x86_64.build
# 4. Assemble bootable QNX 8.0 IFS image
make ifs # Runs: mkifs -v qemu-x86_64.build build/x86_64/qnx8-adas.ifs
# 5. Boot QNX 8.0 on QEMU x86_64 (no hardware required)
qemu-system-x86_64 -smp 4 -m 1G -nographic \
-kernel build/x86_64/qnx8-adas.ifs \
-netdev user,id=net0 -device virtio-net-pci,netdev=net0
# 6. Inside QNX 8.0 target: capture & decode Neutrino kernel trace
tracelogger -n 1 -s 5 -f /tmp/adas_trace.kev
traceprinter -f /tmp/adas_trace.kev > /tmp/adas_trace.txt
# 7. On host: enforce real-time p99 <= 250us & zero priority inversions
npx qnxscope analyze-trace /tmp/adas_trace.txt --max-p99-us 250
QNX 8.0 Technology / API
Exact Repo Location
Verified Behavior
dispatch_create_channel(), resmgr_attach(), iofunc_func_init(), SETIOV
examples/qnx8-sensor-resmgr/sensor_resmgr.c
Implements /dev/lidar0 character resource manager returning structured LiDAR frames
procmgr_ability(PROCMGR_ADN_NONROOT | PROCMGR_AID_PATHSPACE) + setuid(100)
examples/qnx8-sensor-resmgr/sensor_resmgr.c
Drops root privileges immediately after attaching /dev/lidar0
slog2_register(), slog2f() (-lslog2)
examples/qnx8-sensor-resmgr/sensor_resmgr.c
Structured QNX system logging
ClockCycles(), SYSPAGE_ENTRY(qtime)->cycles_per_sec
examples/qnx8-sensor-resmgr/adas_planner.c
Sub-microsecond IPC RTT measurement
qcc -Vgcc_ntox86_64 / gcc_ntoaarch64le, mkifs
examples/qnx8-sensor-resmgr/Makefile
Cross-compilation & IFS image assembly
procnto-smp-instr, libc.so.6, io-sock, slogger2, secpolpush, +compress
examples/qnx8-sensor-resmgr/qemu-x86_64.build & src/core/ifsParser.ts
8 static QNX 8.0 audit rules + auto-remediation
tracelogger / traceprinter (MSG_SENDV/RECEIVEV/REPLYV, APS_BUDGET, INT_ENTR)
src/core/traceAnalyzer.ts & examples/qnx8-sensor-resmgr/sample_adas_trace.txt
Priority inheritance & APS overrun detection + SVG timeline + CI exit codes
Released under the MIT License . See LICENSE .