Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2968507pxj; Mon, 14 Jun 2021 11:13:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUGoJ0HTH2cHkismbcxxEZxR82zhmJrRvgaJ8HsVRxhmVbD4eoFvkAOQB3fta1ZoMDcPpb X-Received: by 2002:a17:906:ca4c:: with SMTP id jx12mr16589183ejb.155.1623694434837; Mon, 14 Jun 2021 11:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623694434; cv=none; d=google.com; s=arc-20160816; b=eynMb6dvEpqFYhNn31sJ7UyPIIJv7s7wj7Nn7gXoCEAn03iZyRF5aqL35wGPgLtXdh cor0CPJnG9GM5NE2B9XBdFo8I8m80iiLoCp49/6tXyTCLQQxRqrDBVYQbInno0mykCB+ YvkEN+RVnMUeuGy5OwbnwzdiA++rwCqTwsE2VeqHmD/F/D2t4AQ2TAFDPjCiJWNiN+Pi Soz5nlx/C2+WEkUVLVAdkq/tgz1Sy5W7eDpoaC85GIjrpFta8gH8GbwA6VSu0eG2Idbh 8akvlpvXzddlWhpmrV/LPSa2WBSrY0AnbNIYUnduOnucjgIUbHY/ETvdfI05Zbeh1BfJ 8oQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=q/XB3mh4kqA0R3Mq5xG+IQPk2u072QCh1Aa1N8SVimI=; b=dJragtVAuJD5RBuZrFJnkkn4Faae8p8THrDGRpbG6UBhix/27cCKDXqpFb323/Rndy 9NeBCPHGBXpTlvAsKahrOGxNWlpaXfFIcb56oVTSGl4GDgBjMkBDJfEfF53eSwR2nNvL h8C9jorqgmOOBTCvHvyLZodQqt1pdw56CTUIJpIsIjIYdCFDwE5bc4sYdV241C3d6tfj zyaoh81YP3ZB0MrQ/897bvnnytMgmAXqktL2qGrcqH+E6VuqpXFEVKmz6I1xxljwiOWb NnrdGwk/WY3zQhFyJHCJM4Guht9r7GB8d9W3MsmKTkZ05slMywIwahOtmZqShgMV2+NO 6Tdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gNoMBqwI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw18si11790311ejb.64.2021.06.14.11.13.32; Mon, 14 Jun 2021 11:13:54 -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=@google.com header.s=20161025 header.b=gNoMBqwI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235150AbhFNSL0 (ORCPT + 99 others); Mon, 14 Jun 2021 14:11:26 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:45009 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235076AbhFNSLZ (ORCPT ); Mon, 14 Jun 2021 14:11:25 -0400 Received: by mail-lj1-f179.google.com with SMTP id d2so21306929ljj.11 for ; Mon, 14 Jun 2021 11:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q/XB3mh4kqA0R3Mq5xG+IQPk2u072QCh1Aa1N8SVimI=; b=gNoMBqwIekxVN4ZTQA2lb+R20pn6emj+cRv+063F8GUQEh+FfehSxGO7Xfa3xVcU3y JNiHA/bieZlQ0jgmetM3eerqFAtGCVDc8wlzQ3M/mwfNPBGiWljejiloap0qpolaWRwM zyFvn32ZAv4OTwgqbKcKUFRfB2w3GYsBl0Ohsk903f3S2aJ8ihqajen4jcWO3pTZeTl4 m993LukbpLj1Ytei7kh8YWEerFqD3osLEVw7AF8D6GGia1vZCt8v8SzbH6rbqhKztVFJ 7UMl8nAKNXJuvuZDmibTlloR0VSSNTu7UEsrHWjpM6yBK+GGIpZf5DhbG3UVlYNesjYH dONw== 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=q/XB3mh4kqA0R3Mq5xG+IQPk2u072QCh1Aa1N8SVimI=; b=dUDfk5xBJ7briRH5G8YlrdDTIDl5jyceMeU3Wde1lMQp01Y97zGBMG/qU4LV9E8LP6 ObbXURSXK2jGVNJQGi8JOclKiGnzEp78bpzDYQ5m15/1x1dWDL999v1oDnuH7tg4+OfK M1RK/cIEWGUcB2WmSW8yCXHujh0+t37wuVN3a0Wkiv2xoILWopNH8rmKKABYdSqLvRhv oc0iqVX4nUwnbFMrxdcSuDIyAtAUgAjy9POEWoik2Fn8SXRJt5rjPCnOr97lTHr2Fini cIVqGMCzS8mj3//MBVllvvH40Hu5CPiR/AwJngMqfcCO5FTpEdj9yoISUf+H3T6dGdHk WSqQ== X-Gm-Message-State: AOAM530GdrDyApIynEd92difnYTAe/j1nR2RUW1OqSgl6wg5TFdbZ5UG viRRtUvKZqMgBuxnluEWD2hdu6Z5zXVR4PfwAKKqRA== X-Received: by 2002:a05:651c:1111:: with SMTP id d17mr14547090ljo.116.1623694091627; Mon, 14 Jun 2021 11:08:11 -0700 (PDT) MIME-Version: 1.0 References: <20210612202505.GG68208@worktop.programming.kicks-ass.net> <202106140817.F584D2F@keescook> <20210614153545.GA68749@worktop.programming.kicks-ass.net> <202106140921.5E591BD@keescook> In-Reply-To: <202106140921.5E591BD@keescook> From: Nick Desaulniers Date: Mon, 14 Jun 2021 11:07:59 -0700 Message-ID: Subject: Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure To: Kees Cook Cc: Peter Zijlstra , Marco Elver , Bill Wendling , Jonathan Corbet , Masahiro Yamada , Linux Doc Mailing List , LKML , Linux Kbuild mailing list , clang-built-linux , Andrew Morton , Nathan Chancellor , Sami Tolvanen , Fangrui Song , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Andrey Konovalov , Dmitry Vyukov , Johannes Berg , oberpar@linux.vnet.ibm.com, linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 9:23 AM Kees Cook wrote: > > On Mon, Jun 14, 2021 at 05:35:45PM +0200, Peter Zijlstra wrote: > > On Mon, Jun 14, 2021 at 08:26:01AM -0700, Kees Cook wrote: > > > So, AFAICT, the original blocking issue ("PGO does not respect noinstr") > > > is not actually an issue (noinstr contains notrace, which IS respected > > > by PGO[2]), I think this is fine to move forward. > > > > It is *NOT*: https://godbolt.org/z/9c7xdvGd9 > > > > Look at how both compilers generate instrumentation in the no_instr() > > function. > > Well that's disappointing. I'll put this on hold until Clang can grow an > appropriate attribute (or similar work-around). Thanks for catching > that. Cross referencing since these two threads are related. https://lore.kernel.org/lkml/CAKwvOdmPTi93n2L0_yQkrzLdmpxzrOR7zggSzonyaw2PGshApw@mail.gmail.com/ -- Thanks, ~Nick Desaulniers