From 0b29354e1ddf6cf75ac4c426a00dd3435ace5069 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 11:08:49 -0300 Subject: ztrace: the event, the ring, the recording, a ptrace loop One 64-byte Event for every backend; a shared-memory ring from target to tracer with stop/resume; a Recorder that folds events into xitdb moments (registers, memory in 64-byte chunks with known-byte masks, strings) and a Trace that reads any moment back; a minimal ptrace Process; ztrace record, run and dump. Per-area build files so the areas grow apart. --- src/trace/root.zig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/trace/root.zig (limited to 'src/trace/root.zig') diff --git a/src/trace/root.zig b/src/trace/root.zig new file mode 100644 index 0000000..62a9fa7 --- /dev/null +++ b/src/trace/root.zig @@ -0,0 +1,24 @@ +//! ztrace: one event format, many ways to produce it, one recording. +pub const event = @import("event.zig"); +pub const Event = event.Event; +pub const Kind = event.Kind; +pub const Regs = event.Regs; +pub const Sink = event.Sink; +pub const Ring = @import("Ring.zig"); +pub const store = @import("store.zig"); +pub const Recorder = store.Recorder; +pub const Trace = store.Trace; +pub const ptrace = @import("ptrace.zig"); +/// Inside the target: the ring it was handed. +pub const client = @import("client.zig"); +/// Inside the tracer: a target running with a ring. +pub const host = @import("host.zig"); + +test { + _ = event; + _ = Ring; + _ = store; + _ = ptrace; + _ = client; + _ = host; +} -- cgit v1.3