Profiling my Modules
Hi All, I have a kernel module which has functions which take a lot of time in execution. I am curious to know how can I profile it, and find out the functions taking most of the time. I saw Oprofile, but it seems that I will have to build the whole kernel, and also that it will be difficult to profile my module through it. Any trick or tool will do. -- Regards, Rishi Agrawal ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Profiling my Modules
On Thu, Apr 26, 2012 at 10:33 AM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: Hi All, I have a kernel module which has functions which take a lot of time in execution. I am curious to know how can I profile it, and find out the functions taking most of the time. I saw Oprofile, but it seems that I will have to build the whole kernel, and also that it will be difficult to profile my module through it. Any trick or tool will do. Hello, Have a look at perf [1]. thanks, Daniel. [1] https://perf.wiki.kernel.org/ ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Profiling my Modules
Thanks a lot, I will have a look at it and see if it helps. On Thu, Apr 26, 2012 at 6:12 PM, Daniel Baluta daniel.bal...@gmail.comwrote: On Thu, Apr 26, 2012 at 10:33 AM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: Hi All, I have a kernel module which has functions which take a lot of time in execution. I am curious to know how can I profile it, and find out the functions taking most of the time. I saw Oprofile, but it seems that I will have to build the whole kernel, and also that it will be difficult to profile my module through it. Any trick or tool will do. Hello, Have a look at perf [1]. thanks, Daniel. [1] https://perf.wiki.kernel.org/ -- Regards, Rishi Agrawal ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies