Puneet Lakhina
2010-May-12 23:22 UTC
[Xen-devel] Discrepancy between size of vcpu_guest_context_t in the core dump file and using sizeof
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@lists.xensource.com http://lists.xensource.com/xen-devel