Re: User space context switch

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

 



Hi Mohit,

On 18 March 2011 13:07, mohit verma <mohit89mlnc@xxxxxxxxx> wrote:
> hi all,
>   is it possible to write a user space code to calculate the context switch
> time of a process ? I mean , how can the user space code know about the
> working of the scheduler?
> Is there any system call API to interact with scheduler or something other
> to interact with , regarding  this problem?

Do check the function tracing framework in the Linux Kernel.

Links:
* http://lwn.net/Articles/322666/
* http://lwn.net/Articles/290277/

sched_switch is the tracer you're looking for.

-- 
Vimal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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