ChangeSet 1.1407, 2005/04/30 16:19:31+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
dump-enable.patch
Dump guest core if enable-dump is set.
Signed-off-by: Kip Macy <kmacy@xxxxxxxxxxx>
XendDomain.py | 2 ++
XendRoot.py | 3 +++
2 files changed, 5 insertions(+)
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-30 12:03:55 -04:00
+++ b/tools/python/xen/xend/XendDomain.py 2005-04-30 12:03:55 -04: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-30 12:03:55 -04:00
+++ b/tools/python/xen/xend/XendRoot.py 2005-04-30 12:03:55 -04: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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|