Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A20DC433DF for ; Fri, 21 Aug 2020 16:03:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 22F39208DB for ; Fri, 21 Aug 2020 16:03:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22F39208DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k99W2-0005hG-Ky; Fri, 21 Aug 2020 16:03:42 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k99W1-0005hB-KU for xen-devel@lists.xenproject.org; Fri, 21 Aug 2020 16:03:41 +0000 X-Inumbo-ID: e509de17-ee7a-439d-b8c6-a12cf2e71bfc Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e509de17-ee7a-439d-b8c6-a12cf2e71bfc; Fri, 21 Aug 2020 16:03:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B506BB6E9; Fri, 21 Aug 2020 16:04:07 +0000 (UTC) Subject: Re: [PATCH] Add additional symbols to xen-syms.map To: Michael Kurth , xen-devel@lists.xenproject.org Cc: Michael Kurth , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Andrew Cooper , Wei Liu , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , wipawel@xen.org, wipawel@amazon.de References: <20200821151045.92022-1-mku@amazon.de> From: Jan Beulich Message-ID: <08ef4d53-7b39-29cd-c62f-3d7074af7c66@suse.com> Date: Fri, 21 Aug 2020 18:03:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200821151045.92022-1-mku@amazon.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 21.08.2020 17:10, Michael Kurth wrote: > From: Michael Kurth > > Add "all_symbols" to all /tools/symbols calls so that > xen-syms.map lists all symbols and not only .text section > symbols. This change enhances debugging and livepatch > capabilities. With ifdef CONFIG_LIVEPATCH all_symbols = --all-symbols ifdef CONFIG_FAST_SYMBOL_LOOKUP all_symbols = --all-symbols --sort-by-name endif else all_symbols = endif I agree this helps the CONFIG_LIVEPATCH case, but I doubt you really want --sort-by-name here, and to also cover debugging (as you say) imo you want --all-symbols, not $(all_symbols) in the places that you change. Further, seeing that the places you change are exactly all the ones using --xensyms, I wonder whether the tool shouldn't imply --all-symbols from --xensyms. Jan