On Wed, Apr 27, 2005 at 04:58:34AM +0100, ravi kanth wrote:
> 1. Can we parse the binary sample files using any other language instead of using opreport?
You can use libdb in the oprofile source. Note that both the file format
and the library interface may change at will, they are not stable APIs
> 2. Are there any tools doing this?
There are no public users that I know of. Some people have private
Why do you want to do it yourself?
> 3. What is the format of the binary files?
Use libdb. Then use the iterator. The odb_key_t value is:
- for normal sample files: the *file* offset of the sample
- for callgraph files:
(the *file* offset of the caller << 32 | the *file* offset of the callee)
the odb_value_t is the number of samples at that location.
Yahoo! India Matrimony: Find your life partner online.