[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-24 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-24 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-20 Thread Jason Wessel
On 09/19/2012 06:41 PM, Anton Vorontsov wrote: > This special driver makes it possible to temporary use NMI debugger port > as a normal console by issuing 'nmi_console' command (assuming that the > port is attached to KGDB). > The kgdb regression compiler also does checkpatch, so the "check

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-20 Thread Jason Wessel
On 09/19/2012 06:41 PM, Anton Vorontsov wrote: This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). The kgdb regression compiler also does checkpatch, so the check patch

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Anton Vorontsov
On Wed, Sep 19, 2012 at 06:52:32AM -0500, Jason Wessel wrote: [...] > > --- a/drivers/tty/serial/kgdboc.c > > +++ b/drivers/tty/serial/kgdboc.c > > @@ -145,6 +145,8 @@ __setup("kgdboc=", kgdboc_option_setup); > > > > static void cleanup_kgdboc(void) > > { > > + if

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Jason Wessel
On 09/13/2012 10:03 AM, Anton Vorontsov wrote: > This special driver makes it possible to temporary use NMI debugger port > as a normal console by issuing 'nmi_console' command (assuming that the > port is attached to KGDB). > > Unlike KDB's disable_nmi command, with this driver you are always

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Jason Wessel
On 09/13/2012 10:03 AM, Anton Vorontsov wrote: This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Anton Vorontsov
On Wed, Sep 19, 2012 at 06:52:32AM -0500, Jason Wessel wrote: [...] --- a/drivers/tty/serial/kgdboc.c +++ b/drivers/tty/serial/kgdboc.c @@ -145,6 +145,8 @@ __setup(kgdboc=, kgdboc_option_setup); static void cleanup_kgdboc(void) { + if (kgdb_unregister_nmi_console()) +

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-15 Thread Francesco Lavra
On 09/13/2012 05:03 PM, Anton Vorontsov wrote: ... > +static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct > *tty) > +{ > + struct kgdb_nmi_tty_priv *priv; > + int ret; > + > + priv = kzalloc(sizeof(*priv), GFP_KERNEL); > + if (!priv) > + return

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-15 Thread Francesco Lavra
On 09/13/2012 05:03 PM, Anton Vorontsov wrote: ... +static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) +{ + struct kgdb_nmi_tty_priv *priv; + int ret; + + priv = kzalloc(sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; +

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-13 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-13 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence