aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/event_channel.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/event_channel.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/event_channel.c')
-rw-r--r--xen/common/event_channel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index ccc709111f..9c2731788a 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -1135,9 +1135,15 @@ static void dump_evtchn_info(unsigned char key)
rcu_read_unlock(&domlist_read_lock);
}
+static struct keyhandler dump_evtchn_info_keyhandler = {
+ .diagnostic = 1,
+ .u.fn = dump_evtchn_info,
+ .desc = "dump evtchn info"
+};
+
static int __init dump_evtchn_info_key_init(void)
{
- register_keyhandler('e', dump_evtchn_info, "dump evtchn info");
+ register_keyhandler('e', &dump_evtchn_info_keyhandler);
return 0;
}
__initcall(dump_evtchn_info_key_init);