From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756611Ab1KRLe2 (ORCPT ); Fri, 18 Nov 2011 06:34:28 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:57143 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756426Ab1KRLe0 (ORCPT ); Fri, 18 Nov 2011 06:34:26 -0500 From: Srikar Dronamraju 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 Date: Fri, 18 Nov 2011 16:37:53 +0530 Message-Id: <20111118110753.10512.37918.sendpatchset@srdronam.in.ibm.com> In-Reply-To: <20111118110631.10512.73274.sendpatchset@srdronam.in.ibm.com> References: <20111118110631.10512.73274.sendpatchset@srdronam.in.ibm.com> Subject: [PATCH v7 3.2-rc2 7/30] uprobes: uprobes arch info x-cbid: 11111801-6102-0000-0000-000000322951 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 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;