On Sat, May 17, 2008 at 5:34 PM, Indraneel Mukherjee <[EMAIL PROTECTED]> wrote: > Hi, > I've put the following print in context_switch() in kernel/sched.c > printk( " %d ", next->pid); > > Can that serve the purpose as well?
It might, but as Johannes pointed out, it might be too many context switches per sec. to track so you might want to restrict it in some way. But the basic Q is why do you want that output ? How are you going to interpret it ? What are you trying to do ? > > TIA, > Indro > > On Sat, May 17, 2008 at 12:31 PM, Manish Katiyar <[EMAIL PROTECTED]> wrote: >> On Sat, May 17, 2008 at 11:55 AM, Indraneel Mukherjee >> <[EMAIL PROTECTED]> wrote: >>> Hi All, >>> I'm looking for a way to track the sequence in which processes were >>> scheduled by the scheduler. Just the sequence in which processes were >>> scheduled like 23,34 45,665, 34 .... >>> I think it can be done by inserting a printk at some appropriate >>> place in the scheduler but i'm not sure were. Can i get some pointers >>> in that direction? Is there any other easy way? >> >> How about adding something like in the function schedule() in kernel/sched.c >> >> printk(KERN_CRIT "Scheduling process [%u] \n",current->tgid); >> >> >> HTH >> >>> >>> I'm using kernel 2.6.23 on ARM architecture. >>> >>> TIA, >>> Indro >>> >>> -- >>> To unsubscribe from this list: send an email with >>> "unsubscribe kernelnewbies" to [EMAIL PROTECTED] >>> Please read the FAQ at http://kernelnewbies.org/FAQ >>> >>> >> >> >> >> -- >> Thanks & Regards, >> ******************************************** >> Manish Katiyar ( http://mkatiyar.googlepages.com ) >> 3rd Floor, Fair Winds Block >> EGL Software Park >> Off Intermediate Ring Road >> Bangalore 560071, India >> *********************************************** >> > -- Thanks & Regards, ******************************************** Manish Katiyar ( http://mkatiyar.googlepages.com ) 3rd Floor, Fair Winds Block EGL Software Park Off Intermediate Ring Road Bangalore 560071, India *********************************************** -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ
