WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] dump guest core if enable-dump true

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] dump guest core if enable-dump true
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Fri, 29 Apr 2005 23:05:42 -0700
Delivery-date: Sat, 30 Apr 2005 06:05:22 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=P3QBvR8x2EGAckxv3RAj8rgME08Y19X6PI8XljXbp4RSiiOhvSZnCJZdIYZef3V4SyEMlbLpoMh8RY2FytF5MfH2LJjpMSolHIeqoH7n+gfswqi1SzyDxAtkL2sAl4ikSM49LXDEDtwHDL8+V+vofC/8th9Qyjuown3IVPoH+GM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Kip Macy <kip.macy@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Self-explanatory

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/04/29 23:01:40-07:00 kmacy@xxxxxxxxxxxxxxxxxxxx 
#   dump guest core if enable-dump is set
#   Signed-off-by: Kip Macy <kmacy@xxxxxxxxxxx>
# 
# tools/python/xen/xend/XendRoot.py
#   2005/04/29 23:01:32-07:00 kmacy@xxxxxxxxxxxxxxxxxxxx +3 -0
#   add enable-dump check
# 
# tools/python/xen/xend/XendDomain.py
#   2005/04/29 23:01:32-07:00 kmacy@xxxxxxxxxxxxxxxxxxxx +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')

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] dump guest core if enable-dump true, Kip Macy <=