Message ID | 20221014170905.64069-4-adrian.hunter@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp290599wrs; Fri, 14 Oct 2022 10:12:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+kVmK8XKRPs1MKoXZGom2T9VTAH86SRqH9d9mwkYIdiE4Ay1/TGeZ8konZQeRS03Cggo7 X-Received: by 2002:a17:907:724b:b0:782:f2bb:24d3 with SMTP id ds11-20020a170907724b00b00782f2bb24d3mr4119885ejc.555.1665767545255; Fri, 14 Oct 2022 10:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665767545; cv=none; d=google.com; s=arc-20160816; b=feGWRZCyt8ZOHcVpCmtJ+4uK10ZAkjJkYgkGH7Qs283o3iOG/QA3W/GoDRqjkhjy8C B5/1J1mSgsvG6tEG4dum3D1bn3O6BZ1drFXi/pjNXritXlehFn4ku7fTUfj5AySt8Iay hI7eSgNxImYYNaKNgne8c/8pLtV7ks5JQQPuunpzVwmqLUsy4UkDPePNqc7li/S3cl63 YTUAh+ScWjAYnn+AZm3zLVs5gTerGOfnJEEshKXhGWbdeANHou9GMZd2Uh2Gxhl/JOn1 r/ovHOAbAxl9bCn7Xi69YQR8F/8+NvXEsxsmI84eYYSwgVzfybmE5VHiUvo8ODvVuhRb jv+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FuTs6shg9oNWzsKhvVbIlo+0kmXWraXUzeTkFpKkxMU=; b=YAjnkC8U6+bB2Aab+jDIER7G4Dph/u6AuwR0nOtPmYmWUdsxOm1BUF/knV25Z+Uh7V lKgGNdtXuaJ1zMgxA2Q0XEGieq+SF9qRpXB/dF0HhLv2c7KpH+ft/N4FlW4Z4rajGjAJ fZ4EGv5Vsi3FqyVVUhY7iXScOeSsnVB8U9662Yvj4KC8hU9jJ/nZaRBw2HPLkE28wn86 7fI9fonoIWuqEiOI3ixufl4CAvDcVt8MWlQYtj/lHqfHvx6DbRU4yyNyu0K7ULZ21dcN 0euPo57K+mI8WBAulIF5B6kiw0YBIw4lm3MntLLO8ul+bJ0ENBAEssd1dvS1CBvhnVpl a61w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HAgrlFex; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay26-20020a056402203a00b00453b9f11b56si2264965edb.261.2022.10.14.10.11.59; Fri, 14 Oct 2022 10:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HAgrlFex; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbiJNRJr (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 13:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231171AbiJNRJl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 13:09:41 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F91A2F7; Fri, 14 Oct 2022 10:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665767375; x=1697303375; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lAd0o379HfkSn8aHAVMv65Af3jNDxH5nPEb/kxUyFvs=; b=HAgrlFexjV9+JjH6PwN5N18gbubqvuUHpdwM9AV13nYnZmS3u0BVjKc+ qMDo/FRR70fmFVxmP0usaNN683K6u03q2HShQ3IWeoaiLCMgmgu5Sj12N 0kb3mHBEAQDz4l+ST9MEQT34hoP4C7+6roiH9SJ/ssrfwXmFO8nc9fTlt U12PKxOiXt8MEC+NcGD3jTV0mTVikkG56hCYFwKDEPUjiV1r5ZpZOjx4G ufvcJO/bPmlbA6Vwg0XJCzKyaoVvKhL/SOE6OqcoCDzkPW1MROjKz6hHS ZH1JgKs+IgMg7hG2RC+J/yu2+LAsy92DZrfgsFB72j97ZjqvtWhtMiwhS g==; X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="303041981" X-IronPort-AV: E=Sophos;i="5.95,184,1661842800"; d="scan'208";a="303041981" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 10:09:34 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="696376948" X-IronPort-AV: E=Sophos;i="5.95,184,1661842800"; d="scan'208";a="696376948" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.43.79]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 10:09:32 -0700 From: Adrian Hunter <adrian.hunter@intel.com> To: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 3/7] perf test: test_intel_pt.sh: Print a message when skipping kernel tracing Date: Fri, 14 Oct 2022 20:09:01 +0300 Message-Id: <20221014170905.64069-4-adrian.hunter@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014170905.64069-1-adrian.hunter@intel.com> References: <20221014170905.64069-1-adrian.hunter@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746683869577751144?= X-GMAIL-MSGID: =?utf-8?q?1746683869577751144?= |
Series |
perf intel-pt: jitdump fix and test
|
|
Commit Message
Adrian Hunter
Oct. 14, 2022, 5:09 p.m. UTC
Messages display with the perf test -v option. Add a message to show when
skipping a test because the user cannot do kernel tracing.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
tools/perf/tests/shell/test_intel_pt.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/tools/perf/tests/shell/test_intel_pt.sh b/tools/perf/tests/shell/test_intel_pt.sh index 334836f92bdc..9c746ff1c4d2 100755 --- a/tools/perf/tests/shell/test_intel_pt.sh +++ b/tools/perf/tests/shell/test_intel_pt.sh @@ -117,7 +117,14 @@ test_system_wide_side_band() can_kernel() { - perf_record_no_decode -o "${tmpfile}" -e dummy:k true >/dev/null 2>&1 || return 2 + if [ -z "${can_kernel_trace}" ] ; then + can_kernel_trace=0 + perf_record_no_decode -o "${tmpfile}" -e dummy:k true >/dev/null 2>&1 && can_kernel_trace=1 + fi + if [ ${can_kernel_trace} -eq 0 ] ; then + echo "SKIP: no kernel tracing" + return 2 + fi return 0 }