2007-08-01 15:51:57

by Mohamed Bamakhrama

[permalink] [raw]
Subject: Profiling the Kernel

Hi *,
I have a question regarding profiling the Linux kernel code during
runtime (by "profile", I mean the usage of each function/module within
the kernel itself). I googled and found many "system-wide" profiler
such as sysprof, Oprofile, etc... I am working on an embedded system
project and currently we are using an on-chip debugger which
interfaces with the system through EJTAG port. All what it can provide
is just a "uniform sampling" of the kernel code usage and according to
the manufacturer, it is not a safe way to determine the "hot spots"
within the kernel. Does anyone know about any hardware/software tool
that can provide a "good" profile of the kernel code usage?

Thanks in advance.

Best regards,

--
Mohamed A. Bamakhrama
Web: http://home.cs.tum.edu/~bamakhra/


2007-08-02 01:23:14

by Lee Revell

[permalink] [raw]
Subject: Re: Profiling the Kernel

On 8/1/07, Mohamed Bamakhrama <[email protected]> wrote:
> Hi *,
> I have a question regarding profiling the Linux kernel code during
> runtime (by "profile", I mean the usage of each function/module within
> the kernel itself). I googled and found many "system-wide" profiler
> such as sysprof, Oprofile, etc... I am working on an embedded system
> project and currently we are using an on-chip debugger which
> interfaces with the system through EJTAG port. All what it can provide
> is just a "uniform sampling" of the kernel code usage and according to
> the manufacturer, it is not a safe way to determine the "hot spots"
> within the kernel. Does anyone know about any hardware/software tool
> that can provide a "good" profile of the kernel code usage?

Oprofile can do what you want, check the docs and google.

Lee