User space context switch

mohit verma mohit89mlnc at gmail.com
Mon Mar 21 03:10:31 EDT 2011


thanks  vimal and mulyadi.

On Mon, Mar 21, 2011 at 12:32 PM, Vimal <j.vimal at gmail.com> wrote:

> Hi Mohit,
>
> On 18 March 2011 13:07, mohit verma <mohit89mlnc at gmail.com> 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
>



-- 
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110321/a4ae36ee/attachment.html 


More information about the Kernelnewbies mailing list