Inspiration

QNX already documents the text formats that engineers capture on a board or in QEMU: traceprinter output from a kernel trace, slog2info, pidin, dumpifs, and mkifs buildfiles. The QNX VS Code toolkit transition guide says System Profiler result viewing is limited, and that there is currently no UI for QNX Memory Analysis or Application Profiler results. The official project gallery is unpublished. I wanted a small, open, host-side viewer that turns those documented captures into something you can inspect in a browser, without shipping QNX binaries or requiring the SDP just to open a capture pack.

What it does

Timeslice is a Linux host tool for QNX 8.0. Drop traceprinter, slog2info, pidin, dumpifs, and mkifs buildfile text into the UI, or load one of the two packs in the repo. It rebuilds a CPU timeline, merges a process table, correlates slog2 messages to process ids, audits the IFS image against the buildfile, and lists findings such as long READY waits, slog2 alerts, and development leftovers like qconn or devc-pty.

The bundled demo pack is synthetic and follows the documented formats. It models a conveyor controller that misses a 2 ms FIFO deadline. The live pack in fixtures/live/ was captured from the official QNX SDP 8.0 Quick Start Target Image running in QEMU (uname reported QNX qnxqemu 8.0.0 2026/06/05-16:26:03EDT x86pc x86_64). A small C probe, target/timeslice_probe.c, is built with qcc and was run on that guest.

How we built it

The host app is React, TypeScript, Vite, and Vitest. Parsers in src/core/ read the documented text formats and were tested first against synthetic fixtures, then against a live QEMU capture. I installed QNX SDP 8.0 and the Quick Start Target Image for QEMU from the QNX Software Center, booted the image headless with qemu-system-x86_64 (user-mode networking and host-forwarded SSH; official mkqnximage --run wants a QEMU bridge that this host did not have), captured pidin, slog2info, and a two-second tracelogger session, and converted the kernel trace with the SDP traceprinter host tool. Only the text captures and the official ifs.build file are in the repo. .kev files, SDP binaries, and license files stay off Git history.

Challenges we ran into

Real SDP output did not always match the tidy synthetic fixtures. dumpifs used a four-column layout and ---- symlink rows. traceprinter wrapped PROCCREATE_NAME across lines and used event names that contain /. pidin sched includes the interrupt policy letter i, and a 65535 last-CPU sentinel can be sliced incorrectly if columns are parsed naively. slog2info often prints INFO in the message rather than a SLOG2_INFO tag. Those cases now have tests in src/core/live.test.ts. On the target side, a two-second tracelogger -s 2 capture was the right tool; tracelogger -d1 is daemon mode and does not finish on its own.

Accomplishments that we're proud of

Timeslice parses a real QNX 8.0 QSTI QEMU capture end to end: 6343 kernel events, 34 processes, slog2, and the official IFS buildfile. The qcc-built probe ran on that guest and printed QNX / qnxqemu / 8.0.0. The host UI can be demoed with npm run dev and "Load live QSTI capture" without a running emulator. All of that is in a public MIT repo with no SDP secrets in history.

What we learned

Documented QNX text formats are a solid contract, but live tooling still has wrapping, sentinels, and column variants that only show up on a real image. A host-side viewer is most useful when it can open a capture pack after the fact, so the SDP stays on the machine that produced the files and is not a requirement for every reviewer.

What's next

Keep the parsers honest as more live traces arrive, including longer sessions and other QSTI or board captures. A natural follow-on is a tighter finding set for production images (so development leftovers stay visible, and expected QEMU services are not noisy) and optional support for additional documented host tools if those formats are needed.

Evidence of QNX 8.0 use

Timeslice is a Linux host tool whose output is specifically intended to analyze, debug, and manage software for QNX 8.0, which the official rules allow. Evidence in the public repo:

  • Live captures in fixtures/live/, taken from QNX OS 8.0.0 on the official Quick Start Target Image for QEMU.
  • target/timeslice_probe.c and scripts/build-target.sh, which compile the probe with qcc 12.2.0 (gcc_ntox86_64).
  • fixtures/live/timeslice_probe.out, the stdout from that binary running in the QEMU guest.
  • Parsers and tests for traceprinter, slog2info, pidin, dumpifs, and mkifs buildfiles.

The demo video shows the recorded QEMU boot to a login prompt, the qcc probe session, and the host UI loading the live pack.

AI use

This project was built with assistance from Grok Bot, an AI coding assistant. The official formats, rules, and commands cited in the repo come from QNX and Devpost documentation.

Built With

Share this project:

Updates

Submission history