Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2602495pxj; Mon, 14 Jun 2021 02:45:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR08I6/Gue+LD1zxauWjdM5uy2bdy92gAjo9vemcZAR+y46hcQDYYmp7Y2CBjX7quw+FHX X-Received: by 2002:a50:fd0a:: with SMTP id i10mr16294948eds.78.1623663928615; Mon, 14 Jun 2021 02:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623663928; cv=none; d=google.com; s=arc-20160816; b=aXt5zXBBPhEmvj1jGlLJ+mK2NrB6kiW+ZiMy/NCWKIkPnzBe8UTDCVlUQnwXqoNHML J1NzOujo12juKNInNGsC2vshs6pnBU+urRn2cbIPBMB13GmnWebJNKQMPTYchhgt5kZ8 noCQ9t1AdP372McQcYFnaWBrEmUKXoym3Tt76Pdq4gu1RmN+WQN7YdxB764o3HCewQZ+ vNmXG/dwBaSMCNPLf2tdWi9XAke7QL1fhzFcsvC0iGw3LUea4+/J6JvXp0U1FpypOu0r 3r5ODxU+CKve7YOLsjsYkt+IJPrHtyzv97VGpZbYNiccKBXICmNT1Hkss0IFPA7wX6Oq mIxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ETFQhOUX2dsG9gREBmqiOQps3x5gpXqUMNQJ3wfT6Yg=; b=YpKJgkNrvppNmGdPuuJIkKwKE7vj/776OSaD7XiOIkOLjepWK7q9sNLpttRhzRnofU DYnLDB5Cy3eGjSyRroa89KhwqEpqFKI924Wt7FqtkQD909H6zwwN1JiFeJeesILo15fO iwW17OhVXNDSWEtP4cnMTUgEOxg84059LKx6ffPkxVTUqnDD9hUt3wH2b+XUwUQfY5zk +r01iZhl9EkwFSgXFVSDy5j9BkHJjPdqM1iZotTjuBmrFb4o1pMaoKa/YqIxcMAu4VMK hzho+cgXjoIDcP+QUQ/6Ct7L/dlAR/RacU+n1QFQsygmMetCjFnVxue71kfmnzCCO0qN B6oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=c0LWLb5k; 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 u16si11656822edb.334.2021.06.14.02.45.04; Mon, 14 Jun 2021 02:45:28 -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=@infradead.org header.s=desiato.20200630 header.b=c0LWLb5k; 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 S232730AbhFNJpd (ORCPT + 99 others); Mon, 14 Jun 2021 05:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbhFNJpa (ORCPT ); Mon, 14 Jun 2021 05:45:30 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63291C061574; Mon, 14 Jun 2021 02:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ETFQhOUX2dsG9gREBmqiOQps3x5gpXqUMNQJ3wfT6Yg=; b=c0LWLb5kWkk69XyynbofGfm9Y/ 8Ucr6BslI9dOYy2tl5m0qdRsAl03nWuupvHPaj+wcXfZsz3RYGD1XN1M8Ef0pxqHkL4fhz/5G4wTG bJNBruP5iCaXvfu5Ahmv2+srePDahYyXhgx+g+njfJIkL6Bd3BFM7AztvNyqO2M1A9Miad+6GRp75 gV4+2qqIKibte9L1Qp14dOOl5cgfN4JRhOgjkF/8/gXVNFF2EoBvsCjep21LbbC4+cDUPy51RXH/4 0IgDFZSC1hGREjfx54AGZ3W9It98IQWNmrCFr6KU63taaJ/p88WR1NcjH9AIihPdBrr4Vy6/Ku5h+ Lyd3OS7w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsj7b-006zkq-64; Mon, 14 Jun 2021 09:43:14 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0E63C300252; Mon, 14 Jun 2021 11:43:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E7DAE2C08E387; Mon, 14 Jun 2021 11:43:12 +0200 (CEST) Date: Mon, 14 Jun 2021 11:43:12 +0200 From: Peter Zijlstra To: Bill Wendling 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)" , andreyknvl@gmail.com, dvyukov@google.com, elver@google.com, johannes.berg@intel.com, oberpar@linux.vnet.ibm.com, mliska@suse.cz Subject: Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure Message-ID: References: <20210111081821.3041587-1-morbo@google.com> <20210407211704.367039-1-morbo@google.com> <20210612202505.GG68208@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 13, 2021 at 11:07:26AM -0700, Bill Wendling wrote: > > > 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. Both seem to emit instrumentation, so they're both, simliarly, *broken*. noinstr *MUST* disable all compiler generated instrumentation. Also see: https://lkml.kernel.org/r/20210527194448.3470080-1-elver@google.com I'll go mark GCOV support as BROKEN for x86.