From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755030Ab3CEHGP (ORCPT ); Tue, 5 Mar 2013 02:06:15 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:44590 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754668Ab3CEHGK (ORCPT ); Tue, 5 Mar 2013 02:06:10 -0500 From: HATAYAMA Daisuke Subject: [PATCH v2 13/20] kexec, elf: introduce NT_VMCORE_DEBUGINFO note type To: vgoyal@redhat.com, ebiederm@xmission.com, cpw@sgi.com, kumagai-atsushi@mxc.nes.nec.co.jp, lisa.mitchell@hp.com, heiko.carstens@de.ibm.com, akpm@linux-foundation.org Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org Date: Sat, 02 Mar 2013 17:37:02 +0900 Message-ID: <20130302083701.31252.22736.stgit@localhost6.localdomain6> In-Reply-To: <20130302083447.31252.93914.stgit@localhost6.localdomain6> References: <20130302083447.31252.93914.stgit@localhost6.localdomain6> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch introduces NT_VMCORE_DEBUGINFO to a unique note type in VMCOREINFO name, which has had no name so far. The name means that it's a kind of note type in vmcoreinfo that contains system kernel's debug information. Signed-off-by: HATAYAMA Daisuke --- include/uapi/linux/elf.h | 4 ++++ kernel/kexec.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index 8072d35..b869904 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -398,6 +398,10 @@ typedef struct elf64_shdr { #define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */ #define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */ +/* + * Notes exported from /proc/vmcore, belonging to "VMCOREINFO" name. + */ +#define NT_VMCORE_DEBUGINFO 0 /* vmcore system kernel's debuginfo */ /* Note header in a PT_NOTE section */ typedef struct elf32_note { diff --git a/kernel/kexec.c b/kernel/kexec.c index 195de6d..6597b82 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -1438,8 +1438,8 @@ static void update_vmcoreinfo_note(void) if (!vmcoreinfo_size) return; - buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, 0, vmcoreinfo_data, - vmcoreinfo_size); + buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, NT_VMCORE_DEBUGINFO, + vmcoreinfo_data, vmcoreinfo_size); final_note(buf); } 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 1UClwy-0006wz-1T for kexec@lists.infradead.org; Tue, 05 Mar 2013 07:06:12 +0000 Received: from m4.gw.fujitsu.co.jp (unknown [10.0.50.74]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 8095C3EE0C2 for ; Tue, 5 Mar 2013 16:06:10 +0900 (JST) Received: from smail (m4 [127.0.0.1]) by outgoing.m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 66F8545DE56 for ; Tue, 5 Mar 2013 16:06:10 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 3ECAB45DE50 for ; Tue, 5 Mar 2013 16:06:10 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id E41E2E08004 for ; Tue, 5 Mar 2013 16:06:09 +0900 (JST) Received: from m1000.s.css.fujitsu.com (m1000.s.css.fujitsu.com [10.240.81.136]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 8E1241DB803F for ; Tue, 5 Mar 2013 16:06:09 +0900 (JST) From: HATAYAMA Daisuke Subject: [PATCH v2 13/20] kexec, elf: introduce NT_VMCORE_DEBUGINFO note type Date: Sat, 02 Mar 2013 17:37:02 +0900 Message-ID: <20130302083701.31252.22736.stgit@localhost6.localdomain6> In-Reply-To: <20130302083447.31252.93914.stgit@localhost6.localdomain6> References: <20130302083447.31252.93914.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=infradead.org@lists.infradead.org To: vgoyal@redhat.com, ebiederm@xmission.com, cpw@sgi.com, kumagai-atsushi@mxc.nes.nec.co.jp, lisa.mitchell@hp.com, heiko.carstens@de.ibm.com, akpm@linux-foundation.org Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org This patch introduces NT_VMCORE_DEBUGINFO to a unique note type in VMCOREINFO name, which has had no name so far. The name means that it's a kind of note type in vmcoreinfo that contains system kernel's debug information. Signed-off-by: HATAYAMA Daisuke --- include/uapi/linux/elf.h | 4 ++++ kernel/kexec.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index 8072d35..b869904 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -398,6 +398,10 @@ typedef struct elf64_shdr { #define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */ #define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */ +/* + * Notes exported from /proc/vmcore, belonging to "VMCOREINFO" name. + */ +#define NT_VMCORE_DEBUGINFO 0 /* vmcore system kernel's debuginfo */ /* Note header in a PT_NOTE section */ typedef struct elf32_note { diff --git a/kernel/kexec.c b/kernel/kexec.c index 195de6d..6597b82 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -1438,8 +1438,8 @@ static void update_vmcoreinfo_note(void) if (!vmcoreinfo_size) return; - buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, 0, vmcoreinfo_data, - vmcoreinfo_size); + buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, NT_VMCORE_DEBUGINFO, + vmcoreinfo_data, vmcoreinfo_size); final_note(buf); } _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec