Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317486

Re: [PATCH] Add hard/soft lockup debugger entry points

From Chris Metcalf <cmetcalf@ezchip.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Add hard/soft lockup debugger entry points
Date 2016-01-26 03:50 +0100
Message-ID <qV1RE-4VC-15@gated-at.bofh.it> (permalink)
References <qV1HY-4RV-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 1/25/2016 9:36 PM, Jeff Merkey wrote:
> This patch adds an export which can be set by system debuggers to direct
> the hard lockup and soft lockup detector to trigger an INT3 exception
> and enter a debugger if one is active.  It is assumed that if someone
> sets this variable, then an int3 handler of some sort will be actively
> loaded or registered via the notify die handler chain.
>
> This addition is extremely useful for debugging hard and soft lockups
> real time and quickly from a console debugger.
>
> Signed-off-by: Jeff Merkey<linux.mdb@gmail.com>
> ---
>   kernel/watchdog.c | 9 +++++++++
>   1 file changed, 9 insertions(+)

Introducing Intel-specific assembly into generic code won't work. You would
need to add a framework to allow platforms to specify a debugging instruction
or maybe leverage some existing framework like arch_kgdb_breakpoint.

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Add hard/soft lockup debugger entry points Jeff Merkey <linux.mdb@gmail.com> - 2016-01-26 03:40 +0100
  Re: [PATCH] Add hard/soft lockup debugger entry points Chris Metcalf <cmetcalf@ezchip.com> - 2016-01-26 03:50 +0100
    Re: [PATCH] Add hard/soft lockup debugger entry points Jeff Merkey <linux.mdb@gmail.com> - 2016-01-26 04:00 +0100
  Re: [PATCH] Add hard/soft lockup debugger entry points kbuild test robot <lkp@intel.com> - 2016-01-26 05:10 +0100
  Re: [PATCH] Add hard/soft lockup debugger entry points kbuild test robot <lkp@intel.com> - 2016-01-26 05:30 +0100
    Re: [PATCH] Add hard/soft lockup debugger entry points Jeff Merkey <linux.mdb@gmail.com> - 2016-01-26 06:00 +0100
  Re: [PATCH] Add hard/soft lockup debugger entry points kbuild test robot <lkp@intel.com> - 2016-01-26 05:30 +0100

csiph-web