X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fbuild%2FMakefile;h=8e9d972d273758529c407b7fd9ed7931891494c7;hb=bbef87558ec784cd99c72b759aa78a8c47aa5fd3;hp=1b2cf5ddf901dc7c2cf5e892f38b787fd2565c0e;hpb=427424e8db42ca592805f79d3ca673d50ab51ad9;p=palacios.git diff --git a/palacios/build/Makefile b/palacios/build/Makefile index 1b2cf5d..8e9d972 100644 --- a/palacios/build/Makefile +++ b/palacios/build/Makefile @@ -217,6 +217,15 @@ endif +ifeq ($(INSTRUMENT_VMM),1) + EXTRA_C_OPTS:= -DINSTRUMENT_VMM + INSTRUMENT_OPT := -finstrument-functions + OBJ_FILES := palacios/vmm_instrument.o +else + INSTRUMENT_OPT := +endif + + # ---------------------------------------------------------------------- # Configuration - @@ -268,6 +277,9 @@ VMM_OBJS := \ palacios/vmm_xed.o \ palacios/vmm_rbtree.o \ palacios/vmm_profiler.o \ + palacios/vmm_direct_paging.o \ + palacios/vmm_ringbuffer.o \ + $(OBJ_FILES) # vmx.c vmcs_gen.c vmcs.c @@ -296,6 +308,9 @@ DEVICES_OBJS := \ devices/ramdisk.o \ devices/cdrom.o \ devices/bochs_debug.o \ + devices/os_debug.o \ + devices/apic.o \ + devices/io_apic.o \ $(DEVICES_OBJS) :: EXTRA_CFLAGS = \ $(JRLDEBUG) \ @@ -400,7 +415,6 @@ CC_GENERAL_OPTS = \ #-fvisibility=hidden - # Flags passed to objcopy program (strip unnecessary sections from kernel.exe) OBJCOPY_FLAGS := -R .dynamic -R .note -R .comment @@ -436,6 +450,7 @@ CC_COMPILE = \ -c \ $< \ -o $@ \ + $(INSTRUMENT_OPT) \ ) AS_COMPILE = \ @@ -445,6 +460,7 @@ AS_COMPILE = \ -c \ $< \ -o $@ \ + $(INSTRUMENT_OPT) \ )