Re: logging process scheduling stats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pradeep,

Seems like it might serve my purpose ... a very useful one .. But I
didn't find how to configure it in the kernel ... I mean the kernel
config option or what menu in 'make menuconfig'


Thanks and Regards,
Sukanto


On Wed, Apr 8, 2009 at 5:56 PM, pradeep singh <pradeep.rautela@xxxxxxxxx> wrote:
> Not sure, if it will help you or not but did you look at ftrace?
>
> Thanks,
>            --Pradeep
> On Wed, Apr 8, 2009 at 3:29 PM, Sukanto Ghosh
> <sukanto.cse.iitb@xxxxxxxxx> wrote:
>> Hi,
>>
>> I want to log the following activities with timestamps - *as precisely
>> as possible* :
>> i.    enqueuing of a process
>> ii.   dequeuing of a process
>> iii.  a process starts executing on cpu
>> iv.  a process is preempted/yeilds the cpu
>>
>> What is the best (precise, efficient and easy) way of doing so ?
>>
>>
>>
>> Currently I am doing the following:
>>
>> I am using jprobes for enqueue_entity and dequeue_entity functions, to
>> log the events.
>> For logging context switches I have used kprobes to put a printk
>> statement in schedule() function of kernel/sched.c before the
>> statement that increments the context switch counter of the runqueue.
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> Pradeep
>



-- 
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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux