Re: Profiling the Kernel

From: Lee Revell
Date: Wed Aug 01 2007 - 21:23:32 EST


On 8/1/07, Mohamed Bamakhrama <bamakhrama@xxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/