From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 143C16B0070 for ; Thu, 10 Nov 2011 14:04:10 -0500 (EST) Received: from /spool/local by e28smtp09.in.ibm.com with XMail ESMTP for from ; Fri, 11 Nov 2011 00:33:55 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAAJ3pKQ4079848 for ; Fri, 11 Nov 2011 00:33:51 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAAJ3oZH013475 for ; Fri, 11 Nov 2011 06:03:51 +1100 From: Srikar Dronamraju Date: Fri, 11 Nov 2011 00:08:55 +0530 Message-Id: <20111110183855.11361.59504.sendpatchset@srdronam.in.ibm.com> In-Reply-To: <20111110183725.11361.57827.sendpatchset@srdronam.in.ibm.com> References: <20111110183725.11361.57827.sendpatchset@srdronam.in.ibm.com> Subject: [PATCH v6 3.2-rc1 7/28] Uprobes: uprobes arch info Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra , Linus Torvalds Cc: Oleg Nesterov , Andrew Morton , LKML , Linux-mm , Ingo Molnar , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Wilson 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 dd308fa..44f28dc 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