ia64/xen-unstable

view tools/check/check_logging @ 9488:0a6f5527ca4b

[IA64] set itv handoff as masked and enable reading irr[0-3]

Set initial vcpu itv handoff state to mask the timer vector.
This seems to match hardware and makes logical sense from a
spurious interrupt perspective. Enable vcpu_get_irr[0-3]
functions as they seem to work and have the proper backing.
This enables the check_sal_cache_flush() in arch/ia64/kernel.sal.c
to work unmodified, allowing us to remove the Xen changes from
the file (and thus the file from the sparse tree).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Tue Apr 04 09:39:45 2006 -0600 (2006-04-04)
parents 06d84bf87159
children
line source
1 #!/usr/bin/env python
2 # -*- mode: python; -*-
4 import os
5 import sys
7 def hline():
8 print >>sys.stderr, "*" * 70
10 def msg(message):
11 print >>sys.stderr, "*" * 3, message
13 def check_logging():
14 """Check python logging is installed and raise an error if not.
15 Logging is standard from Python 2.3 on.
16 """
17 try:
18 import logging
19 except ImportError:
20 hline()
21 msg("")
22 msg(" *** Python logging is not installed.")
23 msg(" *** Use 'make install-logging' at the xen root to install.")
24 msg(" *** ")
25 msg(" *** Alternatively download and install from")
26 msg(" *** http://www.red-dove.com/python_logging.html")
27 hline()
28 sys.exit(1)
30 if __name__ == '__main__':
31 check_logging()