aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/timer.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-08-02 13:43:15 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-08-02 13:43:15 +0100
commit2d986e611fada54d00d3759dad5725d337493719 (patch)
treeca5b9afcd291893d40b713acdbada93432eca186 /xen/common/timer.c
parent91baae515e845630309aa8d72bf1cf4a2eaa120c (diff)
downloadxen-2d986e611fada54d00d3759dad5725d337493719.tar.gz
xen-2d986e611fada54d00d3759dad5725d337493719.tar.bz2
xen-2d986e611fada54d00d3759dad5725d337493719.zip
Add a single trigger for all diagnostic keyhandlers
Add a new keyhandler that triggers all the side-effect-free keyhandlers. This lets automated tests (and users) log the full set of keyhandlers without having to be aware of which ones might reboot the host. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/timer.c')
-rw-r--r--xen/common/timer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xen/common/timer.c b/xen/common/timer.c
index 8f975958d8..aaa4f4e18c 100644
--- a/xen/common/timer.c
+++ b/xen/common/timer.c
@@ -514,6 +514,11 @@ static void dump_timerq(unsigned char key)
}
}
+static struct keyhandler dump_timerq_keyhandler = {
+ .diagnostic = 1,
+ .u.fn = dump_timerq,
+ .desc = "dump timer queues"
+};
void __init timer_init(void)
{
@@ -535,7 +540,7 @@ void __init timer_init(void)
per_cpu(timers, i).heap = &dummy_heap;
}
- register_keyhandler('a', dump_timerq, "dump timer queues");
+ register_keyhandler('a', &dump_timerq_keyhandler);
}
/*