summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-21 02:23:52 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-21 02:23:52 +0100
commit769e05dd63ed0379e7325da6e82c0c46c151ef4e (patch)
tree0c0bbef5f61717647efb297b2632c3e92acc4089 /Makefile
parent0257ca8ac931775fffd74150b439eb9ddcc025aa (diff)
downloadcachepc-769e05dd63ed0379e7325da6e82c0c46c151ef4e.tar.gz
cachepc-769e05dd63ed0379e7325da6e82c0c46c151ef4e.zip
Reimplement test and prime+probe in asm, make self-tests harder and improve noise
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7b1abc9..146bd0e 100755
--- a/Makefile
+++ b/Makefile
@@ -49,12 +49,14 @@ load:
sudo insmod $(LINUX)/arch/x86/kvm/kvm.ko
sudo insmod $(LINUX)/arch/x86/kvm/kvm-amd.ko
-freq:
+prep:
+ sudo sh -c "echo 0 > /proc/sys/kernel/watchdog"
sudo cpupower frequency-set -f 3.7GHz
util/%: util/%.c $(CACHEPC_UAPI)
-test/%: test/%.c $(CACHEPC_UAPI)
+test/eviction: test/eviction.c test/util.c $(CACHEPC_UAPI)
+ $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS)
test/kvm-eviction: test/kvm-eviction.c test/kvm-eviction_guest.S test/util.c \
test/util.h test/kvm.c test/kvm.h test/kvm-eviction.h $(CACHEPC_UAPI)
@@ -64,4 +66,4 @@ test/kvm-step: test/kvm-step.c test/kvm-step_guest.S \
test/util.c test/util.h test/kvm.c test/kvm.h $(CACHEPC_UAPI)
$(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS)
-.PHONY: all clean host build load freq
+.PHONY: all clean host build load prep