Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3677082rwo; Mon, 24 Jul 2023 15:04:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFe7ffZyoMt0R2ZATecmI2eduCiXC+x1EH71DSwceAy8x4WaFhXE59mKm07qD69WuFsyoF X-Received: by 2002:a17:902:e74a:b0:1b8:9b1d:9e24 with SMTP id p10-20020a170902e74a00b001b89b1d9e24mr14508669plf.22.1690236284614; Mon, 24 Jul 2023 15:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690236284; cv=none; d=google.com; s=arc-20160816; b=xcbeG1HKXEMCL02JHytH9+HXMWDO7kGeKgY3QNOJ3JPggmmLdnO26r+0fQwT/5ura2 RpCG9d7k4QO2seA5QYHh+1eNq0oyIAGyygTREMssaR40vzIJPRIgJ0toSVY1CT+BfoQu yXPPKcXSLbZrMtS5DU/UhYCKbumWg6iRa8/GDtsBsuWVHGmM+0ftrSM7iw4N/aFatb69 aWs1rgbVFrMhBUr125KA90A+so++MBhH7uUC3wG1F8qUB0y+bQ1BGFTC3c4LL1Jw/YGU QKw+Y9r2RS1cIwvxYHUqkmAlBthvyYkuUSi+C4gop54xH/gYAX+6KuoDTb3AcOJsP3c9 n7wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=w4rysK55oB8iprX5PsN92lskw7NnrBKRNpCCq0EizyQ=; fh=DaEtDrgDr1LPTSaNuq0RJp7cCpUYMoVYFCVtmGKA8Ew=; b=Oko6ZtLoTobMAo6UtoNjR5iLm2GqmEEjNpxTTLWirW8gdRv7JERNLl0qtHQ5NfgTlm YlDVutDdv3YEWipc2IqAc3D2Vyn2CqhQM6WO2PjwElOckPcITEMtoxXutJqZxuAPQCQe dK0N+yGMImbRenRZHiG4s5ZB/1x8jBM8VYZparBtxFFLOWqyHh58Y2JtAI2lLFy6A/Xt bWnG1Kp2ifwHcV5DqwbSgqZT64YNcTJr8FDj3fws/YmHrHyomO1IEdV92K4DgxlVbkUl GTEmSpODDLrKeN+dSaSoUjhXBOHDx9xDqTrkvECjQ87tZn0lOD/peGH2vmB9IVaKrPui wDaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=1BXELcHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a170902ec8200b001bba415cc39si3150005plg.245.2023.07.24.15.04.30; Mon, 24 Jul 2023 15:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=1BXELcHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbjGXVPZ (ORCPT + 99 others); Mon, 24 Jul 2023 17:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjGXVPY (ORCPT ); Mon, 24 Jul 2023 17:15:24 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A7F1AA for ; Mon, 24 Jul 2023 14:15:20 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-766fd5f9536so325845185a.3 for ; Mon, 24 Jul 2023 14:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690233319; x=1690838119; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=w4rysK55oB8iprX5PsN92lskw7NnrBKRNpCCq0EizyQ=; b=1BXELcHUXg/+rCkwfBoa14IfiR2Q6aqU9PgFbw47oz0uC3np3HFNCaFz7ScGSD5/Mq DQ2deQyYa6L8MreNAP/kbkznCiJ5lVuxnhfnrHFfd7TilrEZNfgf05J4hKAWXPiFXCKp w2saThXCYP65xSFqvvNKuNizMsmiRJkbU1CrPzPT6jgiRpEfH5PpOv1qTdGsIVNhCvAe Gntw2xb1FeAwbgsih7FPFGkyqFi3TaKSwJrgCjzW3MJ1FEezE8GysHleA1+80rYFJBqh nI1ugr89BQt/oT26XVioNDLE/paobBJMMPO2VpTFOpV8yTf+D95fnySZsTO0RH7SoWAV YxUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690233319; x=1690838119; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w4rysK55oB8iprX5PsN92lskw7NnrBKRNpCCq0EizyQ=; b=B+lK4Jr5vjtjhsWixgbZhT1n0SrhiSfZCwT2fLjQ7noQCVzXBjvz963zmWte5In2Ai RZK2XI4MfYOwZnCvRUfna7FXOlq0O6kCJQvLSI1H1WtC+xNF3yg8IgvVEQr2qD7Nf3UQ cml3M8Xp9t9grckeInrY4MOu/ibaSL4jmbikODpoE2UGtWGpxoxfb20PleTlzYVRuxYC XhtyX6N1+Vk9fg9tFJF+gXCCFPQP1dn8Xo46TufiPdPGOtJdwK/PnaXG765bDd4LayO+ DRah244kfSeNyzbqUDCLOpUaTjA8HkPsq9oE84/f9/Fp+PhVIzOObQ2EVgMiX99Gemau FWtg== X-Gm-Message-State: ABy/qLacQOtWajBOry/GcP0HRgWHW3wgq1iNwpJo3Kea3qmGwJdw577E FwgSxFJ3yQXR/tK6C1yX/nfEV89sKM7X8ZdOuXtkyA== X-Received: by 2002:a0c:facf:0:b0:635:e4ed:b6c9 with SMTP id p15-20020a0cfacf000000b00635e4edb6c9mr949080qvo.24.1690233319030; Mon, 24 Jul 2023 14:15:19 -0700 (PDT) MIME-Version: 1.0 References: <20230724201247.748146-1-irogers@google.com> In-Reply-To: <20230724201247.748146-1-irogers@google.com> From: Nick Desaulniers Date: Mon, 24 Jul 2023 14:15:07 -0700 Message-ID: Subject: Re: [PATCH v1 0/4] Perf tool LTO support To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Tom Rix , Kan Liang , Yang Jihong , Ravi Bangoria , Carsten Haitzler , Zhengjun Xing , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev, maskray@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 1:12=E2=80=AFPM Ian Rogers wro= te: > > Add a build flag, LTO=3D1, so that perf is built with the -flto > flag. Address some build errors this configuration throws up. Hi Ian, Thanks for the performance numbers. Any sense of what the build time numbers might look like for building perf with LTO? Does `-flto=3Dthin` in clang's case make a meaningful difference of `-flto`? I'd recommend that over "full LTO" `-flto` when the performance difference of the result isn't too meaningful. ThinLTO should be faster to build, but I don't know that I've ever built perf, so IDK what to expect. --=20 Thanks, ~Nick Desaulniers