Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2796898pxj; Sun, 20 Jun 2021 01:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEuvgTJ+JlNiuVv7gr3NsJsXOSo82YEfnYmM3GczEmFp4+12YASh7tqN4ObNF+eI8mOPMU X-Received: by 2002:a05:6e02:4ae:: with SMTP id e14mr13585082ils.186.1624176603328; Sun, 20 Jun 2021 01:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624176603; cv=none; d=google.com; s=arc-20160816; b=SOrKxRXmQ+fzZw7IsyJzq2cGeHi8N4bKKO38V5OWaELPDqwdaCmgqF/cTwRUuY6lfo vDBkBAghIdwtB1zunVBzj4D1aPjI8nDQTLKe0LhVpyqAa9tuRWqhAFC7AEN1IjONRya8 J8TnKohMDTlSKr6Es7OZ0VKNEUxHN78eAV023EqK3DJtqwmARhRGfUWcGvJa6DVzSB1t tB1OBfLbpQSZxc+dH/KhRNzv/fzKZYZXc2kW8071K0himeu4pUQ/KCNkSVrSW+dXGaja VAk/cw8hKlHVVc6B9k5yc/bzT9SI/rJxZc5cK186cn2fHVBuDTAnL+88N/IKFpIaHtob xe3Q== 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=sjSERqxDFGCyYrNN/qxA0ZiGx1EeVNWA0j1N532j0OQ=; b=lqdmVAaTkDCrGDKNTOLnsXVVpY29z0fd5IJziKVGUJokz0kaar1k4iEDmCQF7AQJcz g7coGrzr9rmaAJdUnANg3Nx+j00zBE8GNi+jrBgAm1t4xdEiVBluwC/pB+FdIEwYtauL 5BgrsLiYu4PFLV8WOafZKfH/apKmCN+t5JVBDPSnh26HZfntq97I+prrbypkeJkPlpMs 40EARhg7UO2v9jIoSYAWrUCBrK7OK8d9cHu0NyqS3MK5cVGoUlj/9as++nfHRqrlj0zx rpkEhTVR9rmU3F7Cgvtnlt67tn3G0Tede60jJeQnN6LEwipRphK6vfyM+AJrwfMgfvbv u6Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O2mTGoMF; 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 f6si13262618iox.103.2021.06.20.01.09.50; Sun, 20 Jun 2021 01:10:03 -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=O2mTGoMF; 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 S229579AbhFTIL1 (ORCPT + 99 others); Sun, 20 Jun 2021 04:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhFTILZ (ORCPT ); Sun, 20 Jun 2021 04:11:25 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14998C06175F for ; Sun, 20 Jun 2021 01:09:12 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id t7so14548320edd.5 for ; Sun, 20 Jun 2021 01:09:12 -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=sjSERqxDFGCyYrNN/qxA0ZiGx1EeVNWA0j1N532j0OQ=; b=O2mTGoMFVrnU3bwMOM112hgs3Z+LFM4ZVxbnAnn0MS6irjyF75/GvO5dfdLXAua/jf Xr9hkcbrhzoJeXx749WGZo5lY1lvdo6hJxC4KFtzwB3jn1rRG7394JGVBvd0Ob/gP29q a47ABW2L/YWjZLpn8qksbTNjdDK2Sx1CAVTfSy9CedEO1bOiy1EXeBESvHoVdA4N6qK6 XkfOlaniy9s4/al3V9Uk7xVW+8qhPb4i3Vm77HwnS4TAGg97oj4vJcU7qPGsWdNNr42U 7lcG6SaugtzlbgSzIq8V+B9eXVuT+24QuimRe1JDeLCLqVDFQ4nZyLGgsg6Sb7ivd1LT 24tw== 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=sjSERqxDFGCyYrNN/qxA0ZiGx1EeVNWA0j1N532j0OQ=; b=cGaFDHpM7BQVW4hpjt07lDb3VdUHRFaKKauQ7QJmeA6B38oirOI/RtBAzOU8j6XBiv mp3WWhKgKg9Y3mDz6N6/kXpHKc6FZ3PN4xvz4fgvebt+tS1haSLQL7/sPc0YdXRUCIqw DyTaUZru9Av+0Ca+DoIGUVX138vEH3hd9WkcT666KJ5t1b3wc11KiQkDS8YHimX7e9Wf iNAGm5xEKk9ZET4D2d0p7VWYTeXBVLwcc634MZz1yFyCAZnDU/K5VgD2bEaB5Zjvn1sp ctj3JDkuRzLC5ebikr2JnjaCFEVKdhGAPqQPcHDNHujWY7kw/By/OWCkMkiIBInTCPAI V/Fg== X-Gm-Message-State: AOAM5306dTKqNxYlS04uKt/a9gl3PbdsljH09p1bQVwjErqP0fe2p796 RG5rZB33ngAq/GPV8XEkHQgIg/PavPtvQOA1kKT9 X-Received: by 2002:a05:6402:946:: with SMTP id h6mr14509058edz.261.1624176549643; Sun, 20 Jun 2021 01:09:09 -0700 (PDT) MIME-Version: 1.0 References: <20210618233023.1360185-1-ndesaulniers@google.com> <202106181945.AC10BF38ED@keescook> In-Reply-To: <202106181945.AC10BF38ED@keescook> From: Bill Wendling Date: Sun, 20 Jun 2021 01:08:58 -0700 Message-ID: Subject: Re: [PATCH 0/2] no_profile fn attr and Kconfig for GCOV+PGO To: Kees Cook Cc: Nick Desaulniers , 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 , LKML , clang-built-linux , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Borislav Petkov , Martin Liska , Marco Elver , Jonathan Corbet , Fangrui Song , Linux Doc Mailing List , Linux Kbuild mailing list , Dmitry Vyukov , johannes.berg@intel.com, linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 7:45 PM Kees Cook wrote: > > On Fri, Jun 18, 2021 at 04:30:21PM -0700, Nick Desaulniers wrote: > > When we say noinstr, we mean noinstr. GCOV and PGO can both instrument > > functions. Add a new function annotation __no_profile that expands to > > __attribute__((__no_profile__)) and Kconfig value > > CC_HAS_NO_PROFILE_FN_ATTR. > > > > Base is > > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=for-next/clang/pgo. > > > > Nick Desaulniers (2): > > compiler_attributes.h: define __no_profile, add to noinstr > > Kconfig: CC_HAS_NO_PROFILE_FN_ATTR, depend on for GCOV and PGO > > Oh, awesome! Thanks for the fast work on this. If there are no objections, > I'll apply this in front of the PGO series and put it in -next. > That works for me! Thanks, Nick and Kees! -bw