not be safe to have an inline
breakpoint. This is true of some of the kgdb I/O drivers which share
code with kgdb and rest of the kernel users.
Signed-off-by: Jason Wessel
---
include/linux/kgdb.h |1 +
kernel/debug/debug_core.c | 26 ++
2 files changed, 27
ption() is
called with correct parameters when catching an oops, because kdb
needs to know if the entry was an oops, single step, or breakpoint
exception.
CC: Benjamin Herrenschmidt
CC: Paul Mackerras
Signed-off-by: Jason Wessel
---
arch/powerpc/kernel/kgdb.c |7 +--
arch/powerpc/kern
It is highly desirable to trap into kdb on panic, and in order
to do so the notifier must be called before smp_send_stop(),
else the debug_core will not be able to correctly trap
all the CPUs.
CC: Ingo Molnar
CC: Andrew Morton
Signed-off-by: Jason Wessel
---
include/linux/kdb.h |1
The sci_poll_get_char() needs to return immediately if there is no
input from the chip to process, and must return a value of
NO_POLL_CHAR.
This allows kgdboc to process multiple polled devices while kgdb is
active.
CC: Paul Mundt
Signed-off-by: Jason Wessel
---
drivers/serial/sh-sci.c |6
been changed to make use of this.
CC: linux-ser...@vger.kernel.org
Signed-off-by: Jason Wessel
---
drivers/serial/8250.c |4 ++--
drivers/serial/amba-pl011.c |6 +++---
include/linux/kdb.h |1 +
include/linux/kgdb.h|3 +++
include/linux
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.
CC: "David S. Miller"
Signed-off-by: Jason Wessel
---
arch/sparc/kernel/kgdb_32.c |6 ++
arch/sparc/kernel/kgdb_64.c |6 ++
2 files c
This allows kdb to debug a crash with in the kms code with a
single level recursive re-entry.
Signed-off-by: Jason Wessel
---
kernel/debug/debug_core.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index
: Jason Wessel
---
drivers/char/keyboard.c | 30 +-
drivers/input/input.c | 15 +++
drivers/serial/kgdboc.c |9 +
include/linux/input.h | 10 ++
4 files changed, 59 insertions(+), 5 deletions(-)
diff --git a/drivers/char
Add in a low level hook to catch calls to die() in the debugger.
After the debugger is done, the standard system rules will be in play
for the original exception.
The kdb debugger wants a chance to catch these sorts of exceptions for
analysis.
CC: Russell King
Signed-off-by: Jason Wessel
ent for ks->ex_vector.
Signed-off-by: Jason Wessel
---
arch/x86/kernel/kgdb.c| 29 -
include/linux/kgdb.h | 14 --
kernel/debug/debug_core.c |8
3 files changed, 0 insertions(+), 51 deletions(-)
diff --git a/arch/x86/kernel/kgdb
debug_core to any other
debugger connections.
CC: Ingo Molnar
Signed-off-by: Jason Wessel
---
kernel/debug/Makefile |2 +-
kernel/debug/debug_core.c | 990 ++---
kernel/debug/debug_core.h | 49 +++
kernel/debug/gdbstub.c| 939
architecture specific kgdb.c. Update documentation and prototypes as
well.
Signed-off-by: Sonic Zhang
Signed-off-by: Jason Wessel
---
include/linux/kgdb.h | 42 --
kernel/debug/gdbstub.c |6 +++---
2 files changed, 43 insertions(+), 5 deletions
acer, so a special
case was added to show_stack() for when kdb is active because you
generally desire to generally look at the back trace of the original
exception.
CC: Ralf Baechle
Signed-off-by: Jason Wessel
---
arch/mips/include/asm/kgdb.h |2 ++
arch/mips/kernel/kgdb.c
Airlie
CC: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/serial/kgdboc.c | 59 -
drivers/video/console/fbcon.c |8 +
2 files changed, 60 insertions(+), 7 deletions(-)
diff --git a/drivers/serial/kgdboc.c b/drivers/serial/kgdboc.c
index
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.
CC: Mike Frysinger
Signed-off-by: Jason Wessel
---
arch/blackfin/kernel/kgdb.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/blackfin
Certain calls from the kdb shell will call out to printk(), and any of
these calls should get vectored back to the kdb_printf() so that the
kdb pager and processing can be used, as well as to properly channel
I/O to the polled I/O devices.
CC: Randy Dunlap
CC: Andrew Morton
Signed-off-by: Jason
From: Randy Dunlap
linux-next-20081022//include/linux/kgdb.h:308): duplicate section name
'Description'
and fix typos in that file's kernel-doc comments.
Signed-off-by: Randy Dunlap
Signed-off-by: Andrew Morton
Signed-off-by: Jason Wessel
---
include/linux/kgdb.h | 1
From: Jesse Barnes
---
drivers/gpu/drm/drm_fb_helper.c | 83 ++
drivers/gpu/drm/i915/intel_display.c | 93 ++
include/drm/drm_crtc_helper.h|2 +
include/drm/drm_fb_helper.h |4 ++
4 files changed, 182 i
.
CC: David Airlie
CC: Jesse Barnes
CC: Clemens Ladisch
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/drm_fb_helper.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 80aab3c..b390fd8 100644
--- a
: David Airlie
Acked-by: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/i915/intel_display.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index e134a81..71816db 100644
--- a
The kgdb test suite mimics the behavior of gdb. For the sh
architecture the pc must be decremented by 2 for software breakpoint.
CC: Paul Mundt
Signed-off-by: Jason Wessel
---
drivers/misc/kgdbts.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/misc
Here are some hacks to work around mutex crashes in the drm / i915
code.
For now, this is the only way to make the kms / kgdb path safe on an
SMP system.
CC: Jesse Barnes
CC: David Airlie
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/drm_fb_helper.c | 18 ++
drivers
David Miller wrote:
> From: Jason Wessel
> Date: Wed, 23 Dec 2009 15:19:28 -0600
>
>
>> +static void sunzilog_put_poll_char(struct uart_port *port,
>> +unsigned char ch)
>> +{
>> +struct uart_sunzilog_port *up
David Miller wrote:
> From: Jason Wessel
> Date: Wed, 23 Dec 2009 15:19:20 -0600
>
>
>> +void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
>> +{
>> + regs->pc = regs->npc;
>> + regs->npc = ip;
>> +}
>> +
>&
Greg KH wrote:
> On Wed, Dec 23, 2009 at 03:19:13PM -0600, Jason Wessel wrote:
>
>> Back in May 2009 an initial kdb prototype was posted to lkml as an RFC
>> to see if there was sufficient interest to merge kdb and kgdb together.
>>
>> There was enough interest t
Peter Zijlstra wrote:
> On Wed, 2009-12-23 at 15:19 -0600, Jason Wessel wrote:
>
>> diff --git a/kernel/module.c b/kernel/module.c
>> index e96b8ed..25f6a7b 100644
>> --- a/kernel/module.c
>> +++ b/kernel/module.c
>> @@ -79,6 +80,10 @@ EXPORT_TRACEPOINT_
123
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join n
Peter Zijlstra wrote:
> On Wed, 2009-12-23 at 15:19 -0600, Jason Wessel wrote:
>> +kdb_prio(char *name, struct rt_prio_array *array, kdb_printf_t xxx_printf,
[..]
>> +kdb_runqueue(unsigned long cpu, kdb_printf_t xxx_printf)
[..]
>
> So what is this code supposed to do? It
Peter Zijlstra wrote:
> On Mon, 2009-12-28 at 10:33 -0600, Jason Wessel wrote:
>> The reason we need the attached patch is to be able to call
>> curr_task() for kdb to perform some basic per cpu task analysis while
>> the system is stopped.
>
> Right, so this set_cur
Andi Kleen wrote:
> Jason Wessel writes:
>
> I remember going with kaos through all the code
> outside kdb/ in his own patch and for nearly all hooks
> outside we found some way to eliminate them.
>
> I think a lot of this is here too.
If this has been solved before so
Tony Luck wrote:
> The kgdb bits break ia64 (and any other architecture without an
> too):
>
>
Certainly this was not intended. It is properly fixed now in and
folded into a number of the kgdb patches so everything will properly
bisect. It is updated in kgdb-next.
Thanks,
Jason.
-
Randy Dunlap wrote:
> On Thu, 31 Dec 2009 11:23:14 +1100 Stephen Rothwell wrote:
>
>
>> Hi all,
>>
>> This one has also not had the build testing *between* merges, but has had
>> all the normal build testing at the end.There may be more unbisectable
>> points in the tree then usual.
>>
>> Change
jidong xiao wrote:
> Hi,
>
> I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my
> kernel, I found no kgdb code had been executed, as I understand, the
> kernel should stay at some point and wait for response from another
> machine, but the truth is it fully booted up just like kgd
jidong xiao wrote:
> On Tue, Jan 5, 2010 at 8:39 PM, Jason Wessel
> wrote:
>
>> jidong xiao wrote:
>>
>>> Hi,
>>>
>>> I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my
>>> kernel, I found no kgdb code had been
Derek Atkins wrote:
> Jason,
>
> Jason Wessel writes:
>
>
>> Unless you patch in the kgdb8250 driver, you cannot use it. If you
>> build the kernel documentation you would get a directory called
>> Documentation/DocBook/kgdb. In there you would find informat
Sonic Zhang wrote:
> I have to recall my last wrong patch.
>
> In blackfin, kgdb is running in delayed exception IRQ5 other than in
> exception IRQ3 directly. Register reti other than retx in pt_regs is
> the kgdb return address. So, don't put PC in gdb_regs into retx.
>
> Sonic Zhang
>
> Index: a
Mike Frysinger wrote:
> On Wed, Jan 6, 2010 at 14:43, Jason Wessel wrote:
>
>> I pulled in this patch, and made the changes the Mike talked about with
>> respect to cleaning up the arch specific kgdb.c for blackfin. See the
>> attached patch.
>>
>> Your patc
Mike Frysinger wrote:
> On Wed, Jan 6, 2010 at 15:34, Jason Wessel wrote:
>
>> Mike Frysinger wrote:
>>
>>> also, i see you added "notrace" to the Blackfin probe_kernel_write ...
>>> was that intentional ? if so, this should probab
27; of git://git.kernel.org/.../airlied/drm-2.6
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git
for_linus
Jason Wessel (2):
maccess,probe_kernel: Allow arch specific override
probe_kernel_(read|write)
blackfin,kgdb,pr
From: Sonic Zhang
In blackfin, kgdb is running in delayed exception IRQ5 other than in
exception IRQ3 directly. Register reti other than retx in pt_regs is
the kgdb return address. So, don't put PC in gdb_regs into retx.
CC: Mike Frysinger
Signed-off-by: Sonic Zhang
Signed-off-by:
the same thing after resolving
the probe_kernel_read() and probe_kernel_write(). This also
eliminated the need for most of the #include's.
CC: Sonic Zhang
Signed-off-by: Jason Wessel
Signed-off-by: Mike Frysinger
---
arch/blackfin/kernel/kgdb.c |
Some archs such as blackfin, would like to have an arch specific
probe_kernel_read() and probe_kernel_write() implementation which can
fall back to the generic implementation if no special operations are
needed.
CC: Thomas Gleixner
CC: Ingo Molnar
Signed-off-by: Jason Wessel
Signed-off-by
From: Randy Dunlap
linux-next-20081022//include/linux/kgdb.h:308): duplicate section name
'Description'
and fix typos in that file's kernel-doc comments.
Signed-off-by: Randy Dunlap
Signed-off-by: Andrew Morton
Signed-off-by: Jason Wessel
---
include/linux/kgdb.h |7 +
Derek Atkins wrote:
> Jason,
>
> Jason Wessel writes:
>
>
>> Long story short:
>> * The functionality you asked about is not in the mainline
>> * There are patches in the kgdb dev tree for this
>>
>
> * nods *
>
> I'm happy to
for the available hw breakpoint slots.
Signed-off-by: Jason Wessel
---
arch/x86/kernel/hw_breakpoint.c |5 +-
arch/x86/kernel/kgdb.c | 191 +++
kernel/kgdb.c |3 +
3 files changed, 139 insertions(+), 60 deletions(-)
diff
http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=shortlog;h=kdb_prototype11
or grab a static version of the patches here:
http://kernel.org/pub/linux/kernel/people/jwessel/branches/kdb_prototype11.tar.bz2
---
Jason Wessel (38):
softlockup: add sched_clock_tick
debug_core to any other
debugger connections.
CC: Ingo Molnar
Signed-off-by: Jason Wessel
---
kernel/debug/Makefile |2 +-
kernel/debug/debug_core.c | 992 ++---
kernel/debug/debug_core.h | 49 +++
kernel/debug/gdbstub.c| 939
resuming the system in
order to inspect arch specific cpu information.
Signed-off-by: Jason Wessel
---
kernel/debug/debug_core.c | 158 +---
kernel/debug/debug_core.h |7 ++
2 files changed, 82 insertions(+), 83 deletions(-)
diff --git a/kernel/debug
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.
CC: Mike Frysinger
Signed-off-by: Jason Wessel
Acked-by: Sonic Zhang
---
arch/blackfin/kernel/kgdb.c |5 +
1 files changed, 5 insertions(+), 0 deletions
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.
Signed-off-by: Jason Wessel
Acked-by: David S. Miller
---
arch/sparc/kernel/kgdb_32.c |6 ++
arch/sparc/kernel/kgdb_64.c |6 ++
2 files changed, 12
ial queries that kdb is
responsible for detecting are the "?" and "qSupported" packets.
CC: Ingo Molnar
Signed-off-by: Jason Wessel
---
arch/arm/kernel/kgdb.c |5 ++
arch/mips/kernel/kgdb.c|5 ++
arch/powerpc/kernel/kgdb.c |5 ++
arch/x86/kernel/kgdb.c |
distinguish between a single step trap and
a breakpoint trap generically.
Signed-off-by: Jason Wessel
Acked-by: Paul Mundt
---
arch/sh/kernel/kgdb.c | 14 +-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c
index 3e532d0
This patch contains the hooks and instrumentation into kernel which
live outside the kernel/debug directory, which the kdb core
will call to run commands like lsmod, dmesg, bt etc...
CC: m...@sgi.com
CC: linux-a...@vger.kernel.org
Signed-off-by: Jason Wessel
---
arch/arm/include/asm
estrictions on what you can and
cannot access at this point. Doing something like trying to set
breakpoints with the monitor command is going to cause nothing but
problems. Perhaps in the future only the commands that are actually
known to work with the gdb monitor command will be available.
S
Allow kgdboc to work on sparc hardware with the Zilog serial chips.
Signed-off-by: Jason Wessel
Acked-by: David S. Miller
---
drivers/serial/sunzilog.c | 50 +
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/drivers/serial
been changed to make use of this.
CC: linux-ser...@vger.kernel.org
Signed-off-by: Jason Wessel
---
drivers/serial/8250.c |4 ++--
drivers/serial/amba-pl011.c |6 +++---
include/linux/kdb.h |1 +
include/linux/serial_core.h |1 +
kernel/debug/debug_core.c
also configure kgdboc as a kernel module or at run time with
the sysfs where you can activate and deactivate kgdb.
Turn it on:
echo kbd,ttyS0 > /sys/module/kgdboc/parameters/kgdboc
Turn it off:
echo "" > /sys/module/kgdboc/parameters/kgdboc
CC: Dmitry Torokhov
Sign
d, but for those who need it, it is added as a kernel .config
option called KGDB_LOW_LEVEL_TRAP.
CC: Ingo Molnar
Signed-off-by: Jason Wessel
---
arch/x86/include/asm/kgdb.h |3 +++
arch/x86/kernel/kgdb.c | 22 +-
arch/x86/kernel/traps.c |6 ++
include/li
The sci_poll_get_char() needs to return immediately if there is no
input from the chip to process, and must return a value of
NO_POLL_CHAR.
This allows kgdboc to process multiple polled devices while kgdb is
active.
Signed-off-by: Jason Wessel
Acked-by: Paul Mundt
---
drivers/serial/sh-sci.c
ption() is
called with correct parameters when catching an oops, because kdb
needs to know if the entry was an oops, single step, or breakpoint
exception.
CC: Benjamin Herrenschmidt
CC: Paul Mackerras
Signed-off-by: Jason Wessel
---
arch/powerpc/kernel/kgdb.c |7 +--
arch/powerpc/kern
Update the kgdb docs to reflect the new directory structure and API.
Merge in the kdb shell information.
Signed-off-by: Jason Wessel
---
Documentation/DocBook/kgdb.tmpl | 638 ++-
Documentation/kernel-parameters.txt |7 +-
include/linux/kgdb.h
not be safe to have an inline
breakpoint. This is true of some of the kgdb I/O drivers which share
code with kgdb and rest of the kernel users.
Signed-off-by: Jason Wessel
---
include/linux/kgdb.h |1 +
kernel/debug/debug_core.c | 26 ++
2 files changed, 27
If kdb is open on a serial port that is not actually a console make
sure to call the poll routines to emit and receive characters.
Signed-off-by: Jason Wessel
---
drivers/serial/kgdboc.c | 14 ++
include/linux/kgdb.h |3 +++
kernel/debug/kdb/kdb_io.c | 16
ent for ks->ex_vector.
Signed-off-by: Jason Wessel
---
arch/x86/kernel/kgdb.c| 29 -
include/linux/kgdb.h | 14 --
kernel/debug/debug_core.c |8
3 files changed, 0 insertions(+), 51 deletions(-)
diff --git a/arch/x86/kernel/kgdb
acer, so a special
case was added to show_stack() for when kdb is active because you
generally desire to generally look at the back trace of the original
exception.
CC: Ralf Baechle
Signed-off-by: Jason Wessel
---
arch/mips/include/asm/kgdb.h |2 ++
arch/mips/kernel/kgdb.c
: Jason Wessel
---
drivers/char/keyboard.c | 30 +-
drivers/input/input.c | 15 +++
drivers/serial/kgdboc.c |9 +
include/linux/input.h | 10 ++
4 files changed, 59 insertions(+), 5 deletions(-)
diff --git a/drivers/char
Certain calls from the kdb shell will call out to printk(), and any of
these calls should get vectored back to the kdb_printf() so that the
kdb pager and processing can be used, as well as to properly channel
I/O to the polled I/O devices.
CC: Randy Dunlap
CC: Andrew Morton
Signed-off-by: Jason
Add in a low level hook to catch calls to die() in the debugger.
After the debugger is done, the standard system rules will be in play
for the original exception.
The kdb debugger wants a chance to catch these sorts of exceptions for
analysis.
CC: Russell King
Signed-off-by: Jason Wessel
This allows kdb to debug a crash with in the kms code with a
single level recursive re-entry.
Signed-off-by: Jason Wessel
---
kernel/debug/debug_core.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index
Update the maintained files sections.
Signed-off-by: Jason Wessel
---
MAINTAINERS |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index c8f47bf..88f4741 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3174,15 +3174,17 @@ S: Maintained
Hooks for the kgdb core for registration of the drm layer to provide a
call backs so as to perform kernel mode switching, for use with kdb.
CC: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/serial/kgdboc.c | 15 +++
include/linux/kgdb.h | 10 ++
kernel
It is highly desirable to trap into kdb on panic, and in order
to do so the notifier must be called before smp_send_stop(),
else the debug_core will not be able to correctly trap
all the CPUs.
CC: Ingo Molnar
CC: Andrew Morton
Signed-off-by: Jason Wessel
---
include/linux/kdb.h |1
From: Jesse Barnes
---
drivers/gpu/drm/drm_fb_helper.c | 79
drivers/gpu/drm/i915/intel_display.c | 93 ++
include/drm/drm_crtc_helper.h|2 +
include/drm/drm_fb_helper.h |4 ++
4 files changed, 178 ins
From: Jesse Barnes
This allows callers to store the ops structure in a parent device structure.
Signed-off-by: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/serial/kgdboc.c |4 ++--
include/linux/kgdb.h| 17 ++---
2 files changed, 16 insertions(+), 5 deletions
were added to allow kms code to declare debugger safe
mutexes which can be used so long as the debugger restores the state
before resuming.
CC: David Airlie
CC: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/serial/kgdboc.c | 26
drivers/video/console/fbcon.c
: David Airlie
Acked-by: Jesse Barnes
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/i915/intel_display.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index d54df76..11beb0f 100644
--- a
Here are some hacks to work around mutex crashes in the drm / i915
code.
For now, this is the only way to make the kms / kgdb path safe on an
SMP system.
CC: Jesse Barnes
CC: David Airlie
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/drm_fb_helper.c | 12 ++--
drivers/gpu
.
CC: David Airlie
CC: Jesse Barnes
CC: Clemens Ladisch
Signed-off-by: Jason Wessel
---
drivers/gpu/drm/drm_fb_helper.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index f65aa4d..1097a47 100644
--- a
The kgdb test suite mimics the behavior of gdb. For the sh
architecture the pc must be decremented by 2 for software breakpoint.
Signed-off-by: Jason Wessel
Acked-by: Paul Mundt
---
drivers/misc/kgdbts.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers
Update the kgdb docs to include information about kernel mode setting support.
Signed-off-by: Jason Wessel
---
Documentation/DocBook/kgdb.tmpl | 82 +++
Documentation/kernel-parameters.txt |9 +++-
2 files changed, 79 insertions(+), 12 deletions
Add in a helper function to allow the kdb shell to dump the ftrace
buffer.
CC: Steven Rostedt
Signed-off-by: Jason Wessel
---
Documentation/DocBook/kgdb.tmpl |3 +-
kernel/trace/Makefile |3 +
kernel/trace/trace.c| 48 +++-
kernel/trace/trace.h
function uses the GTOD tick value to create
a window to normalize the "now" values. So if "now" values is too big
for sched_clock_data, it will be ignored.
The fix is to invoke sched_clock_tick() to update "cpu sched clock" in
order to recover from this state. This i
The kernel debugger should turn off kernel tracing any time the
debugger is active and restore it on resume.
CC: Steven Rostedt
Signed-off-by: Jason Wessel
---
kernel/debug/debug_core.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/kernel/debug/debug_core.c b
Russell King - ARM Linux wrote:
> On Thu, Jan 14, 2010 at 08:59:16AM -0600, Jason Wessel wrote:
>
>> Add in a low level hook to catch calls to die() in the debugger.
>>
>> After the debugger is done, the standard system rules will be in play
>> for the original exc
Russell King - ARM Linux wrote:
>
> I have a similar patch which implements the hook properly - but
> with one caveat. It needs a review to ensure that its safe to return
> from die(). Until that's established, this patch can not be merged.
>
I completed the analysis on your patch and yes, it
David Daney wrote:
> [...]
>
>> +#include "../../../kernel/debug/kdb/kdb_private.h"
>>
>>
>
> There must be a better way of referring to this include file. Perhaps
> it should be moved to a more central place that is already in the
> include path so we can refer to it with #include <..
Steven Rostedt wrote:
> On Thu, 2010-01-14 at 08:59 -0600, Jason Wessel wrote:
>
>> Add in a helper function to allow the kdb shell to dump the ftrace
>> buffer.
>>
>>
>
> Acked-by: Steven Rostedt
>
>
> If this is the final version, I could que
Steven Rostedt wrote:
> On Thu, 2010-01-14 at 08:59 -0600, Jason Wessel wrote:
>
>> The kernel debugger should turn off kernel tracing any time the
>> debugger is active and restore it on resume.
>>
>> CC: Steven Rostedt
>> Signed-off-by: Jason Wessel
Russell King - ARM Linux wrote:
> On Thu, Jan 14, 2010 at 02:29:54PM -0600, Jason Wessel wrote:
>
>> Russell King - ARM Linux wrote:
>>
>>> I have a similar patch which implements the hook properly - but
>>> with one caveat. It needs a review to ensure
I don't think this patch works quite right. See below.
Mike Frysinger wrote:
> From: Sonic Zhang
>
> Rather than call probe_kernel_write() one byte at a time, process the
> whole buffer locally and pass the entire result in one go. This way,
> arches that need to do special handling based on th
Russell King - ARM Linux wrote:
> On Mon, Jan 18, 2010 at 08:30:04AM -0600, Jason Wessel wrote:
>
>> That being said, you patch works for the purpose of catching the
>> exception and returning with or without the addition of an earlier
>> return before bust_spinlock
24bc7347da73a9ed3383056c3d0f28c0e361621e:
Linus Torvalds (1):
Merge git://git.kernel.org/.../wim/linux-2.6-watchdog
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git
for_ingo
Jason Wessel (1):
softlockup: add sched_clock_tick() to avoid
done by introducing the
function touch_softlockup_watchdog_sync(). This allows kgdb to request
that the sched clock is updated when the watchdog thread runs the
first time after a resume from kgdb.
[yong.zha...@gmail.com: Use per cpu instead of an array]
Signed-off-by: Jason Wessel
Signed-off-by: Do
for_igno
Thanks,
Jason.
---
The following changes since commit 92dcffb916d309aa01778bf8963a6932e4014d07:
Linus Torvalds (1):
Linux 2.6.33-rc5
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git
for_ingo
Jason Wessel (4
execution is paused.
CC: Frederic Weisbecker
CC: Ingo Molnar
CC: K.Prasad
CC: Peter Zijlstra
CC: Alan Stern
Signed-off-by: Jason Wessel
---
arch/x86/kernel/kgdb.c | 12 +---
include/linux/perf_event.h |1 +
kernel/hw_breakpoint.c | 16
3 files changed, 26
for the available hw breakpoint slots.
CC: Frederic Weisbecker
CC: Ingo Molnar
CC: K.Prasad
CC: Peter Zijlstra
CC: Alan Stern
Signed-off-by: Jason Wessel
---
arch/x86/kernel/hw_breakpoint.c |5 +-
arch/x86/kernel/kgdb.c | 206 ---
kernel
done by introducing the
function touch_softlockup_watchdog_sync(). This allows kgdb to request
that the sched clock is updated when the watchdog thread runs the
first time after a resume from kgdb.
[yong.zha...@gmail.com: Use per cpu instead of an array]
Signed-off-by: Jason Wessel
Signed-off-by: Do
sufficiently rare vs
having the kernel debugger hang the kernel
CC: Thomas Gleixner
CC: Martin Schwidefsky
CC: John Stultz
CC: Andrew Morton
CC: Magnus Damm
Signed-off-by: Jason Wessel
---
kernel/time/clocksource.c |7 ++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git
Jason Wessel wrote:
> The kernel debugger cannot take any locks at the risk of deadlocking
[clip]
The previous version of this patch was wrong for 2 reasons:
1) The reserve_slot_bp() can operate on a single cpu or all the cpus.
The previous version of this patch only worked properly
the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git
for_ingo
Jason Wessel (3):
softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume
x86,hw_breakpoint,kgdb: kgdb to use hw_breakpoint API
perf,hw_breakpoint,kgdb
501 - 600 of 870 matches
Mail list logo