Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3751672pxj; Tue, 1 Jun 2021 12:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxVNYW3Q+EIqIN83JAfGhAYQ0FGE0q0xAZYUCH8IbkiFfP2Vu/U/zppPs3hjy/SzBgBLyH X-Received: by 2002:a17:906:d97:: with SMTP id m23mr21328973eji.392.1622575010690; Tue, 01 Jun 2021 12:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622575010; cv=none; d=google.com; s=arc-20160816; b=L1sVf3/J9gAyql13AbqYnfBX5l3fBI7omm1c/IEyv8EssPNTrlnNXim2ZgUeCTSL48 03oq/9vItfmD1ye/Uwj+9aATtfi/SGZcKm/Dqpl4gJIE3MnejXFGVZluynj7v/YC/mZT /ns5XtNZmZJrMNFEqMNv3kA8I8CqlGMgK5h7jrINqefz0uDcD9ntNaLypbU0vbLr3sDk N5vjEsbAQ+imD8PRd/CtNjj3iKywe1mbm2mgUwhZE6BUEvAR7iJST3qXqWdEMuI49swr SagEw4RS0f7uQHtskmFQQlmoLmpYZlJziiFuJqXBsnbuX3xzImPSss7WOEnnY8CFS4+X J71Q== 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=F2nIYNp74XkoIbaKwSbgXhOoOC//P+XAXbK1h22Ceac=; b=ZkpInRptyExSy84gF3VSkiv/UAj42G68ab0oS4HCeP8+JHEWySrnRLhc/TttnRj5p5 nV9Ocfj7pIsWaZTkT+D+QBLSmR4okC5zpkmSZl/D3GDsbEB55dAqQZOWpKT+19lR5ikg 6iSd/B9azrmpNJ48RESFAykKDEoM/QSHQaFeCLfPBCemxf+qHJ3fqz1PHScodXYk1ZA7 Y5lEcacOXUQzmD/rUvP0FYMEkkzczzZMtjp5QW/m3+9b62iMFUYuRUZVE6ofvp46kdIo N4B8UnVTIKiGOw6trHK69qGko1uegP8V7WRrsh4HSNwjZ8S5ot4Eexsq1MDRxJQDuxof gh9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lkbfMl1G; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si16607531edo.475.2021.06.01.12.16.27; Tue, 01 Jun 2021 12:16:50 -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=@chromium.org header.s=google header.b=lkbfMl1G; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234692AbhFATPH (ORCPT + 99 others); Tue, 1 Jun 2021 15:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233397AbhFATPF (ORCPT ); Tue, 1 Jun 2021 15:15:05 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3779C061756 for ; Tue, 1 Jun 2021 12:13:23 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id y15so266743pfl.4 for ; Tue, 01 Jun 2021 12:13:23 -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=F2nIYNp74XkoIbaKwSbgXhOoOC//P+XAXbK1h22Ceac=; b=lkbfMl1Gmq+Nf/7ubjo1OqC7uT9K9Mr6mhUY2FEZSmrJPHAB0auG9k9uCBtbvFW7E+ f0Q4vvjVo8XzLVCG/jM1Z4nwD1CiBbxVqshZ7h96EbGppBXf8gK9pANmLngrz86A9IVM wK3esYJdGgKwBvpr7YAwjV41Fe0DLQWWzprys= 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=F2nIYNp74XkoIbaKwSbgXhOoOC//P+XAXbK1h22Ceac=; b=fgybSmNTXKq9YcIKy4C5rDUFnF1gmAl2ZqZygkf+siBBVMwew8dN5RHMWGy8CxQdLc QNGLOA5uFH9X1vAgvdH1ShikE893jND3iE8x3m+9R49kzPvVtURHeiqyisG3tiobeELN LJSLV95WHSI7lCwzYSAGtD27cgAOTu2f7koJzgCEePfwwwvmcb0XYMKsZHNaQzIxt2Gq h/5k6ufgFH5UpJOm+nnR879mpZxeMFQ8c01IqQy6wC3tbMcj8uDvv1IQgDzBCEGd31Ju aoRrnLkQnCS6SXoYuQaEE7wdiG18NFbtqwZALxMSWUm9LGwBLaMlAaSSkwswi4Qbd7d4 3FLQ== X-Gm-Message-State: AOAM530NZakYmeuQ9/gcmBSt1aT2YeG0LGk8JWpCFO57JZJgtOw0wCBt 10So8WeDoJEmPm1/5Czx/L8rKA== X-Received: by 2002:a05:6a00:14cb:b029:2be:1466:5a28 with SMTP id w11-20020a056a0014cbb02902be14665a28mr23125434pfu.55.1622574803092; Tue, 01 Jun 2021 12:13:23 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u18sm5029856pfl.9.2021.06.01.12.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 12:13:22 -0700 (PDT) Date: Tue, 1 Jun 2021 12:13:21 -0700 From: Kees Cook To: Bill Wendling Cc: Nathan Chancellor , Jonathan Corbet , Masahiro Yamada , Linux Doc Mailing List , LKML , Linux Kbuild mailing list , clang-built-linux , Andrew Morton , Nick Desaulniers , Jarmo Tiitto Subject: Re: [PATCH] pgo: rename the raw profile file to vmlinux.profraw Message-ID: <202106011210.B5A8881214@keescook> References: <20210531202044.426578-1-morbo@google.com> 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 Tue, Jun 01, 2021 at 01:24:39AM -0700, 'Bill Wendling' via Clang Built Linux wrote: > On Mon, May 31, 2021 at 1:29 PM Nathan Chancellor wrote: > > > > On 5/31/2021 1:20 PM, Bill Wendling wrote: > > > Future PGO features may create other files in /sys/kernel/debug/pgo. So > > > rename the kernel's raw profile data file to "vmlinux.profraw" to make > > > which part of the kernel the file is for more explicit. > > > > > > Note that future files in /sys/kernel/debug/pgo should follow a similar > > > naming convention. > > > > > > Signed-off-by: Bill Wendling > > > > Guess this clears up my confusion around the module patches :) > > > To clarify, Jarmo did those patches on his own. I just wanted to > clarify the naming convention. :-) Is the expectation that there would be 1 file per module in /sys/kernel/debug/pgo/ after the modules patch? > > -bw > > > Reviewed-by: Nathan Chancellor > > > > > --- > > > Documentation/dev-tools/pgo.rst | 6 +++--- > > > kernel/pgo/Kconfig | 7 ++++--- > > > kernel/pgo/fs.c | 2 +- > > > 3 files changed, 8 insertions(+), 7 deletions(-) > > > > > > diff --git a/Documentation/dev-tools/pgo.rst b/Documentation/dev-tools/pgo.rst > > > index b7f11d8405b7..0200449c4843 100644 > > > --- a/Documentation/dev-tools/pgo.rst > > > +++ b/Documentation/dev-tools/pgo.rst > > > @@ -76,7 +76,7 @@ The PGO kernel support creates the following files in debugfs: > > > ``/sys/kernel/debug/pgo/reset`` > > > Global reset file: resets all coverage data to zero when written to. > > > > > > -``/sys/kernel/debug/profraw`` > > > +``/sys/kernel/debug/pgo/vmlinux.profraw`` > > > The raw PGO data that must be processed with ``llvm_profdata``. > > > > > > > > > @@ -108,7 +108,7 @@ using the result to optimize the kernel: > > > > > > .. code-block:: sh > > > > > > - $ cp -a /sys/kernel/debug/pgo/profraw /tmp/vmlinux.profraw > > > + $ cp -a /sys/kernel/debug/pgo/vmlinux.profraw /tmp/vmlinux.profraw And if so, these instructions would change (in the future) to something like: $ cp -a /sys/kernel/debug/pgo/*.profraw /tmp/prof/ ? -Kees -- Kees Cook