summaryrefslogtreecommitdiffstats
path: root/Makefile.target
diff options
context:
space:
mode:
authoraurel322008-11-06 17:15:18 +0100
committeraurel322008-11-06 17:15:18 +0100
commit6d946cdae0b5ba6b45499a124263b57ca5bffe68 (patch)
tree023e739f26496afa6a76d24d827acbb370b38a6d /Makefile.target
parentRemove unused reg_T2 definition (diff)
downloadqemu-6d946cdae0b5ba6b45499a124263b57ca5bffe68.tar.gz
qemu-6d946cdae0b5ba6b45499a124263b57ca5bffe68.tar.xz
qemu-6d946cdae0b5ba6b45499a124263b57ca5bffe68.zip
User qemu profiling
- Makefile.target: re-enable profiling for user qemu. It seems profiling was (accidently?) removed by commit 3937 - syscall.c: * add an include to get _mcleanup prototype * add a call to _mcleanup for exit_group in a way similar to what is done for exit (Laurent Desnogues) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5642 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target
index e8256c0316..031ab456ec 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -397,6 +397,12 @@ LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
endif
endif
+# profiling code
+ifdef TARGET_GPROF
+LDFLAGS+=-p
+CFLAGS+=-p
+endif
+
OBJS= main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
elfload.o linuxload.o uaccess.o
LIBS+= $(AIOLIBS)