Profiling processes in Linux kernel

Malte Vesper malte.vesper at postgrad.manchester.ac.uk
Wed Mar 25 11:59:09 EDT 2015


On 25/03/15 15:51, Sreejith M M wrote:
> On Wed, Mar 25, 2015 at 8:50 PM, Malte Vesper
> <malte.vesper at postgrad.manchester.ac.uk> wrote:
>> On 25/03/15 15:08, Sreejith M M wrote:
>>> Hi All,
>>>
>>> I would like to know if there is anyway to profile thread running time
>>> in linux kernel?
>>> If there is already some method for it, please share.
>>> Otherwise, let me know where to start looking
>>>
>>>
>>>
>> perf or oprofile should do the job. So far I only used perf to profile a
>> driver so far. Be aware that you have to enable the profiling options
>> when compiling your kernel.
> can you share a good tutorial or starting point to understand and use
> these tools?
>
>
>
Google is your friend, I had some success with following instructions a 
bloke called Brendan Gregg, who seems to be a profiling guru, wrote:
http://www.brendangregg.com/linuxperf.html




More information about the Kernelnewbies mailing list