WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [PATCH][RFC] dump-core: PFN-GMFN table and ELF formatify (was Re: [X

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH][RFC] dump-core: PFN-GMFN table and ELF formatify (was Re: [Xen-devel] xc_get_pfn_list() creates broken core files)
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 17 Jan 2007 14:54:51 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxxxxxxxx>, crash-utility@xxxxxxxxxx
Delivery-date: Tue, 16 Jan 2007 21:54:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070117035928.GA11306@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20061123205257.GA4041@xxxxxxxxxxxxxxxxxxxx> <C18BE067.4C38%keir@xxxxxxxxxxxxx> <20061123234839.GA9243@xxxxxxxxxxxxxxxxxxxx> <20070115091647.GA20978%yamahata@xxxxxxxxxxxxx> <20070117035928.GA11306@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Wed, Jan 17, 2007 at 03:59:28AM +0000, John Levon wrote:
> On Mon, Jan 15, 2007 at 06:16:47PM +0900, Isaku Yamahata wrote:
> 
> > I added PFN-GMFN table to xen dump format and made it ELF format
> > based on John's patch. This patch isn't complete yet.
> 
> You use LINUX for the OSABI, which doesn't seem right.

Do you have any other correct value?
e.g. ELFOSABI_NONE (= ELFOSABI_SYSV = 0)
Or should it be compile-time configurable by defining something
like ELF_OSABI?


> I'm not clear why these are all program headers instead of sections.
> Given the slightly odd nature of this file, I would expect it to have no
> phdrs, or at most one phdr for the page array (and plus a section
> header). Same goes for notes - those would seem more useful as a
> section per type of thing (e.g. a .XEN_vcpu_context section, etc.). And
> that way you get the "what is this section's size" and "how big are the
> entries" for free.

I followed the way creating process core file and linux kernel dump file.
Process core file and linux kernel dump file use only program headers.
They use note section pointed by a program header to store register
infomations and etc.

Creating sections requires string table to store section name.
It makes dump-core code more compilated.
If using sections is appropreate for dump-core, such compilcations
might be acceptable.
However I don't see why section is more appropreate than program
header because I don't expect to have so many kind of notes.
At least for dump-core.

-- 
yamahata

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel