From mboxrd@z Thu Jan 1 00:00:00 1970 From: malte.vesper@postgrad.manchester.ac.uk (Malte Vesper) Date: Wed, 25 Mar 2015 15:59:09 +0000 Subject: Profiling processes in Linux kernel In-Reply-To: References: <5512D227.5040807@postgrad.manchester.ac.uk> Message-ID: <5512DB4D.9030100@postgrad.manchester.ac.uk> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 25/03/15 15:51, Sreejith M M wrote: > On Wed, Mar 25, 2015 at 8:50 PM, Malte Vesper > 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