Inspiration
Real-time systems running on QNX Neutrino RTOS (QNX SDP 8.0) rely on deterministic thread scheduling, low-latency Interrupt Service Routines (ISRs), and strict mutex priority inheritance. When debugging kernel traces captured with QNX tracelogger or <sys/trace.h>, embedded developers often have to manually sift through thousands of raw kernel events (_NTO_TRACE_THREAD, _NTO_TRACE_INT, _NTO_TRACE_KER_CALL) to spot subtle priority inversions, mutex contention, or ISR latency spikes. QNXTraceStudio brings instant, host-based visual trace diagnostics and actionable C remediation diffs to any developer workstation without requiring physical target hardware.
What it does
QNXTraceStudio is a host-based QNX SDP 8.0 kernel trace, priority-inversion, and ISR latency analyzer paired with a <sys/trace.h> C fix diff generator:
- QNX Kernel Trace Ingestion & Timeline: Parses QNX
tracelogger/<sys/trace.h>event streams across CPU cores, thread states (RUNNING,READY,MUTEX,REPLY), priorities, and hardware/timer interrupts. - Priority-Inversion Detection: Automatically flags unbounded priority-inversion chains where high-priority real-time threads block behind lower-priority threads holding shared mutexes without priority inheritance.
- ISR & Scheduling Latency Analysis: Computes interrupt entry/exit durations, dispatch latency histograms, and worst-case preemption delays against real-time budgets.
<sys/trace.h>& POSIX C Fix Diffs: Generates side-by-side C remediation patches (such as enablingPTHREAD_PRIO_INHERITviapthread_mutexattr_setprotocol, bounding critical sections, and instrumentingTraceEvent(_NTO_TRACE_INSERTUSRSTREVENT, ...)markers).- Zero-Hardware Host Workflow: Runs directly as Linux/macOS/Windows host tooling and an interactive Web Studio—no physical Raspberry Pi or target board required.
How we built it
- Frontend & Host Studio: Built with TypeScript, React, Vite, and Vitest for fast, deterministic trace parsing, timeline rendering, and automated unit verification.
- QNX 8.0 Domain Modeling: Modeled around QNX SDP 8.0 microkernel scheduling semantics,
<sys/trace.h>trace classes/events,traceloggerworkflows, and POSIX real-time mutex/ISR best practices.
Challenges we ran into
Designing a trace timeline and automated root-cause analyzer that cleanly surfaces multi-thread priority-inversion chains alongside readable, copy-ready <sys/trace.h> C diffs—while keeping everything deterministic and testable offline on a host machine—required careful event correlation and state-machine modeling.
What we learned & What's next
Building host-side developer tooling for QNX SDP 8.0 highlighted how dramatically visual timelines and automated fix diffs accelerate real-time debugging. Next, we plan to expand support for multi-node QNX Hypervisor guest traces, custom traceprinter export profiles, and CI regression gates for ISR latency budgets.
Built With
- qnx
- react
- typescript
- vite
- vitest