Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4013167pxj; Mon, 21 Jun 2021 11:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL1aZL0FJcCorK5aaKG+fF5ZuuWihLtQDw3FmYw6fhDwWV8EXJuEizXTHE+0IIcwUORk6c X-Received: by 2002:a05:6638:33a2:: with SMTP id h34mr18549989jav.60.1624299972250; Mon, 21 Jun 2021 11:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624299972; cv=none; d=google.com; s=arc-20160816; b=NbrBuOdhHn6RmSBXiRlyYiTouGt1we91ZV40w/ALzd/NUio2o9cwFzzJ4j/wfJxMTr 0QIVPBk8U2a9G/Er8aU+/4pkuUp2A6tqqTXFpS3VdJ28t7StweeCUQM8hc0SJ6F5ATN0 zzX+a973ExIGnw1RaLDBkOQjc20aAHRDXWnwxRY71fy8FxEKzkPgtTMCuyBVxKEIJONk ZvLEMhzrhaERgawVHlykhFHBFbQl4cKgj0lQI2GmOedsVwm/YhOyI5DwgrabexMZvz5D zxjIx2jdISmwQhXL9p1QQBBwovxpGqKVYEQriE3st1Y7j0piHL1AOt8B4VTf4yZbyG1n xOhQ== 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=8srstiN/1QZXwDTulF83V5rnWY0uXObxwuHnse4sC/A=; b=vkn7bRb2D0XQ60tmVHOBQ3UXxTbayWryGhxxVFO1zpvCzEq1ejyDmhe/u8+ZSKRpoS qDXg7xbeh8cNQZZ8/OmARmWymEAj0nlisCvEpt2NQ+03VCUc09KP+VcRHHGi4YSgTxlb MTQW5TtabAtmzQGBt5NrF+X/HybRJ4+hrBUXf78G4eb9c49YXL0HxVa0XYVsyqNF9xxw Fs3IyKhIaBsQNrJiQRIeSD5QCor83zj5/PcHeGvqIrLMVmXV9pQiAbR37Zu0kcXO2MMA dOcO3J6iOC8AKw06NyWNGVu7gSLRXDcTHZh/WcSqS2RR4vdi6vTfi9Y7wLYIWUExx3i1 Nwiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mbdRjmeq; 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 a13si3143990ilj.80.2021.06.21.11.25.59; Mon, 21 Jun 2021 11:26:12 -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=mbdRjmeq; 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 S231241AbhFUS0l (ORCPT + 99 others); Mon, 21 Jun 2021 14:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhFUS0l (ORCPT ); Mon, 21 Jun 2021 14:26:41 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E67C061574 for ; Mon, 21 Jun 2021 11:24:25 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id d12so297143pgd.9 for ; Mon, 21 Jun 2021 11:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8srstiN/1QZXwDTulF83V5rnWY0uXObxwuHnse4sC/A=; b=mbdRjmeqpU09zwARWs6VBWCsKthtt1ciZ7/sKECb+LXhO/trEQk1wiQ8V1CZ0EV2Jm ZlEkgW0zlljp2e/FgFuPRW9rdjI05xum01p50e9bFYSmMCNHbE5kQqAAo8oW420leycF l0vqb2QcSakmgDG0XDSPywc8AdQoRSaV2MRpsf1z/7e/SYs0HhYtYQWrwQE/QE4PjipG c4TpQZj3g/Yj1i5YmfIbNfvRTE4EkwYphVE25FDEvIvwz2vNVjsu4RuTd9AcI1aE94qc 6y/mckyWvHWNGxtF6OvgOWOlNbuvcJGnmCcaDgeccujmVJiAIXsJrfar32C9U2x7wAJX 6Gqw== 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=8srstiN/1QZXwDTulF83V5rnWY0uXObxwuHnse4sC/A=; b=n/KfSlDKASNnDOQL5hVa74WMyrjR0YUyQRiJouDX7zyc5y0kwfyl7llfOVYgKG75gg k5HsOGHOWsOSgfcKYA5BouMfMLxh9VbP7noU8qnKB8nH66Y9uokIdcXEZmKF75Lr8e2o Pp8dneuQeJT+a1D63LL0KMtMsQIm3Cs2PJqaaJR/2QmqB0M6d2A5wiIAJ65R7P7xa0AC 8Gsp2uty1GFE6zIkU0wKkRsPECUrzID4Yfw2oPT3TVo2uF8tdqkWq4sbIrJQ1lY4HbqA +qgjYYOXfxX/J4d8unIHJbDSuVRyI9DkLSftNl+6V9v2141kRvM8j56xIJT00Lit+sQa rX0g== X-Gm-Message-State: AOAM5325U8zg39LfPNTNzOpmigIGtjQgVGl4HkfAoogeg8VEjWyP3DFZ KUvnvYNBrqpSbdAJZlWdwXxN/w== X-Received: by 2002:a63:1143:: with SMTP id 3mr25502463pgr.166.1624299865199; Mon, 21 Jun 2021 11:24:25 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:33e1:52f0:4159:6ed]) by smtp.gmail.com with ESMTPSA id b18sm4756953pft.1.2021.06.21.11.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 11:24:24 -0700 (PDT) Date: Mon, 21 Jun 2021 11:24:18 -0700 From: Fangrui Song To: Nick Desaulniers Cc: Miguel Ojeda , Kees Cook , Peter Zijlstra , Bill Wendling , Sami Tolvanen , Peter Oberparleiter , Masahiro Yamada , Nathan Chancellor , Luc Van Oostenryck , Ard Biesheuvel , Will Deacon , Arnd Bergmann , Andrew Morton , Rasmus Villemoes , linux-kernel , clang-built-linux , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Borislav Petkov , Martin Liska , Marco Elver , Jonathan Corbet , Linux Doc Mailing List , Linux Kbuild mailing list , Dmitry Vyukov , Johannes Berg , linux-toolchains@vger.kernel.org Subject: Re: [PATCH 1/2] compiler_attributes.h: define __no_profile, add to noinstr Message-ID: <20210621182418.57qbumtovysrlkwy@google.com> References: <20210618233023.1360185-1-ndesaulniers@google.com> <20210618233023.1360185-2-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-21, Nick Desaulniers wrote: >On Sat, Jun 19, 2021 at 4:32 AM Miguel Ojeda > wrote: >> >> On Sat, Jun 19, 2021 at 1:26 PM Miguel Ojeda >> wrote: >> > >> > I am not sure if it is best or not to have the GCC link in order to be >> > consistent with the rest of the links (they are for the docs only). Do >> > we know if GCC going to implement it soon? >> >> i.e. if GCC does not implement it yet we use elsewhere this kind of >> marker instead: >> >> * Optional: not supported by gcc >> >> The first of its kind, normally it is clang/icc there ;-) > >:^) GCC does have an attribute since GCC 7.1 for this. >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223#c11 >I'm moving Clang over to use that in >https://reviews.llvm.org/D104658 >Once that lands, I'll send a v2 (without carrying any reviewed by tags). Thanks! __attribute__((no_profile_instrument_function)) looks good to me. Also a reminder that __GCC4_has_attribute___no_profile in v1 misses two underscores. v2 no_profile_instrument_function may need to fix this. Reviewed-by: Fangrui Song >> >> We could nevertheless have the link there, something like: >> >> * Optional: not supported by GCC >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 > >-- >Thanks, >~Nick Desaulniers