Something I have used in my testing:
Add, in the task structure:
task_t *sched_from;
In schedule, prior to context_switch:
next->sched_from = prior; /* at this point still == get_current ()*/
Somewhere else (so you don't inadvertantly side-effect to death schedule()):
Follow the back-link and printk whatever for the task that you are interested
in, being careful not to reference task structures that no longer exist.
Mike
>
>
> Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/