Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp557234ybb; Wed, 25 Mar 2020 05:20:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvF+pYLoO6IgQgTkirW2DXVfUOH2SESKqdiHfxbDCkV/XUEp2a1OkmZuCeSeAxFGz8MdQrJ X-Received: by 2002:a9d:70d0:: with SMTP id w16mr2337577otj.9.1585138839970; Wed, 25 Mar 2020 05:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585138839; cv=none; d=google.com; s=arc-20160816; b=RLKHc+x0Zk5rqiUn4zB3uWFpeRDdRUuv4BGNQaxLOfsF4BUl7el3J4M972zcyk3Cnm teQefMXHhCXeNu7uWeool2f7RFakvgVeX3w7gPVGmYpOqGi9H6uhx/U5I2IusKu9+5VE HF2jGnjikqNEDRNxVdTYaw47+4QSGpoYFpOhyKQOSzC5XBXRLWHl0UYhUxlMwsomuAbr KYGZeWOrMqp0EiYUNhxfYxTzpBkSqA+K5hEvBOBKyHTdGQsDv0IBzl+lcO/4262tImoG UKW/QW6tPhEeg8f0vKRoihqzEIkLtYERg+nNc0sNI3/f1PqkbYndIRNVHt6ZOHNkEPbf 8TaQ== 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=Ha5dJ9qun0SdIBm8vqiX9vvntu5snWtFj+EJLBnSlKU=; b=CwkV+P2B72P8qGRtwk0haaN2a3Nri0DFjFBEgOMjnUkjADdLl38igGKuolu+BCb6NU ZIS85+7JNdhS9ifVUhCcTk5Y4xlYUhkDn5APNrYzYeEoErbQwEBOS/m2N8qW2+uTHy03 W0a7FUxmN3fftljQxSmDSWWcQykKVObsRw+bEVGOdaiFH79RoKAZ2v21EXjM6gF4QYV8 jmZPENpsWuK96SBYY2D5jBPfpE7wvUwmmAOVfBT2qU74cBQDDoawIl4fbG1/DSFD1O64 M19poiV93z81wWt5/7uM/oisHur8nAQCTDj5IXTjX20hMUU8t4QNyoGnvcEe/ufXHhwI u0MA== 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 x35si3258009otb.99.2020.03.25.05.20.27; Wed, 25 Mar 2020 05:20:39 -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 S1727483AbgCYMTT (ORCPT + 99 others); Wed, 25 Mar 2020 08:19:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:55804 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727137AbgCYMTS (ORCPT ); Wed, 25 Mar 2020 08:19:18 -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 D9101AC91; Wed, 25 Mar 2020 12:19:16 +0000 (UTC) Date: Wed, 25 Mar 2020 13:19:16 +0100 (CET) From: Miroslav Benes To: Peter Zijlstra cc: tglx@linutronix.de, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, mhiramat@kernel.org, brgerst@gmail.com Subject: Re: [PATCH v3 16/26] objtool: Optimize find_rela_by_dest_range() In-Reply-To: <20200324160924.861321325@infradead.org> Message-ID: References: <20200324153113.098167666@infradead.org> <20200324160924.861321325@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 On Tue, 24 Mar 2020, Peter Zijlstra wrote: > Perf shows there is significant time in find_rela_by_dest(); this is > because we have to iterate the address space per byte, looking for > relocation entries. > > Optimize this by reducing the address space granularity. > > This reduces objtool on vmlinux.o runtime from 4.8 to 4.4 seconds. > > Signed-off-by: Peter Zijlstra (Intel) > Acked-by: Josh Poimboeuf Reviewed-by: Miroslav Benes M