Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761014AbZCSVJ6 (ORCPT ); Thu, 19 Mar 2009 17:09:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760596AbZCSVJ3 (ORCPT ); Thu, 19 Mar 2009 17:09:29 -0400 Received: from mx2.redhat.com ([66.187.237.31]:56792 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760652AbZCSVJ2 (ORCPT ); Thu, 19 Mar 2009 17:09:28 -0400 Message-ID: <49C2B4B8.1020507@redhat.com> Date: Thu, 19 Mar 2009 17:10:16 -0400 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: "Luck, Tony" , Ingo Molnar CC: LKML , systemtap-ml , Ananth N Mavinakayanahalli , Steven Rostedt , ia64 Subject: [RFC][PATCH -tip 3/9] ia64: add kernel_trap_sp() X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 40 Add kernel_trap_sp() on ia64, based on systemtap's runtime/regs.h. Signed-off-by: Masami Hiramatsu Cc: Tony Luck --- arch/ia64/include/asm/ptrace.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h index 14055c6..3a7dfcb 100644 --- a/arch/ia64/include/asm/ptrace.h +++ b/arch/ia64/include/asm/ptrace.h @@ -246,6 +246,12 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs) return regs->ar_bspstore; } +static inline unsigned long kernel_trap_sp(struct pt_regs *regs) +{ + /* interrupted task's memory stack pointer is r12 */ + return regs->r12; +} + #define regs_return_value(regs) ((regs)->r8) /* Conserve space in histogram by encoding slot bits in address -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/