From b17ff6d1668550ec42128946273ada7281782dc9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 24 Mar 2023 19:29:00 +0100 Subject: [PATCH] Add unknown subsystem state for Nanos6 --- src/emu/nanos6/nanos6_priv.h | 3 ++- src/emu/nanos6/setup.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/emu/nanos6/nanos6_priv.h b/src/emu/nanos6/nanos6_priv.h index 8fce2df..f1be9c5 100644 --- a/src/emu/nanos6/nanos6_priv.h +++ b/src/emu/nanos6/nanos6_priv.h @@ -24,8 +24,10 @@ enum nanos6_chan { CH_MAX, }; +/* Same order as shown in breakdown view */ enum nanos6_ss_state { ST_TASK_BODY = 1, + ST_UNKNOWN_SS, ST_TASK_CREATING, ST_TASK_SUBMIT, ST_TASK_SPAWNING, @@ -43,7 +45,6 @@ enum nanos6_ss_state { ST_FREEING, ST_HANDLING_TASK, ST_WORKER_LOOP, - ST_WORKER_INIT, ST_SWITCH_TO, ST_MIGRATE, ST_SUSPEND, diff --git a/src/emu/nanos6/setup.c b/src/emu/nanos6/setup.c index 0bc4d85..892ecdc 100644 --- a/src/emu/nanos6/setup.c +++ b/src/emu/nanos6/setup.c @@ -85,6 +85,7 @@ static const char *pcf_prefix[CH_MAX] = { }; static const struct pcf_value_label nanos6_ss_values[] = { + { ST_UNKNOWN_SS, "Unknown subsystem" }, { ST_TASK_BODY, "Task: Running body" }, { ST_TASK_CREATING, "Task: Creating" }, { ST_TASK_SUBMIT, "Task: Submitting" }, @@ -101,7 +102,6 @@ static const struct pcf_value_label nanos6_ss_values[] = { { ST_BLK_WAITFOR, "Blocking: Wait for deadline" }, { ST_HANDLING_TASK, "Worker: Handling task" }, { ST_WORKER_LOOP, "Worker: Looking for work" }, - { ST_WORKER_INIT, "Worker: Starting" }, { ST_SWITCH_TO, "Worker: Switching to another thread" }, { ST_MIGRATE, "Worker: Migrating CPU" }, { ST_SUSPEND, "Worker: Suspending thread" },