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

Reply via email to