[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
task->mm remains null in 'context_switch()'
Hi,
I was adding a field to the 3 trace_mark() calls in kernel/sched.c.
The calls are at: i) context_switch(prev, next, ... ) ii)
try_to_wake_up(p, ...) iii) wake_up_new_task(p, ...) functions
The field is 'task'->mm->pfrate. (I have added the pfrate field in
mm_struct), where 'task' is a placeholder for prev/next/p/rq->curr in
those trace_mark() calls. I found that always either the next/p
pointers are NULL or task->mm is NULL at that particular point. Is it
supposed to be so ? Why ?
PS: The trace_mark() in kernel/sched.c calls are for adding entries to
the trace-file of sched_switch tracer.
--
Regards,
Sukanto Ghosh
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ