logging process scheduling stats

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

 



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


[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