Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2625397pxj; Mon, 14 Jun 2021 03:22:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc2kCT11nhRf1YjUt2jbb8E20XVWNIo/QFKdJILVLXyGIPFGALXfzAKUA9pYiU7fvhCPYC X-Received: by 2002:a17:906:7188:: with SMTP id h8mr14728330ejk.529.1623666138746; Mon, 14 Jun 2021 03:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623666138; cv=none; d=google.com; s=arc-20160816; b=kLvlMYSQbqJIafL38Y65EBTiCzkq1jLsY7WhZ1fhWIxsVSSmdhp68yY5mX698hnWFE dzkKzAQ6pffKdIda6s58Io9eXd7OZ3F0GNIzpvlVb94sH84DICDESB8aWL2itisqSlSN umynxAxqXdSDMstLIv1NnGh0Q1QhcgY8reHvWfq1IrDNp+JvqrpcbOpW1awHj6yUW9kd Y4OpAmQ1NJTlMueIBfz16kgSE3wMO5B677nV2L6lyFvuafZ4LcZSq1O8+k39LGcrglqY FSROl6GKN+04dNWoNKjSxlmFBuZ3d/MBX7cEB2/tGFm5RJsDBGY+pOAKi3vV2xvyLF+/ 0LeA== 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=NhIEo9sT28glTkM4CxprF+qgzCzmmeIS6U+43P+3xf0=; b=X0LfZTx/mkPEm5ZpA8dp8+K2xmLyOE7wQXxnXrurdkOt0eno8AqdhAwkEmtFHUxziI cJfmlzI2IJm3kBe2oIirDJmcxgmupgX8pSDgob/V92RyhN9nx+UmdoqT/jlUOuonhPFQ BDefeQrg+3/nAtHnsYTabcVRiXYSmGttdJ4L8zmh2TYdr2BvHzPn/DzhJ4WMMdWrlmzR ReuB5SHtO+A5B2OWyA/XYBxeeA2dXgX06Pfh9yyYgkr5Bk4779DmEQkjEKeiTWkYIG8c YtYMCfruqoVXiVpD3N5/TS6NdDUdrC8pM0fTawG/2SzY05yZSxN8f+3jga2gtlfxCHm7 wteA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=CaSvsj9J; 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 rv25si11274473ejb.507.2021.06.14.03.21.56; Mon, 14 Jun 2021 03:22:18 -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=CaSvsj9J; 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 S232770AbhFNKU4 (ORCPT + 99 others); Mon, 14 Jun 2021 06:20:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232691AbhFNKUz (ORCPT ); Mon, 14 Jun 2021 06:20:55 -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 71204C061574; Mon, 14 Jun 2021 03:18:53 -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=NhIEo9sT28glTkM4CxprF+qgzCzmmeIS6U+43P+3xf0=; b=CaSvsj9J4I01ytahIOFo+aG8Jv Wii8P4OUN18F3+xTqrL6LYLIBdU+beXTS3ohY9cnjAOBHka16OM/VG9QAPWYHhbeI6Ygh/+93xFaI EJTw2DzHMYNenFtpJ4mrZ/UmrucjMOYCY9SKLITq5+7XO+v/YeSvY6EbYyAVAvKFNOLKvBJXY8SwN DJaxaq+MJEtg4yREyAJieFeQ2XcUX3WcCvumbVVjuaIK5bTApqvelqF4tLPTkH5k7077lmFUHF8pa gz3AHaspUYnzmM/Y/1cbGrpi9Cih5nAvdo1pO7z4r3ZnPsMDdc4DcQzZFCSmbCFIoiRqApZ8Kxeui 0BmHtICg==; 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 1lsjfs-00706g-Mx; Mon, 14 Jun 2021 10:18:39 +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)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5A7C73001E3; Mon, 14 Jun 2021 12:18:38 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 43BBA2C5DAE9B; Mon, 14 Jun 2021 12:18:38 +0200 (CEST) Date: Mon, 14 Jun 2021 12:18:38 +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: <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 Mon, Jun 14, 2021 at 11:43:12AM +0200, Peter Zijlstra wrote: > 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. https://lkml.kernel.org/r/YMcssV/n5IBGv4f0@hirez.programming.kicks-ass.net