Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3717461ybh; Tue, 17 Mar 2020 05:23:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt/UBzPhsYVHVd5jzaNgaQKVyWhVUpRITxVr5T/yMgVthQxcoSeaOWS79vBZPfhrFEe8qpl X-Received: by 2002:a05:6830:1e06:: with SMTP id s6mr3573082otr.28.1584447803550; Tue, 17 Mar 2020 05:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584447803; cv=none; d=google.com; s=arc-20160816; b=agmJaifKF1mr9EVkqnW0yAzfdiGF42/xvpeR54V82aw8IigZmG3YYpSsmWf2FeD+Ax TA51oeHpse4c99qOxYvApmneC93hQM1JA3n/QvceL/BCmY4zCPyH+hzLQ2TGoc6OI9Dm 9YHHbuSekex5qdOpTRDrn1HM/Ya+8j63BxRnUnqBcIjevTKnXvUQ2klQEyyibIK0LXC7 o+D3usC8eYiU1MLvfLRk5zpLnSEw+p31j42EyEfvnZRMtSl/UEywvrZsiFltKcFRocKA +35lGKeugeeQ2vf2j+SjIEAsF/Hq6M92kRLSNCqt80M5mMe6YMO+pLwNFw0Yyo09++s6 VOHQ== 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=0Piet1ZbYwSfdal751ZpRVuxaXtq13X4CNXnnIUYYzg=; b=JX3KZ2GAhvv71J4ap4DRRXX3Zdv2WU3JlCjE0Kt0e+S6HH2J3EZHkdflhFl/KiuNFa 0QLXfhnQG1+rsVfpQHZps5HzmcDLm1QXQC63nLOmR8THbx4ojmKKegA/UUgM6ByxLW4h BzM+OLXcz9v+wGsX716KGPyNmiiluTM+rAbBUtafDOMblw4Fi09P2RCeXTUWXDLzkGv4 Dmhd7SFgGwbmpidyTR7hKqC6XL9ivEnZCGwC+t8yfJuno+tHjmpXTJPizq2WYrvtbnPO 6t4g6kXGJFoImaXbeQuXWqeoY9bGclOELAGhjrrvgtyiyerBeX57LMClGRsCHhReJ5/F nykg== 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 j15si1584556ots.187.2020.03.17.05.23.08; Tue, 17 Mar 2020 05:23:23 -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 S1726192AbgCQMWZ (ORCPT + 99 others); Tue, 17 Mar 2020 08:22:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:48968 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbgCQMWZ (ORCPT ); Tue, 17 Mar 2020 08:22:25 -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 34410B1B3; Tue, 17 Mar 2020 12:22:24 +0000 (UTC) Date: Tue, 17 Mar 2020 13:22:23 +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 08/16] Optimize find_section_by_name() In-Reply-To: <20200312135041.875820323@infradead.org> Message-ID: References: <20200312134107.700205216@infradead.org> <20200312135041.875820323@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 > @@ -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()? Miroslav