From 0482af4d96d0a48c0e7eb9f9033408c014de9a4d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 14 Oct 2009 09:07:51 +0100 Subject: Spinlock profiling (enable in build with lock_profile=y) Adds new tool xenlockprof to run from dom0. From: Juergen Gross Signed-off-by: Keir Fraser --- xen/Rules.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xen/Rules.mk') diff --git a/xen/Rules.mk b/xen/Rules.mk index 3f141c33bc..a28efaf902 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -6,6 +6,7 @@ verbose ?= n perfc ?= n perfc_arrays ?= n +lock_profile ?= n crash_debug ?= n frame_pointer ?= n @@ -52,7 +53,9 @@ CFLAGS-$(verbose) += -DVERBOSE CFLAGS-$(crash_debug) += -DCRASH_DEBUG CFLAGS-$(perfc) += -DPERF_COUNTERS CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS +CFLAGS-$(lock_profile) += -DLOCK_PROFILE CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER +CFLAGS-$(privileged_stubdoms) += -DPRIVILEGED_STUBDOMS ifneq ($(max_phys_cpus),) CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus) @@ -61,10 +64,6 @@ ifneq ($(max_phys_irqs),) CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs) endif -ifeq ($(privileged_stubdoms),y) -CFLAGS += -DPRIVILEGED_STUBDOMS -endif - AFLAGS-y += -D__ASSEMBLY__ ALL_OBJS := $(ALL_OBJS-y) -- cgit v1.2.3