summaryrefslogtreecommitdiff
path: root/src/agent/agent.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/agent/agent.zig')
-rw-r--r--src/agent/agent.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/agent/agent.zig b/src/agent/agent.zig
index bc53336..2a32a05 100644
--- a/src/agent/agent.zig
+++ b/src/agent/agent.zig
@@ -132,10 +132,7 @@ pub fn emit(kind: Kind, aux: u16, a: [6]u64, payload: []const u8) void {
r.emit(.{ .ts = zt.event.now(), .tid = threadId(), .kind = kind, .aux = aux, .a = a }, payload);
}
-/// A string's id is its hash: no backend needs to ask another which are taken.
-pub fn stringId(string: []const u8) u64 {
- return std.hash.Wyhash.hash(0, string);
-}
+pub const stringId = zt.event.stringId;
/// `bytes` as a payload: cut to `max`, and never the length of `Regs`, which
/// the recorder would take for registers.