[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


resource utilisation of one function of kernel code

Posted on 2004-11-05
Medium Priority
Last Modified: 2013-12-15

I want to measure resource consumed by "any one function" of linux kernel. Most of the tools/utilities  I see have per process orientation .Is there a tool/ utility in linux red hat kernel 2.4 to do so ?

I do not minnd little bit kernel hacking to achieve the above.

Are there any commercially available products which can do this ?

Question by:perfect_tranquility
LVL 40

Accepted Solution

jlevie earned 2000 total points
ID: 12511712
I don't believe there are any tools out there that will do this. Partly because it is usually only of interest to kernel developers and partly because it would require each of the "kernel functions" to have additional code to support such a tool, which would markedly slow down the kernel.

If you really want to do this you'll need a good knowedge of the kernel and will have to modify each "function" to collect and report resource usage info. You'll have to be careful when implementing the instumentation to ensure that the act of measuring resource usage doesn't change the resource usage for a given "function".
LVL 38

Expert Comment

ID: 12514172

   You might directly check the on


Expert Comment

ID: 12530967
Just give a try to kernprof :


Maybe compiling the kernel with -pg and using a tool like gprof could work as well.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question