summaryrefslogtreecommitdiff
path: root/src/trace/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 11:08:49 -0300
committerGabriel Schneider <[email protected]>2026-11-10 11:08:49 -0300
commit0b29354e1ddf6cf75ac4c426a00dd3435ace5069 (patch)
tree918e6f6810a9b8b5a8ed17e698085e92018333b9 /src/trace/root.zig
downloadcomputeranim-0b29354e1ddf6cf75ac4c426a00dd3435ace5069.tar.gz
computeranim-0b29354e1ddf6cf75ac4c426a00dd3435ace5069.zip
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.
Diffstat (limited to 'src/trace/root.zig')
-rw-r--r--src/trace/root.zig24
1 files changed, 24 insertions, 0 deletions
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;
+}