From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by kanga.kvack.org (Postfix) with ESMTP id 13BFE9000BD for ; Tue, 20 Sep 2011 08:14:56 -0400 (EDT) Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp05.in.ibm.com (8.14.4/8.13.1) with ESMTP id p8KCEp0n010174 for ; Tue, 20 Sep 2011 17:44:51 +0530 Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8KCEpcO2220150 for ; Tue, 20 Sep 2011 17:44:51 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8KCEmCu019120 for ; Tue, 20 Sep 2011 22:14:51 +1000 From: Srikar Dronamraju 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: owner-linux-mm@kvack.org List-ID: 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 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; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org