Hi,I've done some more testing. Using an example from the block prefetching paper from AMD, I wrote a test that contains a fixed number of prefetches. I've varied the number of prefetches and measured them. The resulting graph is attached.
The counter seems to work, as the number of inserted prefetches augments, the number of measured prefetches augments.
The relation between the two is not lineair however. Is this caused by some kind of prefetch selection algorithm in the prefetch unit ?
Thanks! Frederick Citeren Robert Richter <robert.rich...@amd.com>:
On 09.03.09 15:37:38, frederick.ryckbo...@ugent.be wrote:I'm working on a program that dynamically inserts prefetches in program code.Now I'm trying to measure the number of prefetches executed by the program, when I use: pfmon -u -e PREFETCH_INSTRUCTIONS_DISPATCHED:ALL ./myprogWhat tells pfmon -I? The command above causes a segfault on my system. Will have to debug this. Which version (kernel/libpfm/pfmon) do you use? Does this work? # pfmon true 382068 CPU_CLK_UNHALTED -Robert -- Advanced Micro Devices, Inc. Operating System Research Center email: robert.rich...@amd.com
<<attachment: prefetches.png>>
------------------------------------------------------------------------------
_______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel