On 5/24/12 10:19 AM, HUMMEL Michel wrote:
Thanks for your help,

I tried with a perf_3.2 binary but it gives me the same bad results.
I Tried to read the old record, and also to generate a new one with the 3.2 
binary.

I am not sure to understand your suggestion with perf script and the -R option, 
can you give me more details please (sorry for my poor english).


RHEL6 and 2.6.32 is fairly old from perf's perspective. I have not looked at RHEL6 source to see how much of the upstream code was backported. However, the perf.data file *should* be compatible with upstream perf code.

So, in an attempt to better understand why you are not getting expected results:

1. Add -R to your record command:
perf record -R -e cycles,instructions \
   -o perf.data.cycles.instructions2 ./test_perfo2

2. Use the 3.2 version of the perf binary to analyze the file

perf_3.2 script -i perf.data.cycles.instructions2 > samples

Look at the samples file -- it will contain each sample and the event that triggered it (cycles or instructions). Does looking at each sample give some idea as to why the report does not make sense?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to