diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-07 14:30:21 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-07 14:30:21 +0100 |
commit | 94c85019981270a21e6e3aeba694f3b7b444b566 (patch) | |
tree | c42a47aae990fa457bbd10e8372a4cb9744d094e /xen/Rules.mk | |
parent | 30f01d9011561268556d47273a8599ebd9b3173a (diff) | |
download | xen-94c85019981270a21e6e3aeba694f3b7b444b566.tar.gz xen-94c85019981270a21e6e3aeba694f3b7b444b566.tar.bz2 xen-94c85019981270a21e6e3aeba694f3b7b444b566.zip |
Add backtrace support to xenoprof.
Signed-off-by: Amitabha Roy <amitabha.roy@gmail.com>
Reviewed-by: Jose Renato G Santos <joserenato.santos@hp.com>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r-- | xen/Rules.mk | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk index ac42711a11..55ae9746e0 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -3,10 +3,11 @@ # If you change any of these configuration options then you must # 'make clean' before rebuilding. # -verbose ?= n -perfc ?= n -perfc_arrays?= n -crash_debug ?= n +verbose ?= n +perfc ?= n +perfc_arrays ?= n +crash_debug ?= n +frame_pointer ?= n XEN_ROOT=$(BASEDIR)/.. include $(XEN_ROOT)/Config.mk @@ -14,11 +15,15 @@ include $(XEN_ROOT)/Config.mk # Hardcoded configuration implications and dependencies. # Do this is a neater way if it becomes unwieldy. ifeq ($(debug),y) -verbose := y +verbose := y +frame_pointer := y endif ifeq ($(perfc_arrays),y) perfc := y endif +ifeq ($(frame_pointer),y) +CFLAGS := $(shell echo $(CFLAGS) | sed -e 's/-f[^ ]*omit-frame-pointer//g') +endif # Set ARCH/SUBARCH appropriately. override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH) @@ -50,18 +55,19 @@ ALL_OBJS-y += $(BASEDIR)/drivers/built_in.o ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/built_in.o ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o -CFLAGS-y += -g -D__XEN__ -CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY -CFLAGS-$(verbose) += -DVERBOSE -CFLAGS-$(crash_debug) += -DCRASH_DEBUG -CFLAGS-$(perfc) += -DPERF_COUNTERS -CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS +CFLAGS-y += -g -D__XEN__ +CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY +CFLAGS-$(verbose) += -DVERBOSE +CFLAGS-$(crash_debug) += -DCRASH_DEBUG +CFLAGS-$(perfc) += -DPERF_COUNTERS +CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS +CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER ifneq ($(max_phys_cpus),) -CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus) +CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus) endif -AFLAGS-y += -D__ASSEMBLY__ +AFLAGS-y += -D__ASSEMBLY__ ALL_OBJS := $(ALL_OBJS-y) |