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

John Criswell criswell at cs.uiuc.edu
Tue Nov 2 13:48:54 PST 2004



Changes in directory poolalloc/test:

TEST.cputrack.Makefile updated: 1.3 -> 1.4

---
Log message:

Add other miscellaneous events.
By default, L1 data cache reads and read misses will be measured.


---
Diffs of the changes:  (+32 -5)

Index: poolalloc/test/TEST.cputrack.Makefile
diff -u poolalloc/test/TEST.cputrack.Makefile:1.3 poolalloc/test/TEST.cputrack.Makefile:1.4
--- poolalloc/test/TEST.cputrack.Makefile:1.3	Mon Nov  1 20:55:57 2004
+++ poolalloc/test/TEST.cputrack.Makefile	Tue Nov  2 15:48:44 2004
@@ -9,7 +9,34 @@
 PROGDIR := $(shell cd $(LLVM_OBJ_ROOT)/projects/llvm-test; pwd)/
 RELDIR  := $(subst $(PROGDIR),,$(CURDIR))
 
-CPUTRACK := cputrack -T 500 -c pic0=EC_rd_miss,pic1=DC_rd_miss
+
+#
+# Solaris cputrack command that will sample the counters every 500 ticks.
+# All programs must complete in under 500 ticks (500 seconds by default),
+# and the counters must not wrap around
+#
+CPUTRACK       := cputrack -T 500
+
+#
+# Events for the Ultrasparc IIIi processor.
+#
+# EVENTS_DC_RD:
+#   Read accesses and misses on the L1 Data Cache.
+#
+# EVENTS_DC_WR:
+#   Write accesses and misses on the L1 Data Cache.  This probably isn't as
+#   valuable as it sounds because the cache is write through, non allocate.
+#   So, as I understand it, the L2 and Write Caches are where the write action
+#   is.
+#
+# EVENTS_EC_MISS:
+#   Read misses and overall misses for the L2 Cache (aka the Embedded Cache).
+#
+EVENTS_DC_RD   := -c pic0=DC_rd,pic1=DC_rd_miss
+EVENTS_DC_WR   := -c pic0=DC_wr,pic1=DC_wr_miss
+EVENTS_EC_MISS := -c pic0=EC_rd_miss,pic1=EC_misses
+EVENTS_TLB     := -c pic0=EC_rd_miss,pic1=DTLB_miss
+EVENTS_WC      := -c pic0=Cycle_cnt,pic1=WC_miss
 
 #
 # Once the results are generated, create files containing each individiual
@@ -24,9 +51,9 @@
 	@echo "========================================="
 	@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
 ifeq ($(RUN_OPTIONS),)
-	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $<
+	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) $(EVENTS_DC_RD) -o $@ $<
 else
-	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $< $(RUN_OPTIONS)
+	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) $(EVENTS_DC_RD) -o $@ $< $(RUN_OPTIONS)
 endif
 
 #
@@ -37,9 +64,9 @@
 	@echo "========================================="
 	@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
 ifeq ($(RUN_OPTIONS),)
-	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $<
+	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) $(EVENTS_DC_RD) -o $@ $<
 else
-	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $< $(RUN_OPTIONS)
+	$(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) $(EVENTS_DC_RD) -o $@ $< $(RUN_OPTIONS)
 endif
 
 $(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \





More information about the llvm-commits mailing list