The wrong index is being used when parsing the oprofile for the DTLB event. The
result is in ppc970, the TLB miss cost is always 0. This patch fixes the
problem.

Signed-off-by: Mel Gorman <m...@csn.ul.ie>
--- 
 contrib/tlbmiss_cost.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/tlbmiss_cost.sh b/contrib/tlbmiss_cost.sh
index 81e2c79..a86fbac 100755
--- a/contrib/tlbmiss_cost.sh
+++ b/contrib/tlbmiss_cost.sh
@@ -265,7 +265,7 @@ seperate_dtlb_pagewalk_groups()
        fi
        INDEX=`opreport | head -$SAMPLES_START | grep "^Counted .* events" | 
grep -n $TIMER_DTLB_EVENT | cut -d: -f1`
        TIMER_DTLB_FIELD=$((1+2*($INDEX - 1)))
-       if [ $TIMER_DTLB_FIELD -ne 1 ]; then
+       if [ $TIMER_DTLB_FIELD -eq 1 ]; then
                DTLB_TIMER_INDEX=1
        else
                DTLB_TIMER_INDEX=2

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to