Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1649750pxj; Sat, 12 Jun 2021 15:59:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIjiNfn45Fc5nxy83T5uRJKifFBKL3AbuU8uqmCYUqkWbMu/a1f1mwSVKP8X+nYrX/1nN X-Received: by 2002:a17:906:2b04:: with SMTP id a4mr9008589ejg.6.1623538749185; Sat, 12 Jun 2021 15:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623538749; cv=none; d=google.com; s=arc-20160816; b=M47BFv3H3yFhkfujM9VfD8t9FAdqIQDKuv+XdeUuVsfk1B165oAGzjZvyrnzvmHFQ+ 1QRAUNOEFzIoALO2YzQVGBESvSJ4W3PlesdVBTicMygMAUqylAJMUlhwzCNIxJAMa6bY UAO3BYqAoJ1AX6w/1xmHiFXc4sGgQKi5mOm958C2Z+yat1meGbSujeVGH1BxBjRfLZag roTcI2d817AtH7sJFS5vadbNyazaeQt9XnT2aPrjMQ1Gamw4G4kEDisuYExiGfhnUsvI RnFHJHKunm0Ee4efR5Jk5DIYeV6NaA0hRUfhkZOQk7j3FK3DS+fjolORjoohf9yzsNzx GIWA== 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=nGHIR4/0sog9+QR1vgYyGt5rSfZQ7hXnNFmBCZsNQSk=; b=QthUNdvqOBfAbRBd0Cq/4rzc1Ru1phxfvhfwTR2LfB8b4P24HvLEgonxMHkMwch4VX 283acAAtULId2huJ7IuFAeCi/PbgiK8nbrXPYRWO5c8L+v+4yNq+VyyEox+NO5XWJSnN pw+Fl/dxL+N2pN28tkOQzmPv/FdmnXzWcFLpeCtCFfmydGV2XUe5Dw1ugi6P6/Fw/76i pxreuK+awF+qwvFdcr8oxQ4HFr7WclgXb6yk+iOQXjbdbeb8cgB8Kaclh5WM/0le+p5s IubgDQxmMoCeqS5Fs9mZ9m0Jx5dABTdxCYBkSU2RLhJXzDp7LO0LkuAbklOkJcR6QsN6 ySOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lC+cdrow; 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 i2si9092639ejp.119.2021.06.12.15.58.45; Sat, 12 Jun 2021 15:59:09 -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=lC+cdrow; 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 S231578AbhFLWvW (ORCPT + 99 others); Sat, 12 Jun 2021 18:51:22 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:45710 "EHLO mail-ej1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbhFLWvT (ORCPT ); Sat, 12 Jun 2021 18:51:19 -0400 Received: by mail-ej1-f46.google.com with SMTP id k7so10024694ejv.12 for ; Sat, 12 Jun 2021 15:49:08 -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=nGHIR4/0sog9+QR1vgYyGt5rSfZQ7hXnNFmBCZsNQSk=; b=lC+cdrowzchkcKAaUtHdUnGc8rpJhhCfEju3TA2/o8CiBKiosvPMgP7QSG9rGrthF/ P4iryOOKpvsyUr9nhZBqZ9D+MUsnU9NDUoTe6q6zdZXxIwv+V4JHcEL3g0h5zefAnYU9 uYkSgVlKtdJKXQGQ9l87vB3tQ8+8f+kgXVfX0ai1cCuqMMPnBlH3afaR9oELkVHB6Cqi q+rQTncUITPSytCVm03VlE8vlSuYkexxAoq/c9uB6VB9hcdT6+DSFm16yTbgRiFjjgpt x0ZBpG90T+cZIoOzntShCWYcInf26H4HbWVJDVr+NuP53d7hggxvDIZkvzsAwcPn/e7N w/8w== 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=nGHIR4/0sog9+QR1vgYyGt5rSfZQ7hXnNFmBCZsNQSk=; b=ZWqC7K8mXKs8ZI0q4Tcs/C8b4evD9+CxzNoLTuhpAtOd0FosOnqV9+Jb3wR8Fo1yZ0 9/f03gBU/bEr5vru/SJhbbiY2IfaJM8oQyvF8CqgphvZyhKLT9Meq6o3FxobgsfkuTov 0zHbAowu4mSNViXf90PH8Qk4DlrpUml579hUlAwcbtZjkd1HQ5hm21VfYls8jNV7zA3v W7/RM4jw724Gq9RyL2Cww+DhyrqpxDTQk5bDb8jY0fgrqxyUJrYWi/PyUKVJ0agJfCsz SntKaYmn2+fVjTIa9cvng26dH8jEGfDw/Y1Q+zJQxtEFPvMphOl7cGzzIrfhjs3cbdHF J78A== X-Gm-Message-State: AOAM5307KpRrkn46rfDoU20SecocNev3W88FnqLAVkjpopRnKlBPMSi3 VcrY7rNdIz0Gx4cGxgOOLElJDTi8/bU09mZMBqrj X-Received: by 2002:a17:906:7052:: with SMTP id r18mr9007489ejj.449.1623538087519; Sat, 12 Jun 2021 15:48:07 -0700 (PDT) MIME-Version: 1.0 References: <20210111081821.3041587-1-morbo@google.com> <20210407211704.367039-1-morbo@google.com> <20210612202505.GG68208@worktop.programming.kicks-ass.net> In-Reply-To: From: Bill Wendling Date: Sat, 12 Jun 2021 15:47:56 -0700 Message-ID: Subject: Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure To: Peter Zijlstra Cc: Kees Cook , Jonathan Corbet , Masahiro Yamada , Linux Doc Mailing List , LKML , Linux Kbuild mailing list , clang-built-linux , Andrew Morton , Nathan Chancellor , Nick Desaulniers , Sami Tolvanen , Fangrui Song , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 12, 2021 at 1:56 PM Bill Wendling wrote: > On Sat, Jun 12, 2021 at 1:25 PM Peter Zijlstra wrote: > > On Sat, Jun 12, 2021 at 12:10:03PM -0700, Bill Wendling wrote: > > Yes it is, but is that sufficient in this case? It very much isn't for > > KASAN, UBSAN, and a whole host of other instrumentation crud. They all > > needed their own 'bugger-off' attributes. > > > Now, for the "nointr" issue. I'll see if we need an additional change for that. > The GCOV implementation disables profiling in those directories where instrumentation would fail. We do the same. Both clang and gcc seem to treat the no_instrument_function attribute similarly. -bw