QNX-PulseScope — Real-Time IPC Oscilloscope, IFS Auditor & MCP Bridge

In an automotive braking system or a surgical robot, a single low-priority logging thread can silently block a critical safety loop and cause a catastrophic deadline miss — QNX-PulseScope lets you see, diagnose, and eliminate priority inversion on QNX Neutrino 8.0 in microseconds.

QNX-PulseScope Executive Workspace & Brake-by-Wire Twin


How It Works in 30 Seconds

Step What Happens QNX 8.0 / AI Technology Used
1 · Pick Target Domain Choose Automotive ADAS (500 µs SLA), Surgical Robotics (250 µs SLA), or Substation IEC-61850 Grid Relay (400 µs SLA). Native /dev/pulsescope C11 POSIX Resource Manager (resmgr_attach)
2 · Spot Priority Inversion Watch a low-priority background thread hold a shared mutex (PTHREAD_PRIO_NONE) and push worst-case latency past the safety ceiling. ClockCycles() hardware cycle stamps & 16-byte MsgSendPulse() telemetry
3 · Fix via QNX IPC & MCP Toggle QNX_MSG_PRIORITY_BOOST / PTHREAD_PRIO_INHERIT to lock latency under budget, audit your .build IFS image, and query live via AI. _NTO_CHF_FIXED_PRIORITY, procmgr_ability(), & JSON-RPC /mcp server

Why Not Just Use printf or Linux perf?

Capability printf / slog2info Linux perf / ftrace QNX-PulseScope
Observer Effect High (blocks on stdio/IPC) Moderate (ring-buffer copies) Zero-Blocking 16-byte MsgSendPulse()
Microkernel Primitives None (logs strings only) Linux-only (futex, epoll) Native QNX ChannelCreate, MsgReceivev, ClockCycles()
Priority Inversion Proof Manual timestamp math Kernel-specific probes Live Digital Twin + P50/P95/P99/WCET vs. SLA Ceiling
Boot Image Hardening Manual code review N/A Automated .build IFS Auditor + 1-Click Patch
AI Coding Agent Bridge Copy-paste logs into chat None Live JSON-RPC /mcp Server (tools/list, tools/call)

What Happens If Something Goes Wrong?

Failure Mode How QNX-PulseScope Handles It
Priority Inversion / Mutex Starvation (PTHREAD_PRIO_NONE) Digital Twin flags DEADLINE MISS DETECTED in crimson, highlights the exact blocking T_LOW/T_MED preemption window, and recommends PTHREAD_PRIO_INHERIT or QNX_MSG_PRIORITY_BOOST.
Unhardened QNX .build IFS Image The IFS Auditor flags missing procnto-smp-instr, missing slogger2, or over-privileged root threads and generates a one-click hardening patch (ASIL-D READY).
No Physical QNX Target Attached Falls back seamlessly to the deterministic QNX 8.0 cycle-accurate engine while still serving the downloadable qnx-pulsescope-target.tar.gz C11 source & qnx800-rpi5-qemu.build for Raspberry Pi 5 / QEMU.

Step-by-Step Judge Verification (Under 2 Minutes)

  1. Trigger & Fix a Real-Time Deadline Miss (20 seconds):
    • Open https://pulsescope.gilbertcv.com.
    • Observe the Automotive ADAS Brake-by-Wire Twin failing its 500 µs SLA under PTHREAD_PRIO_NONE.
    • Click Enable QNX Priority Inheritance (Fix Now) — watch WCET drop immediately below 500 µs with 0 deadline misses (HARD REAL-TIME PASS).
  2. Audit a QNX 8.0 .build IFS Image (30 seconds):
    • Click the IFS .build Auditor tab, inspect the findings on an unhardened boot script, and click Apply Hardening Patch to bring the image to ASIL-D READY.
  3. Test the Live MCP AI Bridge (30 seconds):
    • Click the MCP AI Bridge tab and run qnx_trace_priority_inversion or qnx_generate_resmgr_skeleton over live JSON-RPC (POST /mcp).
  4. Explore the 5-Lab Codelab & Target Bundle (30 seconds):
    • Open the 5-Lab Codelab tab or click Target Inspector in the top-right to download the C11 /dev/pulsescope target bundle (qnx-pulsescope-target.tar.gz).

Visual Gallery

Priority Inheritance Fix Target Inspector & Downloads
Priority Inheritance Fixed Target Inspector Drawer
IFS .build Image Auditor Live MCP AI Bridge (/mcp)
IFS Buildfile Auditor MCP AI Bridge

Built With

  • QNX SDP 8.0 (Neutrino RTOS): C11 Resource Manager (resmgr_attach), MsgSendv/MsgReceivev/MsgSendPulse, ClockCycles(), procmgr_ability(), .build IFS
  • Web & Visualization: TypeScript, React 18, Vite, SVG/Canvas Microsecond Oscilloscope
  • AI & Tooling: Model Context Protocol (JSON-RPC /mcp), Node.js, Docker, Vitest

Built With

Share this project:

Updates

Submission history