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=-11.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 D6870C433FF for ; Thu, 15 Aug 2019 09:18:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A589C21855 for ; Thu, 15 Aug 2019 09:18:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="yBpEP1c4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731135AbfHOJSE (ORCPT ); Thu, 15 Aug 2019 05:18:04 -0400 Received: from terminus.zytor.com ([198.137.202.136]:54911 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729668AbfHOJSE (ORCPT ); Thu, 15 Aug 2019 05:18:04 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x7F9HtsB2270463 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 15 Aug 2019 02:17:55 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x7F9HtsB2270463 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1565860676; bh=ukVRDUqoQeOP27TAvHo39H8XO24WHNna2kFHIo4hcWY=; h=Date:From:Cc:Reply-To:To:Subject:From; b=yBpEP1c4NkKM93jIvSKT6ejof15ogmgV/PLR3PGbbsV2ncaqZvucIt2LW2c8ue4O1 G136tL72xb3j5aVKWP6pAjrxgyldZs9wSkgpNzIed47UX6JcfRinASEiwTiv3KSBDc H8ZkE/PtXz2ojDoEcXLQkRXm+CfzB7Ww243kP0b7HAnTalncVmm0khR56VHatyJ9Lu ZE/rLwvr0r0sPHz/4xhYasQIjWwzca/Ee53KbUb+iTaf+5XSH1vBecxiB40YuU13zS e/+gR3+1MQKtIlAYGd7JAv7YcCIwVvqIUSxwvHhuZqMbL5cdlc8aWyf93NBpPWmY2a pC6mkwlgbziIQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x7F9HsEs2270457; Thu, 15 Aug 2019 02:17:54 -0700 Date: Thu, 15 Aug 2019 02:17:54 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: lclaudio@redhat.com, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, mingo@kernel.org, hpa@zytor.com, treeze.taeung@gmail.com, namhyung@kernel.org, acme@redhat.com, jolsa@kernel.org, tglx@linutronix.de Reply-To: lclaudio@redhat.com, linux-kernel@vger.kernel.org, mingo@kernel.org, adrian.hunter@intel.com, acme@redhat.com, jolsa@kernel.org, tglx@linutronix.de, hpa@zytor.com, namhyung@kernel.org, treeze.taeung@gmail.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf config: Document the PERF_CONFIG environment variable Git-Commit-ID: 5de9e5fda05b580c036e1fec6e2d8bf78eb2ac9d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 5de9e5fda05b580c036e1fec6e2d8bf78eb2ac9d Gitweb: https://git.kernel.org/tip/5de9e5fda05b580c036e1fec6e2d8bf78eb2ac9d Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 11:30:37 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300 perf config: Document the PERF_CONFIG environment variable There was a provision for setting this variable, but not the getenv("PERF_CONFIG") call to set it, as this was fixed in the previous cset, document that it can be used to ask for using an alternative .perfconfig file or to disable reading whatever file exists in the system or home directory, i.e. using: export PERF_CONFIG=/dev/null Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Cc: Taeung Song Link: https://lkml.kernel.org/n/tip-0u4o967hsk7j0o50zp9ctn89@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-config.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt index e4aa268d2e38..c599623a1f3d 100644 --- a/tools/perf/Documentation/perf-config.txt +++ b/tools/perf/Documentation/perf-config.txt @@ -40,6 +40,10 @@ The '$HOME/.perfconfig' file is used to store a per-user configuration. The file '$(sysconfdir)/perfconfig' can be used to store a system-wide default configuration. +One an disable reading config files by setting the PERF_CONFIG environment +variable to /dev/null, or provide an alternate config file by setting that +variable. + When reading or writing, the values are read from the system and user configuration files by default, and options '--system' and '--user' can be used to tell the command to read from or write to only that location.