Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3817017ybh; Tue, 17 Mar 2020 07:09:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs87FowU1jt/P6AoTbETweXo5GmX3xEwlU2P5X/Je/KjfSIHsYUyu7DdiiGWEtbPfGnkOQZ X-Received: by 2002:a05:6830:1e96:: with SMTP id n22mr3709968otr.189.1584454157167; Tue, 17 Mar 2020 07:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584454157; cv=none; d=google.com; s=arc-20160816; b=YPwk15RnBfOFH6uQkms9RqI1eqdsx9a6oHVRxpGB2OqgluBxrXxO8hAT+ORI0gLYLj g7hLLtHCGMzAFw3pwQLzEe3tKWMF4UMENTXkgetbC8Tqu0RHpwdUadwjzk5dWfPg+Vlm HOTrwlC3ZRaKatOz0yS028kriQLNO/lovKbjw5FdNaGNG96ICDrDq4xwemsPQQKAdj2J NOiD0sL8rXGbA4tv7lRGbsvk4c8ZkOTHCOe+TWlbylRdwvsqBMccsN11SEKd1tISQbDj bKLMstoaFSDgcY9EVGfSnULnFCiP+5/8ScEK/6UWHKwcxy31YZJBvbPJF4KJ/I/4zb+S nGOw== 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=RIkqeCGkzTQAKwqtRyvdstXXI+gDsJqkU9w2ugRYyXY=; b=Rowiv/U3lpASE4mNpwlwEQs02+MDB4Bnr+Mk3tsX6Ml6Bg0vJaTaxX2U7bTLiNdgaE hBJe9ZN8PT0tSmZkvVpomjbh6KVLPZt4BMeOBdUi+H+vjLAqIHZaRAN3fugmljCNQuwj gW6vliSuB29u4S8aeNWtZ1EINcv6yHdW9WIuvr/zASgNS1v1GlNem9hBjmySzJCPZgEx AzuoIdNVsJNMCAtkkhonjaZE+lPQHhuDXSWkftaNcXFpl5Ls5tpSyxbLkBr2ch0Y4nd2 /p/org+JFQBbtEBv6Joq1556v4eCfYyVTlDYiKOSLTsYvLSLRBRd0WNNjmAJQmdqu6vu zMKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ia1N6OmI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si1770598oif.218.2020.03.17.07.08.58; Tue, 17 Mar 2020 07:09:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ia1N6OmI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbgCQOIh (ORCPT + 99 others); Tue, 17 Mar 2020 10:08:37 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46328 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgCQOIh (ORCPT ); Tue, 17 Mar 2020 10:08:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=RIkqeCGkzTQAKwqtRyvdstXXI+gDsJqkU9w2ugRYyXY=; b=Ia1N6OmI6/cmy3MLUChU86ZOCf nfT8xtI+cBykSKQmnH75LpqW7zMmEYkd7xGEKGq+EclUdicyNR1RldCPVw7qWT/GD5HyL4ckoSm1/ 5fDYYMP08g1EdocrXOQdbm3CuRmPtrydYz/6xWPtysE6ISzGzPsYWV5L5moSduAlusjlp1K+yTdOy 2TVWka9HcU6cRbY+eGint+w4MuIHj8j+Se4n2nl8kSi7BvCdMyBRf3G+jK/43UIMa4bpHd0KCpI9W UNEMOTODT54GAKRjzFD7aTBHpxJvhQBGzbV3rAFoNEsnzDjc+A0ll0d8ZJU3QKy69EKJK9jeMRSJ2 58yJtqzg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jECtU-00081V-BG; Tue, 17 Mar 2020 14:08:32 +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 50DE2300606; Tue, 17 Mar 2020 15:08:29 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1C51D20B14B19; Tue, 17 Mar 2020 15:08:29 +0100 (CET) Date: Tue, 17 Mar 2020 15:08:29 +0100 From: Peter Zijlstra To: Miroslav Benes Cc: tglx@linutronix.de, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [RFC][PATCH 05/16] objtool: Optimize find_symbol_by_index() Message-ID: <20200317140829.GA20730@hirez.programming.kicks-ass.net> References: <20200312134107.700205216@infradead.org> <20200312135041.699859794@infradead.org> 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 Tue, Mar 17, 2020 at 12:55:01PM +0100, Miroslav Benes wrote: > > --- a/tools/objtool/elf.h > > +++ b/tools/objtool/elf.h > > @@ -27,7 +27,6 @@ struct section { > > struct list_head list; > > GElf_Shdr sh; > > struct list_head symbol_list; > > - DECLARE_HASHTABLE(symbol_hash, 8); > > struct list_head rela_list; > > DECLARE_HASHTABLE(rela_hash, 16); > > struct section *base, *rela; > > @@ -71,7 +70,7 @@ struct elf { > > int fd; > > char *name; > > struct list_head sections; > > - DECLARE_HASHTABLE(rela_hash, 16); > > + DECLARE_HASHTABLE(symbol_hash, 20); > > }; > > Not that it really matters, but what was rela_hash in struct elf for > before this? Unused afaict.