From: Matthew F. <mat...@gm...> - 2007-10-08 09:55:13
|
Hey all, I'm using oprofile version 0.9.3 to perform some profiling on a Xeon machine which has two quad cores. The metric i'm attemping to recover is the L2 cache ratio and therefore i'm need to collect both the L2 requests and L2 misses. However, when i attempt to record them both at once the profile only reports one. My current solution is to record them on separate runs but this provides inaccurate results. Also, occasionally when i run opreport the output file is 0 bytes and there is nothing recorded even thou i perform a dump before running opreport. A side note is that i've run the same script on an Intel Core2 Duo system and it provides both outputs fine. The script / sequence i'm using to setup oprofile is below. Any help would be greatly appreciated. Thanks Matt #!/bin/bash # # This script can be used to setup profiling on the xeon System EVENT0=LLC_MISSES:1000000:65:1:1 EVENT1=LLC_REFS:1000000:79:1:1 VMLINUX=/home/cheka/linux-2.6.18.4/vmlinux KERNBUFFSIZE=65536 opcontrol --reset opcontrol --setup --event=$EVENT0 --event=$EVENT1 --vmlinux=$VMLINUX --buffer-size=65536 --buffer-watershed=0 --cpu-buffer-size=0 --callgraph=0 --separate=library,kernel,cpu,thread opcontrol --start-daemon Then i start the tests as normal opcontrol --start stop the tests opcontrol --stop dump the output opcontrol --dump And finally use opreport to prouce the output using both opreport --merge tgid --symbols >outputfile.txt opreport --merge cpu --symbols >outputfile1.txt |