From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D64BC433E0 for ; Thu, 2 Jul 2020 11:25:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1650520675 for ; Thu, 2 Jul 2020 11:25:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dPIPl6+C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1650520675 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n4ifmMCuArsXRSW0nDCbReGTwKTsL+uRg43q4VrxTzo=; b=dPIPl6+CSWIxEJm6BN5nTaZ9z 9F+mNxzNAcVQfBPKxGfV0yFWKJXkz6/0o62rfg7S/Of5QYzV6Nxj2lafTe6dODxFrP1pg7dHhqMKM 5vD1812NCFK7/Ocvo9f9k+6q0npvAZPuAiTcUvd7FNeJIE/FF9NtGQGu/ukww7iGfieFaWPdPmfDw 0eqkRvGQ7txaDsfL6a9RqVMevfGY+ukyQI3UdMn9pnHIMs+8rc1rEYlfbh9iOPChdgRdaqiuRMuA8 +JqUaSw8e53Aih1sjk5x/JqHFd0/K1JyzIYi48d1JHgCw1Uy3/J7xvqxO6SibhKcEFD3Gp2Q2pLn3 BH5Cx7muA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqxKK-0002rU-IW; Thu, 02 Jul 2020 11:24:24 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqxKF-0002pX-Fk for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 11:24:20 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3DF4C1FB; Thu, 2 Jul 2020 04:24:17 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 27E7C3F71E; Thu, 2 Jul 2020 04:24:16 -0700 (PDT) From: Catalin Marinas To: Will Deacon , Saravana Kannan Subject: Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting Date: Thu, 2 Jul 2020 12:24:10 +0100 Message-Id: <159368896834.26148.7850220822704601386.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200623011803.91232-1-saravanak@google.com> References: <20200623011803.91232-1-saravanak@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_072419_638122_A1801DBE X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 22 Jun 2020 18:18:02 -0700, Saravana Kannan wrote: > When loading a module, module_frob_arch_sections() tries to figure out > the number of PLTs that'll be needed to handle all the RELAs. While > doing this, it tries to dedupe PLT allocations for multiple > R_AARCH64_CALL26 relocations to the same symbol. It does the same for > R_AARCH64_JUMP26 relocations. > > To make checks for duplicates easier/faster, it sorts the relocation > list by type, symbol and addend. That way, to check for a duplicate > relocation, it just needs to compare with the previous entry. > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64/module: Optimize module load time by optimizing PLT counting https://git.kernel.org/arm64/c/d4e0340919fb -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel