[llvm-commits] CVS: poolalloc/test/TEST.cputrack.Makefile Makefile
John Criswell
criswell at cs.uiuc.edu
Mon Nov 1 14:47:12 PST 2004
Changes in directory poolalloc/test:
TEST.cputrack.Makefile added (r1.1)
Makefile updated: 1.20 -> 1.21
---
Log message:
Added support for measuring cache misses on the Solaris/SparcV9 machines.
---
Diffs of the changes: (+62 -0)
Index: poolalloc/test/TEST.cputrack.Makefile
diff -c /dev/null poolalloc/test/TEST.cputrack.Makefile:1.1
*** /dev/null Mon Nov 1 16:47:12 2004
--- poolalloc/test/TEST.cputrack.Makefile Mon Nov 1 16:47:01 2004
***************
*** 0 ****
--- 1,55 ----
+ ##===- poolalloc/TEST.strace.Makefile ----------------------*- Makefile -*-===##
+ #
+ # Makefile for measuring system call activity with strace
+ #
+ ##===----------------------------------------------------------------------===##
+
+ TESTNAME = $*
+ CURDIR := $(shell cd .; pwd)
+ 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
+
+ #
+ # Once the results are generated, create files containing each individiual
+ # piece of performance information.
+ #
+
+ #
+ # Generate events for Pool Allocated CBE
+ #
+ $(PROGRAMS_TO_TEST:%=Output/test.$(TEST).pa.%): \
+ Output/test.$(TEST).pa.%: Output/%.poolalloc.cbe Output/test.$(TEST).%
+ @echo "========================================="
+ @echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ ifeq ($(RUN_OPTIONS),)
+ $(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $<
+ else
+ $(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $< $(RUN_OPTIONS)
+ endif
+
+ #
+ # Generate events for CBE
+ #
+ $(PROGRAMS_TO_TEST:%=Output/test.$(TEST).%): \
+ Output/test.$(TEST).%: Output/%.cbe
+ @echo "========================================="
+ @echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ ifeq ($(RUN_OPTIONS),)
+ $(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $<
+ else
+ $(VERB) cat $(STDIN_FILENAME) | $(CPUTRACK) -o $@ $< $(RUN_OPTIONS)
+ endif
+
+ $(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
+ Output/%.$(TEST).report.txt: Output/test.$(TEST).pa.% Output/test.$(TEST).%
+ touch $@
+
+ $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
+ test.$(TEST).%: Output/%.$(TEST).report.txt
+ @echo "---------------------------------------------------------------"
+ @echo ">>> ========= '$(RELDIR)/$*' Program"
+ @echo "---------------------------------------------------------------"
+ @cat $<
+
Index: poolalloc/test/Makefile
diff -u poolalloc/test/Makefile:1.20 poolalloc/test/Makefile:1.21
--- poolalloc/test/Makefile:1.20 Wed Oct 13 11:59:22 2004
+++ poolalloc/test/Makefile Mon Nov 1 16:47:01 2004
@@ -135,3 +135,10 @@
PROJECT_DIR=$(BUILD_OBJ_ROOT) $(MAKE) -j1 TEST=strace \
test)
@printf "\a"; sleep 1; printf "\a"; sleep 1; printf "\a"
+
+cputrack::
+ (cd $(LLVM_OBJ_ROOT)/projects/llvm-test/$(SUBDIR); \
+ PROJECT_DIR=$(BUILD_OBJ_ROOT) $(MAKE) -j1 TEST=cputrack \
+ test)
+ @printf "\a"; sleep 1; printf "\a"; sleep 1; printf "\a"
+
More information about the llvm-commits
mailing list