From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Merkey Subject: [PATCH 06/31] Add debugger entry points for METAG Date: Thu, 28 Jan 2016 12:46:27 -0700 Message-ID: <1454010387-28627-1-git-send-email-jeffmerkey@gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=JnTwXCYMAYcyng3EGBHafLPSoNQ0t5k/NmJ8Z82tD5o=; b=Tq7MAQ6QrPY5LfOmvkhMrXHmHPccpNGEIGDcaahL6dx8Kd58AWuS7ybHIczuw62uXg FEo+2gRfTH6rftiKonA7P6oVaKaaKftLZNG8fWSYAihYVn9JqBh6duWQnS97BentqEk8 D5OOSg9fH5HbxOFlFxV/wcQEClKPTPObb75KDFvFAo0h5KpMXwwo1aLSVJAIZAX+h235 mHoBuJNzebIH8jeZ9cTZ5g1oELlFqfaJ38rpqtqcgppsWXItbpJGYw/Me1YKl+Hx/rYt DysFgwyquvnEWPuw+zM+b8J+p2aUMNN3cXnIv0HDlhRQsSdlpKaacnr6yjNr7XYCDy5l /BlA== Sender: linux-kernel-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: james.hogan@imgtec.com, linux.mdb@gmail.com, linux-metag@vger.kernel.org This patch series adds an export which can be set by system debuggers to direct the hard lockup and soft lockup detector to trigger a breakpoint exception and enter a debugger if one is active. It is assumed that if someone sets this variable, then an breakpoint 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: Jeffrey Merkey --- arch/metag/include/asm/kdebug.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 arch/metag/include/asm/kdebug.h diff --git a/arch/metag/include/asm/kdebug.h b/arch/metag/include/asm/kdebug.h new file mode 100644 index 0000000..5d09de1 --- /dev/null +++ b/arch/metag/include/asm/kdebug.h @@ -0,0 +1,4 @@ + +static inline void arch_breakpoint(void) +{ +} -- 1.8.3.1