X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-statedump-impl.c;fp=lttng-statedump-impl.c;h=fef97812f2b87f2eb89e74783981ddc45441b1f2;hb=62c3d34c566d1ec4fee6843950f078e7d79afbe9;hp=fc9e9db2de3ab5e4ee4ca38a52561a0ce3d6291d;hpb=2d0b0a6cdcb7d8797abe8cdeb9a2b13ed092ffd1;p=lttng-modules.git diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index fc9e9db2..fef97812 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 @@ -536,7 +536,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; @@ -547,7 +547,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;