From: "Laurent Desnogues" <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] linux-user and profiler
Date: Fri, 7 Nov 2008 10:05:24 +0100 [thread overview]
Message-ID: <761ea48b0811070105k233fca88x95c7a0a2a2be7a7f@mail.gmail.com> (raw)
[-- 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;
reply other threads:[~2008-11-07 9:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=761ea48b0811070105k233fca88x95c7a0a2a2be7a7f@mail.gmail.com \
--to=laurent.desnogues@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).