qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user and profiler
@ 2008-11-07  9:05 Laurent Desnogues
  0 siblings, 0 replies; only message in thread
From: Laurent Desnogues @ 2008-11-07  9:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

Hello,

   here is a patch that calls dump_exec_info before calling
exit and exit_group when CONFIG_PROFILER is defined.
Something similar should be done for bsd-user and
darwin-user, but I have no way to test them.


Laurent

Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: syscall-profiler-2.patch --]
[-- Type: text/x-patch; name=syscall-profiler-2.patch, Size: 677 bytes --]

Index: linux-user/syscall.c
===================================================================
--- linux-user/syscall.c	(revision 5643)
+++ linux-user/syscall.c	(working copy)
@@ -3396,6 +3396,9 @@
 #ifdef HAVE_GPROF
         _mcleanup();
 #endif
+#ifdef CONFIG_PROFILER
+        dump_exec_info(stderr, fprintf);
+#endif
         gdb_exit(cpu_env, arg1);
         /* XXX: should free thread stack and CPU env */
         sys_exit(arg1);
@@ -4870,6 +4873,9 @@
 #ifdef HAVE_GPROF
         _mcleanup();
 #endif
+#ifdef CONFIG_PROFILER
+        dump_exec_info(stderr, fprintf);
+#endif
         gdb_exit(cpu_env, arg1);
         ret = get_errno(exit_group(arg1));
         break;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-07  9:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07  9:05 [Qemu-devel] [PATCH] linux-user and profiler Laurent Desnogues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).