summaryrefslogtreecommitdiff
path: root/src/trace/event.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace/event.zig')
-rw-r--r--src/trace/event.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trace/event.zig b/src/trace/event.zig
index 91e8c62..c24d7ac 100644
--- a/src/trace/event.zig
+++ b/src/trace/event.zig
@@ -28,7 +28,8 @@ pub const Kind = enum(u16) {
mem_write = 16,
/// a0=addr a1=len a2=pc
mem_read = 17,
- /// a0=ptr a1=size a2=caller pc. aux: `Alloc`.
+ /// a0=ptr a1=size a2=caller pc. aux: `Alloc`. A realloc that moves is a
+ /// `free` of the old pointer, then this.
alloc = 18,
/// a0=ptr a1=caller pc
free = 19,
@@ -79,6 +80,7 @@ pub const Alloc = enum(u16) { malloc, calloc, realloc, memalign, mmap };
pub const Event = extern struct {
/// CLOCK_MONOTONIC nanoseconds.
ts: u64 = 0,
+ /// 0 for an event no thread made (a string defined at startup).
tid: u32 = 0,
kind: Kind,
/// Small kind-specific value (syscall number, signal, operand size).