X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-statedump-impl.c;h=22d9cc61e0a56dc1533cb440511c377bfef12014;hb=69a619a93c6a8082ac198debaf5ea44621290211;hp=3d9d12764afe967db0a590bc18fc440f8c129dc2;hpb=39192dfbea6041eefea1676c554ba73946793c71;p=lttng-modules.git diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index 3d9d1276..22d9cc61 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -43,6 +42,7 @@ #include #include #include +#include #ifdef CONFIG_LTTNG_HAS_LIST_IRQ #include @@ -651,7 +651,7 @@ int lttng_enumerate_process_states(struct lttng_session *session) status = LTTNG_ZOMBIE; else if (p->exit_state == EXIT_DEAD) status = LTTNG_DEAD; - else if (p->state == TASK_RUNNING) { + else if (lttng_task_is_running(p)) { /* Is this a forked child that has not run yet? */ if (list_empty(&p->rt.run_list)) status = LTTNG_WAIT_FORK; @@ -662,7 +662,7 @@ int lttng_enumerate_process_states(struct lttng_session *session) * was really running at this time. */ status = LTTNG_WAIT_CPU; - } else if (p->state & + } else if (lttng_get_task_state(p) & (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE)) { /* Task is waiting for something to complete */ status = LTTNG_WAIT;