Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3818674ybh; Tue, 17 Mar 2020 07:10:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsn7GrgG3iudR49iqplmB/V9KDTuXEZENuRW6CyeofpzwZUUJZ2Ivh7Ky+e40kUyV0ZVUOw X-Received: by 2002:aca:56c7:: with SMTP id k190mr3679385oib.127.1584454253524; Tue, 17 Mar 2020 07:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584454253; cv=none; d=google.com; s=arc-20160816; b=Ur7kuq9w7g0LwAvUFUf+jkfL+wnqgGhFyI/TDlALMUZ/iPLC8HroDWzNxgjYYtdQRT QcggC5Ppf6XEGGWYV8R9a6WfzHWP6/AzS/j24cK5lD3pPv2DSDjhHHGxAQttdH+Hj5GB P0p1L/RONmipe7S9mfo2Fml3+VON6bIhAMDF6BVZlxvtCXzF5V3DCummQt8wU48NhhYz W74zOgJGr2IzWAubs6jrSj752qaWumlmLFo8GoJWjZnm6CEBSvWNhY7LRJ7fy75INpWQ qczfER2+U4lhohbvlyNXXbZuYuEkcpr2BfU4pECOEceqrOPai/Q5m+m03Q0Ej6zr46mL uGJg== 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=Bqv+/prboe8KB6HPWMsnaQmGMROTZ6mPlw8hYvqD134=; b=PfojXxJ+nnj/zZdXcjw98+ejoLIR5h7DkdugCA5tgkT/eilf2WgjWF2XOVhivrLZ9z r+b7LDAs/Zw0zoK7x8rje1TfAN8z6oLqHyF67qiQtGGI+ufy5PV46CCl3ZVCOzHLkNnK KITbWDvDWovLyUrWOTdu+DXd2UKeA+KANcDrpDXBEXStVFHmRUTSgJqpmzn/Krg7qBWN h4375uc5oFsDS0h9+AUPgIKl9rQL/BwxeTBg6uLfviaxwFgA9S6OPVVKYEzL+kw2hr1W 1AryUa6rY48Mg7bU91yj3akjtmCoL22ET6IFgmERgnkHwST/r8NPkoRXVnMn6JW6bAY1 W2cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jOKzqxyy; 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 k92si1841764otk.261.2020.03.17.07.10.38; Tue, 17 Mar 2020 07:10:53 -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=jOKzqxyy; 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 S1726683AbgCQOKK (ORCPT + 99 others); Tue, 17 Mar 2020 10:10:10 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46588 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgCQOKJ (ORCPT ); Tue, 17 Mar 2020 10:10:09 -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=Bqv+/prboe8KB6HPWMsnaQmGMROTZ6mPlw8hYvqD134=; b=jOKzqxyyi78LtaoMb+wGjDpSyF /BMB/eRM49OuzK4n0TvU3RXARowYvEABzpOs1Uih4P3m7C1HnEWL8rHKE3ZNM02T1A1mM6ORoZyJl LdyT7P3h4z1dw7xw1/9AlDixwsLD3Bhpmm5TzE0bxSKb4RT6q0MxYS6hOh549vWZbaq+2FedUF/XD Z6vnyNJNtseD9XCT5Nwb7m32ppp4qR2HzdFdWMwzUwxVZK5PLUmHj+UPIJU9eUiuU771EYSvDnPuU r0JQMGzkpx2X00wWGL27mQ/gqJxQo7lAmoHJr+xqnAS9+XwXgMRQdEWOb1joqFaki0qlpr+qNvYCR 5jwZGHOw==; 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 1jECv0-00083z-TC; Tue, 17 Mar 2020 14:10:07 +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 2FA57300606; Tue, 17 Mar 2020 15:10:02 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1C20123D7668A; Tue, 17 Mar 2020 15:10:02 +0100 (CET) Date: Tue, 17 Mar 2020 15:10:02 +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 08/16] Optimize find_section_by_name() Message-ID: <20200317141002.GB20730@hirez.programming.kicks-ass.net> References: <20200312134107.700205216@infradead.org> <20200312135041.875820323@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 01:22:23PM +0100, Miroslav Benes wrote: > > @@ -193,6 +198,7 @@ static int read_sections(struct elf *elf > > sec->len = sec->sh.sh_size; > > > > hash_add(elf->section_hash, &sec->hash, sec->idx); > > + hash_add(elf->section_name_hash, &sec->name_hash, str_hash(sec->name)); > > } > > Don't you need to the same in elf_create_section()? Yes, already fixed. Noticed it yesterday when I was addressing Josh's comments.