qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Laurent Desnogues" <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Dump profiler information when exiting (user emulation)
Date: Thu, 12 Jun 2008 17:22:35 +0200	[thread overview]
Message-ID: <761ea48b0806120822g61bf478dlb9ac5fb17c9d4fae@mail.gmail.com> (raw)

[-- 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;

                 reply	other threads:[~2008-06-12 15:22 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=761ea48b0806120822g61bf478dlb9ac5fb17c9d4fae@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).