Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3691099ybh; Tue, 17 Mar 2020 04:55:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs1uUDy64q9yk4ejqrMoFIFiPSzWSKF+vZJg0VI0kyiIfdDD1pcbBkPmm5L4vSGmITakYBL X-Received: by 2002:aca:4986:: with SMTP id w128mr3031393oia.46.1584446140537; Tue, 17 Mar 2020 04:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584446140; cv=none; d=google.com; s=arc-20160816; b=nTdvOFo8yB+ILDafiBBfIStX4NP9fRlJNNC/gupUMj6wnsMIGFcrQO4e3hWKy4p8qo ZhEyIm4gRYcYQAz0rekXrWo7frh3yH4AfJHVpiRFDknLsZxvGAGa2+Beza0UN5sxj4xo yFGObsZE0QjJxOaZEcdhoZ0fHNFYkhzQddihwclV2YGtnLjFTQncCRwZEbHQo/81S+Q8 IzMm7Pn9KvxKkZOKyR3VijxxYQUzmCnDzYWZzr8apdM8CWFvy5cyUb4I5TJHkkxajK8Q 2X1p9UnL9AwSGObXWk7Dg+iWlbJLAC0SgIlV5s4g5TBUofl2XfLq2v4SWOVy3hDDEjwM JGfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=7lLUY6Imk1RBk2MVSNxFh/G7PtvOSQb6WI162pLo98o=; b=NIzDzBl/22qqI3MCMNdurO8LfbAfFtUpgXy0cYsvon9JvmXYB6d6JQC/+kUiLXxr4V H/OhzJmrYdTZAOa265AlW7B5SsQwy1UQYYrAPqFH0Px4g+AwvlACvvxP/XCwCoe4znH2 wCG7nMOo16TIMQvlZwF5YkBItZF4jxImlcxDYMUZAVOe0HKWeTxmZLvM0L6pIr/3wZIW W3BuuzuFxXLDmZ8jCtekMThnjme8hlX+nakm+MEREC5UPekPU9QOPnAsah/t7zHwOsTn 50Yki9cE4aehg52tINZIiSwUwI7uJyNHmRGmpo3xtTt1XyTAfBqawjeOTlIbxe859RH4 kVJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c23si1544724oic.53.2020.03.17.04.55.28; Tue, 17 Mar 2020 04:55:40 -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; 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 S1726669AbgCQLzD (ORCPT + 99 others); Tue, 17 Mar 2020 07:55:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:33474 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgCQLzD (ORCPT ); Tue, 17 Mar 2020 07:55:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1877FAC5B; Tue, 17 Mar 2020 11:55:02 +0000 (UTC) Date: Tue, 17 Mar 2020 12:55:01 +0100 (CET) From: Miroslav Benes To: Peter Zijlstra 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() In-Reply-To: <20200312135041.699859794@infradead.org> Message-ID: References: <20200312134107.700205216@infradead.org> <20200312135041.699859794@infradead.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > --- 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? Miroslav