Re: oprofile: profiling kernel

From: Baruch Even
Date: Sat May 07 2005 - 10:14:10 EST


li nux wrote:
Using oprofile Is it possible to profile how many
times a function say try_to_unmap_cluster() is called
within the kernel in a certain time interval ?
If yes, then how ?
What settings are needed for that.

No. That's not possible with oprofile.

To get something like that I hack the code and use relayfs to transfer the data to user-space.

Note, the examples for relayfs show using sprintf to generate text output. *Don't* do that. Use binary buffers and translate them to text off-line in user-mode. sprintf is awfully inefficient for large amounts of data.

Baruch
-
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/