From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756521Ab1ITMQP (ORCPT ); Tue, 20 Sep 2011 08:16:15 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:45896 "EHLO e28smtp02.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756209Ab1ITMQL (ORCPT ); Tue, 20 Sep 2011 08:16:11 -0400 From: Srikar Dronamraju To: Peter Zijlstra , Ingo Molnar Cc: Steven Rostedt , Srikar Dronamraju , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Andi Kleen , Hugh Dickins , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Oleg Nesterov , LKML , Jim Keniston , Roland McGrath , Ananth N Mavinakayanahalli , Andrew Morton Date: Tue, 20 Sep 2011 17:31:17 +0530 Message-Id: <20110920120117.25326.21378.sendpatchset@srdronam.in.ibm.com> In-Reply-To: <20110920115938.25326.93059.sendpatchset@srdronam.in.ibm.com> References: <20110920115938.25326.93059.sendpatchset@srdronam.in.ibm.com> Subject: [PATCH v5 3.1.0-rc4-tip 7/26] Uprobes: uprobes arch info Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce per uprobe arch info structure. Used to store arch specific details. For example: details to handle Rip relative instructions in X86_64. Signed-off-by: Jim Keniston Signed-off-by: Srikar Dronamraju --- include/linux/uprobes.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index 074c4e9..2548b94 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h @@ -29,7 +29,7 @@ struct vm_area_struct; #ifdef CONFIG_ARCH_SUPPORTS_UPROBES #include #else - +struct uprobe_arch_info {}; #define MAX_UINSN_BYTES 4 #endif @@ -60,6 +60,7 @@ struct uprobe { atomic_t ref; struct rw_semaphore consumer_rwsem; struct list_head pending_list; + struct uprobe_arch_info arch_info; struct uprobe_consumer *consumers; struct inode *inode; /* Also hold a ref to inode */ loff_t offset;