Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3814033ybz; Mon, 20 Apr 2020 09:55:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIhjN0OLaaMNN7vCdVG7JjFuvbiC0Q54/V+hHpc+hMe2kYPt5l5afQalljRgQfJFh5rtqNA X-Received: by 2002:aa7:df0a:: with SMTP id c10mr14471224edy.306.1587401748323; Mon, 20 Apr 2020 09:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587401748; cv=none; d=google.com; s=arc-20160816; b=v9NGSrmQziCTll+FZrvBW/JvoEhNGjdgboQX71SHXLta/RZEKURPg1YoA8ckr3U1zM rD52pD8VY8FoZNNz1tiyF32g24CQ9ina0RGHTm1TVJntDk3nKMKLKw2A10iWXMVnSzre A5kRxa+hvo7AyOiJvxDIYjICsNu48rnHLqIzK7uRk1hyRYO5/2sIDXkqfKVkq44vJLdL A5KJ175sTpwt3UM+dgfI84v63K3vMNtrVdrXPs5hwjBpH2oZ3HDCO+AxcIZLocXoBJSH k0m/30njhDpxJ6EiLvaYFCfe2+h9TcH/2xUcU5dx2s9zIkyLlBc2BJT3gvnd9hWJ1mtg WTRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DgzbtyUAM4NlYMJ2ldfH5ZZqB6BcgOSBDmAWxwlzsD4=; b=yS87IzvQ38/sBM2YzT8M793f/IUIydCFFLrN2p5jEW6BQfCcqwZFcspric3La+CFmm ixK9Byd/fnKb6DDOoGIhh2yafqZ8+zzzkGbn+yczhgNrvArFZzjwDMDCld2uLnqZ+epM nQ1KVa36N5xxioutAiFpwXf95c/QSqHJgW3+AE8pv3JaqNiIIfhKIkjqqFNN3Dwr9x+/ 2J8b3Wg7LawLu6rcHLllpXMHLEKIyo676LqnZ0rPmjxf3+A3rgf972tihZ8cvR8kiVVQ SIXczXkUfpZ1W7r9PeVNlKv6jLzwv+j+5rAF72Dq/V73PeBNqGCe7wy35ApLQVtZWwlO DyBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mwm6V6tI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l22si889799ejg.362.2020.04.20.09.55.25; Mon, 20 Apr 2020 09:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mwm6V6tI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgDTQwP (ORCPT + 99 others); Mon, 20 Apr 2020 12:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726355AbgDTQwO (ORCPT ); Mon, 20 Apr 2020 12:52:14 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E91FC061A0C for ; Mon, 20 Apr 2020 09:52:14 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id l19so8247688lje.10 for ; Mon, 20 Apr 2020 09:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DgzbtyUAM4NlYMJ2ldfH5ZZqB6BcgOSBDmAWxwlzsD4=; b=Mwm6V6tI8dML4TUgLvOCBORRkXVmUzROyVC9PfiZyNBcp8QfRdeet+ht2OPwxEXxKL u+s0Ie8mlP/auMO6vYzBBy5VMQl0QMNSxEGjLEzLHqiNZg+ecbusmoobgE52F+Rk2ATl lPpvKsg7Oa9Jtw0S4c1pyUjdHidRgVIU8n6Js= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DgzbtyUAM4NlYMJ2ldfH5ZZqB6BcgOSBDmAWxwlzsD4=; b=t04KHLszITaTACH1ofNH31UKGGBbPSM/vIKAWZyer4r2dPGa5rnDx4x4VmeOTV1cig I7HhYP4q5lXbPlFHeS++WpduIrt/FMYc0RP8bHX0+cm722ssHrJP4XbspHDfuxjyt1w1 mpa1Q8XpyhT941x6LzRLNW2/6vQg0j1EeqGG8ZO2Fw70zb1eSf6CJqJ6Wl1u472HkA31 +mu6OCrvrB4bHqkWVhPO2A6dVtwA+cUgZt/ZdAQQo4WU7/+di+sZw3GAdnRJnP5ggLWB xMYNSS8xJPeBBr6rAKsxuijFinE8NpB9gggi6lFNEpRAj7wxPWje/KTcxPsF38ae7K6X iG+g== X-Gm-Message-State: AGi0PuZBtEFEFMYQSxINssWBcZMeUR+YOtLCay5Wnu41SmcTqtb09VQG D7WTEIToro/V96tfShaIyn1CapIyCJk= X-Received: by 2002:a2e:9258:: with SMTP id v24mr2154548ljg.109.1587401532597; Mon, 20 Apr 2020 09:52:12 -0700 (PDT) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id d24sm1241049lfi.21.2020.04.20.09.52.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Apr 2020 09:52:11 -0700 (PDT) Received: by mail-lj1-f172.google.com with SMTP id y4so10746039ljn.7 for ; Mon, 20 Apr 2020 09:52:11 -0700 (PDT) X-Received: by 2002:a2e:b619:: with SMTP id r25mr11099348ljn.150.1587401531317; Mon, 20 Apr 2020 09:52:11 -0700 (PDT) MIME-Version: 1.0 References: <158730459860.31269.9496277256253823777.tglx@nanos.tec.linutronix.de> <158730460101.31269.5005570498545135614.tglx@nanos.tec.linutronix.de> <20200419200758.3xry3vn2a5caxapx@treble> <20200420074845.GA72554@gmail.com> In-Reply-To: <20200420074845.GA72554@gmail.com> From: Linus Torvalds Date: Mon, 20 Apr 2020 09:51:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT pull] perf/urgent for 5.7-rc2 To: Ingo Molnar Cc: Josh Poimboeuf , Thomas Gleixner , Masahiro Yamada , Linux Kernel Mailing List , "the arch/x86 maintainers" , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 12:48 AM Ingo Molnar wrote: > > Fortunately, much of what objtool does against vmlinux.o can be > parallelized in a rather straightforward fashion I believe, if we build > with -ffunction-sections. Well, I was actually thinking about a simpler model. By "link time" I didn't mean "after final link". Yes, there may be reasons to do it at that point too (to do any whole-program checks), but that wasn't what I meant. I meant literally doing it in the $(LD) and $(AR) phases, when you still have lots of independent object files that you are just about to link (or archive - do we even do that any more?) into one. Then you'd parallelize exactly the same way we do now: one object file at a time, and with no real change of semantics. IOW, what I was thinking that instead of doing it as part of a final step after the CC/AS, we'd do it as a preparatory step before the LD/AR. Same exact operation, same exact target *.o files, just shifted in time. Linus