From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1USlF3-00009Q-Jj for kexec@lists.infradead.org; Thu, 18 Apr 2013 09:34:58 +0000 Received: from m3.gw.fujitsu.co.jp (unknown [10.0.50.73]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 665E43EE0C1 for ; Thu, 18 Apr 2013 18:34:53 +0900 (JST) Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 4CD7445DEBB for ; Thu, 18 Apr 2013 18:34:53 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (s3.gw.fujitsu.co.jp [10.0.50.93]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 347F245DEB6 for ; Thu, 18 Apr 2013 18:34:53 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 25ABE1DB8040 for ; Thu, 18 Apr 2013 18:34:53 +0900 (JST) Received: from ml14.s.css.fujitsu.com (ml14.s.css.fujitsu.com [10.240.81.134]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id CE7C91DB803C for ; Thu, 18 Apr 2013 18:34:52 +0900 (JST) From: HATAYAMA Daisuke Subject: [PATCH v4 3/8] vmcore, procfs: introduce MEM_TYPE_CURRENT_KERNEL flag to distinguish objects copied in 2nd kernel Date: Sat, 13 Apr 2013 09:21:22 +0900 Message-ID: <20130413002122.18245.5882.stgit@localhost6.localdomain6> In-Reply-To: <20130413002000.18245.21513.stgit@localhost6.localdomain6> References: <20130413002000.18245.21513.stgit@localhost6.localdomain6> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: vgoyal@redhat.com, ebiederm@xmission.com, akpm@linux-foundation.org Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, lisa.mitchell@hp.com, zhangyanfei@cn.fujitsu.com, kumagai-atsushi@mxc.nes.nec.co.jp, cpw@sgi.com, jingbai.ma@hp.com Later patch will copy ELF note segments in buffer on the 2nd kernel. To handle memory on the 1st kernel (old memory) and memory on the 2nd kernel in vmcore_list uniformly, introduce MEM_TYPE_CURRENT_KERNEL flag. If this flag is set, the vmcore object corresponds to buffer on the 2nd kernel. Signed-off-by: HATAYAMA Daisuke --- include/linux/proc_fs.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 94dfb2a..fefead4 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -97,11 +97,17 @@ struct kcore_list { int type; }; +#define MEM_TYPE_CURRENT_KERNEL 0x1 + struct vmcore { struct list_head list; - unsigned long long paddr; + union { + unsigned long long paddr; + char *buf; + }; unsigned long long size; loff_t offset; + unsigned int flag; }; #ifdef CONFIG_PROC_FS _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec