You need to configure you kernel with  CONFIG_FUNCTION_TRACER enabled.

~Sharwan

On Thu, Apr 9, 2009 at 2:48 PM, Sukanto Ghosh <[email protected]>wrote:

> Hi Pradeep,
>
> Seems like it might serve my purpose ... a very useful one .. But I
> didn't find how to configure it in the kernel ... I mean the kernel
> config option or what menu in 'make menuconfig'
>
>
> Thanks and Regards,
> Sukanto
>
>
> On Wed, Apr 8, 2009 at 5:56 PM, pradeep singh <[email protected]>
> wrote:
> > 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
> >
>
>
>
> --
> 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