From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 329A2C2B9F4 for ; Tue, 22 Jun 2021 18:21:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F41BA61076 for ; Tue, 22 Jun 2021 18:21:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F41BA61076 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fkLr04yPjxRn4h5mmR36T5EgQ/jLoHkFPY43AEe5eNg=; b=dEun0YfGmrbgka /gqdE+aGBUzoCO7OzW6aEXTG4sK4md155vEDo5/OTMFZ8zJfk20Br4nCkv6QPJ/Af1H+HkHlqa/zG JTyOQVjXAb47tMFGiMC42EyEJ0RTCKQb3y85qgNFU+FoipQ6L5JYsRuaQhIBflrYgxb7GKzkl+XtW u/r4k4YfYAAWpynvov8haDWLuVzxFsXCRd9vhQ1DkkOsAsUGd97SYDf3qAlmZj+2Hf7/eLU7RHllH PpJsEcCdZENDM66ZnOD/V06IVLfXcnDOB5sOHh8YAm3xhWpsJBnFYLTRFuMY90wE28ZhRVVu8DZ9o UYanFvF1RKFKRW/eRN9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvkzU-0087k2-As; Tue, 22 Jun 2021 18:19:16 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvkzQ-0087ip-9j for linux-arm-kernel@lists.infradead.org; Tue, 22 Jun 2021 18:19:13 +0000 Received: by mail-pf1-x431.google.com with SMTP id i6so242712pfq.1 for ; Tue, 22 Jun 2021 11:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vHkhwZ3qyE8u/Wp9tD1mKmbxO9a75mKPe922mGmNuX0=; b=G3jEIXi56zPU55St8PRRGBMvj09eVkzxvRA4j3a1Za4m32F8oowfljy+MLrjkKMMOY gqCyhY+LaI3GsChNsKPysbVlP3uhepiq30BvlWZBsdYL/ga6P7P2Ql75RzMmVgX95CO5 C8o41QTJPpFtZIvtVtKZ99d5hUQlvpZ6nyYkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vHkhwZ3qyE8u/Wp9tD1mKmbxO9a75mKPe922mGmNuX0=; b=CYCUJeh6rUotxPsZ0tLi9o+bD9Or8Ez2913WTeKDwP/alVaooS83CWfzEVnlK0jGdh rkppwXI9ySVJVsfXsd+DakIZ6UGQjYk5OuNfr6Luq+38HfRRghkWuc/GfHmIZ07umoRe mpcCsvbX/1XNwcxbaT6ZxeR5iWjpkJDTdnEQlR539Cd6vgUzEpW5s3nz/vxlVFK+n/k5 /Hvp1Iw0eI8+iwwL5LA6C+63JofXrVfK6IELWGs2eNbdWDEtl8dVBHs3fuOWo05/dVPM KJlQJf53JEfKjWyT5p15SqR4CpSMk3SKKL2HQed+fP7ZLMQuwow9FZAYa+owrN2KKuXl 3eJA== X-Gm-Message-State: AOAM530httvF8zXlf8Y/0LAiJ3mGkRaJulUOa8iHJpESwdOIkIheYToX yp5y4WzUjyoHf6MGtJSPxoBWwQ== X-Google-Smtp-Source: ABdhPJzRGvSboU8eph/ltxaJQHvbwX778zfYgQtOZGbY2hs/9WNU7B/bJjJmayoVyP+gq+Yk/M1xDA== X-Received: by 2002:a63:a51e:: with SMTP id n30mr24200pgf.104.1624385950559; Tue, 22 Jun 2021 11:19:10 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id w7sm2921928pjy.11.2021.06.22.11.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 11:19:09 -0700 (PDT) Date: Tue, 22 Jun 2021 11:19:08 -0700 From: Kees Cook To: Nick Desaulniers Cc: Peter Zijlstra , Bill Wendling , Sami Tolvanen , Peter Oberparleiter , Masahiro Yamada , Miguel Ojeda , Nathan Chancellor , Luc Van Oostenryck , Ard Biesheuvel , Will Deacon , Arnd Bergmann , Andrew Morton , Rasmus Villemoes , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org, Borislav Petkov , Martin Liska , Marco Elver , Jonathan Corbet , Fangrui Song , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, Dmitry Vyukov , johannes.berg@intel.com, linux-toolchains@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas Subject: Re: [PATCH v2 0/3] no_profile fn attr and Kconfig for GCOV+PGO Message-ID: <202106221118.34BE990@keescook> References: <20210621231822.2848305-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210621231822.2848305-1-ndesaulniers@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_111912_396635_6EE12DF0 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 21, 2021 at 04:18:19PM -0700, Nick Desaulniers wrote: > Add a new function annotation __no_profile that expands to > __attribute__((__no_profile_instrument_function__)) and Kconfig values > CC_HAS_NO_PROFILE_FN_ATTR and ARCH_WANTS_NO_INSTR. Make GCOV and PGO > depend on either !ARCH_WANTS_NO_INSTR or CC_HAS_NO_PROFILE_FN_ATTR. Awesome; thanks everyone! I'm doing a Clang rebuild now, and will do kernel testing and push this to my for-next/clang/features tree shortly. -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel