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 15A7CC433FF for ; Thu, 15 Aug 2019 09:18:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD04D21855 for ; Thu, 15 Aug 2019 09:18:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="393BsZMw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731169AbfHOJSv (ORCPT ); Thu, 15 Aug 2019 05:18:51 -0400 Received: from terminus.zytor.com ([198.137.202.136]:33777 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730029AbfHOJSu (ORCPT ); Thu, 15 Aug 2019 05:18:50 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x7F9Ig4f2270753 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 15 Aug 2019 02:18:43 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x7F9Ig4f2270753 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1565860723; bh=Ti+A5DmLubGWvxE+G1z/lwt3lnWYsZKvzG65MGPjIwY=; h=Date:From:Cc:Reply-To:To:Subject:From; b=393BsZMwOOSwkU8wqdQqHWE6lrKyzIbz/p97776ZEiPInl5vznjy+5ovqiNS4qTJX lWZ8uxbznzgMScfz5cJrc3H/t0B9hzsEUlvKFng7TMQdnhmz78G9s9Pg138aADq8rC k2bCi4OIG2m1xNRYTX12jjBX16IEnT8z0xxSBBTnwKPw76Ssh2+Ud7LWttETcCl+5V Gi1k83l4REyAoeowXpYmpBNlL7Q+6D458QXlwtI7yaqPuKM97BdFu33DgZ2eykuaXY VKM2EF7PFZmZbAiYj34a7+VYvQKyyNYCSZxz4ZxZZ4glDmGJLLSoqXv6pY/TKA1S1F 9sZ9brXQXCX9w== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x7F9IgLR2270750; Thu, 15 Aug 2019 02:18:42 -0700 Date: Thu, 15 Aug 2019 02:18:42 -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: namhyung@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, lclaudio@redhat.com, hpa@zytor.com, adrian.hunter@intel.com, treeze.taeung@gmail.com, acme@redhat.com, jolsa@kernel.org Reply-To: adrian.hunter@intel.com, hpa@zytor.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, lclaudio@redhat.com, mingo@kernel.org, treeze.taeung@gmail.com, jolsa@kernel.org, acme@redhat.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf test vfs_getname: Disable ~/.perfconfig to get default output Git-Commit-ID: 4fe94ce1c6ba678b5f12b94bb9996eea4fc99e85 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: 4fe94ce1c6ba678b5f12b94bb9996eea4fc99e85 Gitweb: https://git.kernel.org/tip/4fe94ce1c6ba678b5f12b94bb9996eea4fc99e85 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 11:37:44 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300 perf test vfs_getname: Disable ~/.perfconfig to get default output To get the expected output we have to ignore whatever changes the user has in its ~/.perfconfig file, so set PERF_CONFIG to /dev/null to achieve that. Before: # egrep 'trace|show_' ~/.perfconfig [trace] show_zeros = yes show_duration = no show_timestamp = no show_arg_names = no show_prefix = yes # echo $PERF_CONFIG # perf test "trace + vfs_getname" 70: Check open filename arg using perf trace + vfs_getname: FAILED! # export PERF_CONFIG=/dev/null # perf test "trace + vfs_getname" 70: Check open filename arg using perf trace + vfs_getname: Ok # After: # egrep 'trace|show_' ~/.perfconfig [trace] show_zeros = yes show_duration = no show_timestamp = no show_arg_names = no show_prefix = yes # echo $PERF_CONFIG # perf test "trace + vfs_getname" 70: Check open filename arg using perf trace + vfs_getname: Ok # 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-3up27pexg5i3exuzqrvt4m8u@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/shell/trace+probe_vfs_getname.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh index 45d269b0157e..11cc2af13f2b 100755 --- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh +++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh @@ -32,6 +32,10 @@ if [ $err -ne 0 ] ; then exit $err fi +# Do not use whatever ~/.perfconfig file, it may change the output +# via trace.{show_timestamp,show_prefix,etc} +export PERF_CONFIG=/dev/null + trace_open_vfs_getname err=$? rm -f ${file}