[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Discrepancy between size of vcpu_guest_context_t in the core dump file and using sizeof


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Puneet Lakhina <puneet.lakhina@xxxxxxxxx>
  • Date: Wed, 12 May 2010 16:22:18 -0700
  • Delivery-date: Wed, 12 May 2010 16:23:10 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uFABEvQSCp2MeoUeSl+HmD+VsgjHyBdgE11iUV8e87U+JbLjTtyaCqIwOmZCLrCicJ 3GWiHqL7e0yn2PQ2jVIzs4yZu1M/4GiLgfXFZJ8Oo0EykSYIL/9H9YT9jHlqhMky+q7N srMAEmXzNProF3ni7rGiLlOVD5tmtwpHcmqE8=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I have a core dump of a xen domain( obtained using $ xm dump-core -C
coredump.dump ) which was run with one vcpu. The size of the
.xen_prstatus is af0 == 2800 bytes. This is inconsistent when I do a
sizeof on the vcpu_guest_context_t data structure which gives me 5168.
I cant understand why this is. Any ideas?

Im running Xen 3.4.0 on x86_64.

$ readelf -W -S coredump.dump
There are 7 section headers, starting at offset 0x40:

Section Headers:
  [Nr] Name              Type            Address          Off    Size
 ES Flg Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000
000000 00      0   0  0
  [ 1] .shstrtab         STRTAB          0000000000000000 10103000
000048 00      0   0  0
  [ 2] .note.Xen         NOTE            0000000000000000 000200
000564 00      0   0  0
*  [ 3] .xen_prstatus     PROGBITS        0000000000000000 000764
000af0 af0      0   0  4
  [ 4] .xen_shared_info  PROGBITS        0000000000000000 001254
001000 1000      0   0  8
  [ 5] .xen_pages        PROGBITS        0000000000000000 003000
10000000 1000      0   0 4096
  [ 6] .xen_p2m          PROGBITS        0000000000000000 10003000
100000 10      0   0  4
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)


-- 
Regards,
Puneet

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.