Re: [3/6] kgdb: core

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Hellwig <hch@...>
Cc: <linux-kernel@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, Jason Wessel <jason.wessel@...>
Date: Sunday, February 10, 2008 - 4:21 am

* Ingo Molnar <mingo@elte.hu> wrote:


i've read all that thread now and i think all your observations are 
addressed in the latest tree i posted. In fact, most of the 
non-syntactic observations you made i already addressed in my series 
from yesterday. Find the latest tree at:

   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb.git

with tip commit 8fbf71f7636bd26843de01b4bdf819c9a9777427. Shortlog and 
diffstat below. I backmerged all the fixlets into their original 
commits, to keep the splitup clean.

Here are my replies to your feedback:

 Date: Sat, 9 Feb 2008 12:10:26 -0500
 From: Christoph Hellwig <hch@infradead.org>
 To: jason.wessel@windriver.com
 Subject: Re: [PATCH 2/8] pid, kgdb: add pid_max prototype

addressed.

 Date: Sat, 9 Feb 2008 12:15:03 -0500
 From: Christoph Hellwig <hch@infradead.org>
 Subject: Re: [PATCH 3/8] kgdb, modules: Always allow module sect info for

addressed: this was mooted by my original posting from yesterday 
already - i removed this complication.

 Date: Sat, 9 Feb 2008 12:16:05 -0500
 From: Christoph Hellwig <hch@infradead.org>
 Subject: Re: [PATCH 4/8] kgdb: COPTIMIZE flag

addressed: this was mooted by my original posting from yesterday 
already - i removed this complication.


fixed.


addressed: this was fixed in my submission yesterday.


disagree - the best is to have it in both places - and in many places we 
do that. Anyway, this is up to maintainer discretion.


disagree. Many architectures will select shadow-info support so having 
this in asm-generic/kgdb.h is straightforward. I am actually an 
architecture who had to deal with this stuff in 32-bit (no shadow info 
support) and 64-bit (shadow info support) and this was handy and 
obvious. (But note that the patch submitted by Jason had a few 
uglinesses in this area that i fixed so please re-check the ones in my 
tree.)


yes, eventually we might want to use kgdb earlier than the per CPU areas 
are set up.


agreed, fixed.


maintainer discretion item. I prefer having such clarity in operator 
ordering.


yeah. Agreed about the ugliness and i volunteer to implement any 
sensible suggestions later on :-)


check out the full context, not just the patch. It's often done for a 
reason to make the full visual appearance of that particular code nice.


addressed: it is in my series.


selecting FRAME_POINTER is totally sensible and other debugging code 
does it too. I agree about the DEBUG_INFO and it was addressed in 
yesterday's series already.

	Ingo

------------------>
Ingo Molnar (3):
      pids: add pid_max prototype
      uaccess: add probe_kernel_write()
      x86: kgdb support

Jan Kiszka (1):
      consoles: polling support, kgdboc

Jason Wessel (2):
      kgdb: core
      kgdb: document parameters

 Documentation/kernel-parameters.txt |    5 +
 arch/x86/Kconfig                    |    4 +
 arch/x86/kernel/Makefile            |    1 +
 arch/x86/kernel/kgdb.c              |  550 ++++++++++
 drivers/char/tty_io.c               |   47 +
 drivers/serial/8250.c               |   62 ++
 drivers/serial/Kconfig              |    3 +
 drivers/serial/Makefile             |    1 +
 drivers/serial/kgdboc.c             |  164 +++
 drivers/serial/serial_core.c        |   67 ++-
 include/asm-generic/kgdb.h          |   91 ++
 include/asm-x86/kgdb.h              |   87 ++
 include/linux/kgdb.h                |  264 +++++
 include/linux/pid.h                 |    2 +
 include/linux/serial_core.h         |    4 +
 include/linux/tty_driver.h          |   12 +
 include/linux/uaccess.h             |   22 +
 kernel/Makefile                     |    1 +
 kernel/kgdb.c                       | 2019 +++++++++++++++++++++++++++++++++++
 kernel/sysctl.c                     |    2 +-
 lib/Kconfig.debug                   |    2 +
 lib/Kconfig.kgdb                    |   37 +
 22 files changed, 3445 insertions(+), 2 deletions(-)
 create mode 100644 arch/x86/kernel/kgdb.c
 create mode 100644 drivers/serial/kgdboc.c
 create mode 100644 include/asm-generic/kgdb.h
 create mode 100644 include/asm-x86/kgdb.h
 create mode 100644 include/linux/kgdb.h
 create mode 100644 kernel/kgdb.c
 create mode 100644 lib/Kconfig.kgdb

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 3:13 am)
Re: [3/6] kgdb: core, Marcin Slusarz, (Sun Feb 10, 8:46 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 12:46 pm)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 12:43 pm)
Re: [3/6] kgdb: core, Bartlomiej Zolnierkiewicz..., (Sun Feb 10, 3:20 pm)
Re: [3/6] kgdb: core, Jan Kiszka, (Sun Feb 10, 9:36 am)
Re: [3/6] kgdb: core, Jesper Juhl, (Sun Feb 10, 9:19 am)
Re: [3/6] kgdb: core, Marcin Slusarz, (Sun Feb 10, 10:00 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 3:35 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 3:43 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 3:57 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 4:02 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 4:24 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 4:57 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 5:11 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 5:27 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 5:34 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 1:02 pm)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 4:21 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 4:26 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 5:08 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 5:17 am)
Re: [3/6] kgdb: core, Christoph Hellwig, (Sun Feb 10, 5:31 am)
[patch] kgdb light, v6, Ingo Molnar, (Sun Feb 10, 1:17 pm)
Re: [patch] kgdb light, v6, Bartlomiej Zolnierkiewicz..., (Sun Feb 10, 4:55 pm)
Re: [patch] kgdb light, v6, Ingo Molnar, (Sun Feb 10, 5:09 pm)
Re: [patch] kgdb light, v6, Bartlomiej Zolnierkiewicz..., (Sun Feb 10, 6:24 pm)
Re: [patch] kgdb light, v6, Jan Kiszka, (Sun Feb 10, 5:45 pm)
Re: [patch] kgdb light, v6, Ingo Molnar, (Sun Feb 10, 6:31 pm)
Re: [patch] kgdb light, v6, Bartlomiej Zolnierkiewicz..., (Sun Feb 10, 6:14 pm)
Re: [patch] kgdb light, v6, Jan Kiszka, (Sun Feb 10, 6:32 pm)
Re: [patch] kgdb light, v6, Ingo Molnar, (Sun Feb 10, 6:40 pm)
Re: [patch] kgdb light, v6, Yinghai Lu, (Sun Feb 10, 10:35 pm)
Re: [patch] kgdb light, v6, Bartlomiej Zolnierkiewicz..., (Sun Feb 10, 3:43 pm)
Re: [patch] kgdb light, v6, Ingo Molnar, (Sun Feb 10, 5:31 pm)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 5:20 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 5:34 am)
Re: [3/6] kgdb: core, Sam Ravnborg, (Sun Feb 10, 3:31 am)
Re: [3/6] kgdb: core, Ingo Molnar, (Sun Feb 10, 3:59 am)