From 2906c56252687c0fc7585b05f250e70f23b6f748 Mon Sep 17 00:00:00 2001 From: David Su Date: Fri, 20 Nov 2015 16:34:57 -0800 Subject: 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 --- tests/vm-trace/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/vm-trace/Makefile (limited to 'tests/vm-trace/Makefile') 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.* -- cgit 1.2.3-korg