Add unknown subsystem state for Nanos6

This commit is contained in:
Rodrigo Arias 2023-03-24 19:29:00 +01:00 committed by Rodrigo Arias Mallo
parent 1582a60522
commit b17ff6d166
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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" },