* [Qemu-devel] [PATCH] Dump profiler information when exiting (user emulation)
@ 2008-06-12 15:22 Laurent Desnogues
0 siblings, 0 replies; only message in thread
From: Laurent Desnogues @ 2008-06-12 15:22 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 83 bytes --]
This patch calls dump_exec_info when _exit or exit_group syscall is run.
Laurent
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: syscall-profiler.patch --]
[-- Type: text/x-patch; name=syscall-profiler.patch, Size: 670 bytes --]
--- svn-ref/linux-user/syscall.c 2008-06-11 07:53:45.000000000 +0200
+++ svn/linux-user/syscall.c 2008-06-12 17:18:15.000000000 +0200
@@ -3236,6 +3236,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 */
_exit(arg1);
@@ -4662,6 +4665,9 @@
#ifdef __NR_exit_group
/* new thread calls */
case TARGET_NR_exit_group:
+#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-06-12 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12 15:22 [Qemu-devel] [PATCH] Dump profiler information when exiting (user emulation) 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).