Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1936615ybg; Thu, 30 Jul 2020 06:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwco/LnYGk9Fn0wDTno35wApz5RYMKAOcTbRPxdoGOcKXZ5a4Co6jNxQgGPAqZ471ttVD2A X-Received: by 2002:a17:906:1104:: with SMTP id h4mr2611246eja.456.1596116174922; Thu, 30 Jul 2020 06:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596116174; cv=none; d=google.com; s=arc-20160816; b=QczXBaWB+bzn3/anM9oxo8XKkR7dP7axq6oqsHPvg+BtB/6fcMejWBBTwdHNzXS1rT iluybb52KylpyHmiM1y1Lj3mtXJp8ZYMkMaAo8tzs1W3zwGmk0vR4nbS/VtzVBWq48Jh ymsEiviWWrXxEr6VknKgQ3seRlQt/R3u7P1fTgqOOKQddOFCaVWPrWWTVwgt4IS0Hf01 nIM9Yo9yU7AH82+WQifUcARse3RvNXgV23XO8mJ0pSgOXYbsnsw6jNagdlhuxXd1MzAm mw82IhCMAXZ2eb/Qy8V8k/SRk0KWQHIqdEVDXyP3P5VrWmhZJdhzdOEihlo+5D0P5X/0 um1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AGA2ockqtuV8jLCR10gJ+dJi/iY4EZc6RqaG3EAXAhw=; b=HWC34gRtdM2u45nH0KA6kbzd4DqrzujZytjorAsmV4KraunV5DXBsz6e/JEJ9Ar5vP fwFBQZWhQ2uxaAwh76e1xi/v0u8vlnMnE14KmEw3vRsfM/YhQdOKgEibyrZ8IgR3/Y7q fwKxxBznWu/xL3S6/tDRfy0HqRPmeBaPT/j6OiJ7/gKKp9RYK00a9fsq5MSJJyUlWedr kQC2RwdWDFKk0dia5zT+xX2ah07ZfZUIoWwxEzlJEH5fpyEYWgOh2p0TebFDOauoclWY qDH9IdYfRJqv/VXs8d0TGWPTlWjHR1SdYk74BV7EnCXNKBE7wXPVQR2YfLpt9DDSBlu5 V72Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=cBWmwJHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr2si2460860ejb.170.2020.07.30.06.35.52; Thu, 30 Jul 2020 06:36:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=cBWmwJHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728852AbgG3Ndr (ORCPT + 99 others); Thu, 30 Jul 2020 09:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726873AbgG3Ndr (ORCPT ); Thu, 30 Jul 2020 09:33:47 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41684C061794 for ; Thu, 30 Jul 2020 06:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AGA2ockqtuV8jLCR10gJ+dJi/iY4EZc6RqaG3EAXAhw=; b=cBWmwJHyCGVegRMAisPHlPwKue HRkNawp8li5bgYBzo7yhGXZz+UsmhK3emnS5K2ErkEZgC+hkAjonYpSqxXHvX41vSIrZ8+9gglOaA HszEBK+/c2Z8IRzuRcJVknA/QubK6coJRMpLHcJOgr2+F1J/oTDn7MOsuzEInf04uU8id/GmMzRYF rKFJX9bbMRYd0b7wJJjZTX/qydxX06fA44lUhPrPJORyLO1/knniSZ2aab2iqOnvwHslJMFZMF5ZI MO44HmTtk+KWwydQLvOtFWcYO+r6xgL8JAYvwx9rI60XGT76UmSxbLRBpBOOZyr94lWYN4jfAe74L uD5gfQdA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k18gq-0008D1-4B; Thu, 30 Jul 2020 13:33:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B913A304D58; Thu, 30 Jul 2020 15:33:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9DF51203DB3A4; Thu, 30 Jul 2020 15:33:43 +0200 (CEST) Date: Thu, 30 Jul 2020 15:33:43 +0200 From: peterz@infradead.org To: Julien Thierry Cc: linux-kernel@vger.kernel.org, jpoimboe@redhat.com, mhelsley@vmware.com, mbenes@suse.cz Subject: Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure Message-ID: <20200730133343.GN2655@hirez.programming.kicks-ass.net> References: <20200730094143.27494-1-jthierry@redhat.com> <20200730094143.27494-5-jthierry@redhat.com> <20200730100304.GI2655@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 01:40:48PM +0100, Julien Thierry wrote: > > > On 7/30/20 11:03 AM, peterz@infradead.org wrote: > > On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: > > > One orc_entry is associated with each instruction in the object file, > > > but having the orc_entry contained by the instruction structure forces > > > architectures not implementing the orc subcommands to provide a dummy > > > definition of the orc_entry. > I guess I forgot about the usecase of running objtool on vmlinux... Right, and LTO builds will even do ORC at that level. > On a kernel build for x86_64 defconfig, the difference in time seems to be > withing the noise. Good. > But I agree the proposed code is not ideal and on the other we've tried > avoiding #ifdef in the code. Ideally I'd have an empty orc_entry definition > when SUBCMD_ORC is not implemented. > > Would you have a suggested approach to do that? How ugly is having that: struct orc_entry { }; ?