trace: add taskState

This commit is contained in:
2026-06-08 10:45:30 +02:00
parent 3b5e7f54d4
commit 53ad5b297a
+18
View File
@@ -4,6 +4,16 @@ const TaskID = @import("scheduler.zig").TaskID;
const PendingTrace = struct {}; const PendingTrace = struct {};
pub const TraceTaskState = enum {
ready,
running,
sleeping,
waiting_futex,
waiting_task,
failed,
returned,
};
pub const Trace = struct { pub const Trace = struct {
pub fn init(self: *Trace) void { pub fn init(self: *Trace) void {
_ = self; _ = self;
@@ -36,6 +46,14 @@ pub const Trace = struct {
_ = node; _ = node;
} }
pub fn taskState(self: *Trace, task_id: TaskID, node: *Node, state: TraceTaskState, reason: []const u8) void {
_ = self;
_ = task_id;
_ = node;
_ = state;
_ = reason;
}
pub fn timeAdvanced(self: *Trace, from: u64, to: u64) void { pub fn timeAdvanced(self: *Trace, from: u64, to: u64) void {
_ = self; _ = self;
_ = from; _ = from;