[MINOR] show sess: report number of calls to each task
For debugging purposes, it can be useful to know how many times each
task has been called.
diff --git a/include/types/task.h b/include/types/task.h
index 13e2aac..641cb17 100644
--- a/include/types/task.h
+++ b/include/types/task.h
@@ -50,6 +50,7 @@
struct eb32_node rq; /* ebtree node used to hold the task in the run queue */
int state; /* task state : bit field of TASK_* */
int expire; /* next expiration date for this task, in ticks */
+ unsigned int calls; /* number of times ->process() was called */
struct task * (*process)(struct task *t); /* the function which processes the task */
void *context; /* the task's context */
int nice; /* the task's current nice value from -1024 to +1024 */