dump guest core if enable-dump true
PATCH 1/1 dump guest core if enable-dump true
Self-explanatory
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/04/29 23:01:40-07:00 [email protected] # dump guest core if enable-dump is set # Signed-off-by: Kip Macy <[email protected]>
#
# tools/python/xen/xend/XendRoot.py
# 2005/04/29 23:01:32-07:00 [email protected] +3 -0
# add enable-dump check
#
# tools/python/xen/xend/XendDomain.py
# 2005/04/29 23:01:32-07:00 [email protected] +2 -0
# dump core if enabled
#
diff -Nru a/tools/python/xen/xend/XendDomain.pyb/tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomain.py 2005-04-28 23:08:40 -07:00 +2 -0
@@ -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.pyb/tools/python/xen/xend/XendRoot.py
tools/python/xen/xend/XendRoot.py 2005-04-28 23:08:40 -07:00 +3 -0
@@ -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')