ia64/xen-unstable

changeset 3860:ea5144e1109e

bitkeeper revision 1.1205.1.3 (4215ee82GVkS6-XQcYeidECo27K1Qw)

Added a keybinding for dumping the debugtrace_printf's
author maf46@burn.cl.cam.ac.uk
date Fri Feb 18 13:32:50 2005 +0000 (2005-02-18)
parents 5b63436f25fe
children 7d995f85672d
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Thu Feb 17 23:25:18 2005 +0000
     1.2 +++ b/xen/common/keyhandler.c	Fri Feb 18 13:32:50 2005 +0000
     1.3 @@ -155,6 +155,13 @@ void do_debug_key(unsigned char key, str
     1.4                               bit. */
     1.5  }
     1.6  
     1.7 +#ifndef NDEBUG
     1.8 +void debugtrace_key(unsigned char key)
     1.9 +{
    1.10 +    debugtrace_dump();
    1.11 +}
    1.12 +#endif
    1.13 +
    1.14  void initialize_keytable(void)
    1.15  {
    1.16      open_softirq(KEYPRESS_SOFTIRQ, keypress_softirq);
    1.17 @@ -176,7 +183,9 @@ void initialize_keytable(void)
    1.18  
    1.19  #ifndef NDEBUG
    1.20      register_keyhandler(
    1.21 -        'o', audit_domains_key,  "audit domains >0 EXPERIMENTAL"); 
    1.22 +        'o', audit_domains_key,  "audit domains >0 EXPERIMENTAL");
    1.23 +    register_keyhandler(
    1.24 +        'T', debugtrace_key, "dump debugtrace");
    1.25  #endif
    1.26  
    1.27  #ifdef PERF_COUNTERS