• Collect clockticks and instructions retired counts for 5 secs, dump to file 'out'
    sep -start -c -d 5 –out blah
  • Collect all branches taken and branches mispredicted
    sep -start -c -ec "BR_INST_RETIRED.ANY","BR_INST_RETIRED.MISPRED" -out blah -app the_app
  • Measuring Stalls
#!/bin/bash
sep -start -c -ec "RESOURCE_STALLS.ANY" -out 1_ANY -app taskset -args "-c 1 ./br"
sep -start -c -ec "RESOURCE_STALLS.BR_MISS_CLEAR" -out 2_BR_MISS -app taskset -args "-c 1 ./br"
sep -start -c -ec "RESOURCE_STALLS.ROB_FULL" -out 3_ROB_FULL -app taskset -args "-c 1 ./br"
sep -start -c -ec "RESOURCE_STALLS.LD_ST" -out 4_LD_ST -app taskset -args "-c 1 ./br"
sep -start -c -ec "RESOURCE_STALLS.RS_FULL" -out 5_RS_FULL -app taskset -args "-c 1 ./br"

cat [1-5]* | grep \,1\, | awk -F, '{print $1 $3}'

  • collect counters to measure memory b/w on Merom: dsep -start -c -ec "BUS_TRANS_MEM.ALL_AGENTS","CPU_CLK_UNHALTED.CORE" -d 60

-- MattWalsh - 24 Aug 2006

Topic revision: r3 - 06 Sep 2006 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback