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
<[email protected]> 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 [email protected]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Pradeep

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to