[llvm-commits] CVS: poolalloc/test/TEST.pavtl.Makefile

John Criswell criswell at cs.uiuc.edu
Thu Mar 4 19:52:01 PST 2004


Changes in directory poolalloc/test:

TEST.pavtl.Makefile updated: 1.7 -> 1.8

---
Log message:

Added L2 cache read references to the default list of Pentimum 4 events.
Modified some of the reporting rules to distringuish between L2 and L3
cache statistics.
Added LLVM report system code.



---
Diffs of the changes:  (+12 -9)

Index: poolalloc/test/TEST.pavtl.Makefile
diff -u poolalloc/test/TEST.pavtl.Makefile:1.7 poolalloc/test/TEST.pavtl.Makefile:1.8
--- poolalloc/test/TEST.pavtl.Makefile:1.7	Thu Mar  4 15:37:54 2004
+++ poolalloc/test/TEST.pavtl.Makefile	Thu Mar  4 19:51:21 2004
@@ -18,7 +18,10 @@
 #
 P4_EVENTS := -ec
 P4_EVENTS += en='2nd Level Cache Read Misses':sa=5000
-#P4_EVENTS += en='2nd-Level Cache Read References'
+P4_EVENTS += -ec
+P4_EVENTS += en='2nd-Level Cache Read References'
+#P4_EVENTS += -ec
+#P4_EVENTS += en='3rd-Level Cache Read Misses':sa=5000
 #P4_EVENTS += en='1st Level Cache Load Misses Retired'
 P3_EVENTS := -ec en='L2 Cache Request Misses (highly correlated)'
 
@@ -33,19 +36,19 @@
 ifeq ($(EVENTS),$(P4_EVENTS))
 $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cachemisses.%): \
 Output/$(TEST).L2cachemisses.%: Output/test.$(TEST).%
-	grep "Output/$*.cbe" $< | grep "Cache Read Misses" | awk '{print $$(NF-1)}' > $@
+	grep "Output/$*.cbe" $< | grep "Cache Read Misses" | grep "2nd" | awk '{print $$(NF-1)}' > $@
 
 $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cachemisses.pa.%): \
 Output/$(TEST).L2cachemisses.pa.%: Output/test.$(TEST).pa.%
-	grep "Output/$*.poolalloc.cbe" $< | grep "Cache Read Misses" | awk '{print $$(NF-1)}' > $@
+	grep "Output/$*.poolalloc.cbe" $< | grep "Cache Read Misses" | grep "2nd" | awk '{print $$(NF-1)}' > $@
 
 $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cacherefs.%): \
 Output/$(TEST).L2cacherefs.%: Output/test.$(TEST).%
-	grep "Output/$*.cbe" $< | grep "Cache Read References" | awk '{print $$(NF-1)}' > $@
+	grep "Output/$*.cbe" $< | grep "Cache Read References" | grep "2nd" | awk '{print $$(NF-1)}' > $@
 
 $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cacherefs.pa.%): \
 Output/$(TEST).L2cacherefs.pa.%: Output/test.$(TEST).pa.%
-	grep "Output/$*.poolalloc.cbe" $< | grep "Cache Read References" | awk '{print $$(NF-1)}' > $@
+	grep "Output/$*.poolalloc.cbe" $< | grep "Cache Read References" | grep "2nd" | awk '{print $$(NF-1)}' > $@
 endif
 
 # Pentium 3 Events
@@ -98,10 +101,10 @@
                      $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cacherefs.%)       \
                      $(PROGRAMS_TO_TEST:%=Output/$(TEST).L2cacherefs.pa.%)
 	@echo > $@
-	@echo CBE-PA-L2-Misses `cat Output/$(TEST).L2cachemisses.pa.$*`
-	@echo CBE-PA-L2-Refs   `cat Output/$(TEST).L2cacherefs.pa.$*`
-	@echo CBE-L2-Misses    `cat Output/$(TEST).L2cachemisses.$*`
-	@echo CBE-L2-Refs      `cat Output/$(TEST).L2cacherefs.$*`
+	@echo "CBE-PA-L2-Misses:" `cat Output/$(TEST).L2cachemisses.pa.$*` >> $@
+	@echo "CBE-PA-L2-Refs:" `cat Output/$(TEST).L2cacherefs.pa.$*` >> $@
+	@echo "CBE-L2-Misses:" `cat Output/$(TEST).L2cachemisses.$*` >> $@
+	@echo "CBE-L2-Refs:" `cat Output/$(TEST).L2cacherefs.$*` >> $@
 
 
 $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \





More information about the llvm-commits mailing list