summaryrefslogtreecommitdiffstats
path: root/tests/vm-trace/Makefile
diff options
context:
space:
mode:
authorDavid Su <david.w.su@intel.com>2015-11-20 16:34:57 -0800
committerDavid Su <david.w.su@intel.com>2015-12-04 14:37:54 -0800
commit2906c56252687c0fc7585b05f250e70f23b6f748 (patch)
tree9701a39e5c90c33d579b63d74ced34f6bf81825d /tests/vm-trace/Makefile
parent6744cd0d1d2faad4e7b345563b91888d32db221e (diff)
Add VM preemption latency measuring tool vm-trace
This tool is to be used to measure VM preemption latencies defined by kvmfornfv requirements. See README.txt for usage of the tool. Change-Id: I78aed07df0af02f2268e36cfeb81923ba2bdb52a Signed-off-by: David Su <david.w.su@intel.com>
Diffstat (limited to 'tests/vm-trace/Makefile')
-rw-r--r--tests/vm-trace/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/vm-trace/Makefile b/tests/vm-trace/Makefile
new file mode 100644
index 000000000..e367739d4
--- /dev/null
+++ b/tests/vm-trace/Makefile
@@ -0,0 +1,23 @@
+DEBUG ?= n
+
+ifeq ($(DEBUG),y)
+ DBGFLAGS = -g -DDEBUG
+else
+ DBGFLAGS = -O2
+endif
+
+XTRA_CFLAGS = $(DBGFLAGS) -Wall
+XTRALIBS = -lrt -lpthread
+
+all: vm-trace cscope
+
+vm-trace: vm-trace.c
+ $(CC) $(XTRA_CFLAGS) $< -o $@ $(XTRALIBS)
+
+cscope.out: vm-trace.c
+ cscope -b
+
+cscope: cscope.out
+
+clean:
+ rm -f *.o core* vm-trace cscope.*