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

Re: [PATCH 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 7 Mar 2023 13:45:21 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FPDVsrmBaSXOKsPeybsEpDBovDutUOcdx11CwB3cyjo=; b=FWBxhw9eXEHb78B2XQsjKPPgklTDBfSeOY270N8yqQaGZcZ3pbnf0/gc7JLAiekqCVu1IUHKly2qVl0o2p+Cub6BXY17NJznYgIWe65dAx4YAZzyBeGD7fOFsK6dqHgkRPi61W4bUehro36zvTbc84d2h7R8YXT9AtKaVREaqgnOd3Hn7pS1HeMR7mXRCTD/5SV78knMj85LI5OBBasMIdvMIBmak1HFyjqlCZ1s7ROnfXnthA7YLcrYkDRZtzIzId7eZb4bQ6LpGsHonADpnsLHLjUTgQMrgc+EafiaEj+LFbbklJ8xfs4NWh2iy8yADGpksS9CeJIa2EMrnjwQeg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EIxLxBxNzldMXaDB6xQtMY5vD1qdtwK7IVBk+K2dzBtZ0MZgeg30Gx2lZWqV+cq97qQBUsl2sy6HST+Bj2sLsM63DJJCsRkZU28zbGH9kyFWxAnKTIlFtVxSZmQ0xK1c9zwgPmUYeN1YjO62GkFw79/gauijb/mFFagbVsuhsyGY91bEcK68JmtP1lfclkBJ1Y8fV6hecRrq4Vy6MYDBSrk1yiiU31q+2QeXAQMJYZUbS+rYbnG+KcQC+GdUOlatlP8vPsPdc2BO1e1A8gpORQuBsGjnfuBVMBGtMWft82M6hOUI+EZ4e6ElPwi5xtToavi+1F4bwzwlFm8BnqMIWQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 07 Mar 2023 12:45:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 07.03.2023 13:04, Juergen Gross wrote:
> On 07.03.23 12:42, Jan Beulich wrote:
>> On 07.03.2023 12:33, Juergen Gross wrote:
>>> On 07.03.23 11:31, Jan Beulich wrote:
>>>> On 07.03.2023 07:32, Juergen Gross wrote:
>>>>> Using a rather oldish gcc (7.5) it was verified that code generation
>>>>> doesn't really differ between CONFIG_DEBUG_INFO on or off without
>>>>> CONFIG_DEBUG being set (only observed differences were slightly
>>>>> different symbol addresses, verified via "objdump -d"). The old gcc
>>>>> version selection was based on the assumption, that newer gcc won't
>>>>> regress in this regard.
>>>>
>>>> This is good to know, but I'm still curious about the mentioned
>>>> differences in symbol addresses: If code generation didn't change, what
>>>> caused addresses to differ? Is that merely because individual functions
>>>> or objects are emitted in different order by the compiler? (If so I'd
>>>> be inclined to infer that comparing generated code must have been
>>>> quite a bit of effort, as first of all you would have had to undo that
>>>> re-ordering.)
>>>
>>> I did a simple diff of the two disassembly outputs and got only small
>>> differences for %rip relative addresses (the differences were in the
>>> range of +/- 32 bytes).
>>
>> That's still odd and hence imo wants understanding. Do you still have
>> both binaries around?
> 
> I have just regenerated the one with debug-info. It is a 4.17 build.
> 
> I just found the at least one reason: xen_config_data has a different size
> (obviously!) and this finally leads to an offset of 32 bytes for symbols
> at higher addresses (with some items only differing by 8 bytes due to
> alignment).

Thanks for checking - this kind of a delta is of course to be expected.

Jan



 


Rackspace

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