All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kip Macy <kip.macy@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] dump guest core if enable-dump true
Date: Fri, 29 Apr 2005 23:05:42 -0700	[thread overview]
Message-ID: <b1fa291705042923052f849628@mail.gmail.com> (raw)

Self-explanatory

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/04/29 23:01:40-07:00 kmacy@curly.lab.netapp.com 
#   dump guest core if enable-dump is set
#   Signed-off-by: Kip Macy <kmacy@fsmware.com>
# 
# tools/python/xen/xend/XendRoot.py
#   2005/04/29 23:01:32-07:00 kmacy@curly.lab.netapp.com +3 -0
#   add enable-dump check
# 
# tools/python/xen/xend/XendDomain.py
#   2005/04/29 23:01:32-07:00 kmacy@curly.lab.netapp.com +2 -0
#   dump core if enabled
# 
diff -Nru a/tools/python/xen/xend/XendDomain.py
b/tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       2005-04-28 23:08:40 -07:00
+++ b/tools/python/xen/xend/XendDomain.py       2005-04-28 23:08:40 -07:00
@@ -255,6 +255,8 @@
                     eserver.inject('xend.domain.exit', [name, id, reason])
                     self.domain_restart_schedule(id, reason)
             else:
+               if xroot.get_enable_dump() == 'true':
+                   xc.domain_dumpcore(dom = int(id), corefile =
"/var/xen/dump/%s.%s.core"%(name,id))
                eserver.inject('xend.domain.exit', [name, id, 'crash']) 
             destroyed += 1
             self.final_domain_destroy(id)
diff -Nru a/tools/python/xen/xend/XendRoot.py
b/tools/python/xen/xend/XendRoot.py
--- a/tools/python/xen/xend/XendRoot.py 2005-04-28 23:08:40 -07:00
+++ b/tools/python/xen/xend/XendRoot.py 2005-04-28 23:08:40 -07:00
@@ -255,6 +255,9 @@
     def get_network_script(self):
         return self.get_config_value('network-script', 'network')
 
+    def get_enable_dump(self):
+        return self.get_config_value('enable-dump', 'false')
+
     def get_vif_bridge(self):
         return self.get_config_value('vif-bridge', 'xen-br0')

                 reply	other threads:[~2005-04-30  6: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=b1fa291705042923052f849628@mail.gmail.com \
    --to=kip.macy@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.