Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1096937lqj; Mon, 3 Jun 2024 10:01:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMvbKD6JJfrwVepMeZwM1kx3bF2HxK0cqtiYQ1c50AT8o3lveUPvVpFJE9agK1BOG+4iH5PgUucm4omv3gbhkh82JGKbJnT0Zg9Zr3DQ== X-Google-Smtp-Source: AGHT+IGqIrxKgS8QfLYKhdSc+k1S8hqjGfhJs0ajcT92NO6k+Jb87X75qMGzCKIgsTXA8G/8l+Te X-Received: by 2002:a17:902:f68b:b0:1f6:87f:1156 with SMTP id d9443c01a7336-1f692f7f9a4mr3517315ad.0.1717434069825; Mon, 03 Jun 2024 10:01:09 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f63233d35esi69605205ad.94.2024.06.03.10.01.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199473-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A77EmfVY; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-199473-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0764928B80E for ; Mon, 3 Jun 2024 17:01:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7767B13667F; Mon, 3 Jun 2024 17:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A77EmfVY" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89F112562E; Mon, 3 Jun 2024 17:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717434060; cv=fail; b=lEF5bqSDvdklC3caYaTjVlYYtXkqD+ALnPiLXFyq5z1YNDk4SJCD7LteXXSd1J7TAczFtBqWtK7FBqXzkSz64mxmbXqAEj9jteB3a1pnpdUCfaVSkgFU14kXqjY6e+EqWNERa0BINiOKMi5dZXygCV9cGcxcu6L3KmvWvk3jccY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717434060; c=relaxed/simple; bh=neDmK5PBth66/CsoAulp0A261qUNqQRuIAgNoTWuZvQ=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=amwcqsxWXjy/u7DFTLUCQNyXmGss/LdMygApJY6Q43M9gMOlU7N07xvEHgIDU/r1270Lbgh9nY7DRVeNU6PJW+BOzZvDvUqZWbMgxYymXFOea33kRQwiRcCbRyK6i5DDSfxMLgoQvF7pwwpXjVYhoLwv60+jOdHLA7HqMpmMMAs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=A77EmfVY; arc=fail smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717434059; x=1748970059; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=neDmK5PBth66/CsoAulp0A261qUNqQRuIAgNoTWuZvQ=; b=A77EmfVYFTEvINe3ozvQ5dNU7Ps2IV0VKRXIhlC5zK2u4TEVumOw3juR ff0SribfL0s11L7Wt3OW5FxBIZ7LFk01knlohm+LDpkw3T6nkeTM+rWq7 5HmTqu9CMwBqkjCR23ck7XwD3sJ88MSnpBVVMtkeexwCuk/5i6znh319B ppr61CCpCpfsUkXceiKXuUIStxiXI6yAffxUTeR1H4y/JuY8ctzhtY/3Y 1BVqtmtFUPdbJ6knjJUDODc7rMOs8QVXxgUlzUamdrKEJWXZds1KQOwi3 0C3BuuJ5adheGFSPqUmv0SzFTFBUlJ8/32Ze+MJlpq6mDh5soFAh80EJM w==; X-CSE-ConnectionGUID: rDvxwj93R9KCzYrYTMWnmg== X-CSE-MsgGUID: Ua+IiRJYSpi/IzbMFEEeBA== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="24513938" X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="24513938" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 10:00:58 -0700 X-CSE-ConnectionGUID: BH4NloCFT0uc9M6nJp1Otw== X-CSE-MsgGUID: cRQcdWShT5+RwRlxcjUVrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="68096694" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 03 Jun 2024 10:00:57 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 3 Jun 2024 10:00:57 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 3 Jun 2024 10:00:57 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 3 Jun 2024 10:00:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cN2AA33I7BTxUhcwC7rcelIaK8ef1pdN7KAVMtJiiYYcsfQg4/rITJYe2S2NT3hyVv9WSim4vrCsBV8EUj5jOjhOlifdPNoocpxGgMOUql2Yt9HtHTeRMeGMpQF/425qft7WR+3wMzAczbUJMxa6CD4kBilAMmL6HB8X3cIwSUYt2vGyJUXmsCKgxOiab0jy7lECltMr1kOS7LR9ysIspEXDAQ9m09NLPu8XJvXJY2tKGAdTSteuOoY8D+7keW/HuBVPHT9bzngUtSWRaxxF/ZPB+jEtZR/Td7OboyIk8Q23xGBQ9OQB9j8IR9GqXGPvCCjZYAeAnfvBleg+WHxx9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r6qiSexp3fpokdtzanBsep77bLEIHoH0WQRdrfCwHWU=; b=R37eLLOna3TgZmLbdj9y4ulUduP5GmKO6I2y9BTkd5M3B4NbElczp1XARUadCG/SmxiVFL6PUXx4A5TjUImlglb6c/ZOIp7I1bvsAGg3oQqRDA5t9e4HGWtnB/DexPQ+dCx1kvRweProppKCVDUDsN8qwDi5cCBj4WMFjXU3Al2YJEfJnVqClWtMjy1AL7prWf4QNBveRAz2Z2/XkMBLBns4bbNFq7yL16tKXRy7TG095fBwlZ9xgPfnxvnUXV4VTvg5tnANW90ULX8YuW52ywaMLeoDnPMs0K1DJyB6FMMMvntZCJ2NafFuMwoKh8EovakGia89hBWUUZzetsdmWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CO6PR11MB5635.namprd11.prod.outlook.com (2603:10b6:5:35f::14) by CY8PR11MB6866.namprd11.prod.outlook.com (2603:10b6:930:5e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Mon, 3 Jun 2024 17:00:54 +0000 Received: from CO6PR11MB5635.namprd11.prod.outlook.com ([fe80::8cfa:1a7f:d9ee:42cf]) by CO6PR11MB5635.namprd11.prod.outlook.com ([fe80::8cfa:1a7f:d9ee:42cf%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 17:00:54 +0000 From: "Wang, Weilin" To: Namhyung Kim CC: "namhyung@google.com" , Namhyung Kim , Ian Rogers , "Arnaldo Carvalho de Melo" , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , "Hunter, Adrian" , Kan Liang , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Taylor, Perry" , "Alt, Samantha" , "Biggers, Caleb" Subject: RE: [RFC PATCH v10 8/8] perf test: Add test for Intel TPEBS counting mode Thread-Topic: [RFC PATCH v10 8/8] perf test: Add test for Intel TPEBS counting mode Thread-Index: AQHasZOMbuNn7cwVHkStwuT5Ba6t6rG1I8WAgAEoKXA= Date: Mon, 3 Jun 2024 17:00:54 +0000 Message-ID: References: <20240529064327.4080674-9-weilin.wang@intel.com> <20240602232041.1730256-1-namhyung@google.com> In-Reply-To: <20240602232041.1730256-1-namhyung@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR11MB5635:EE_|CY8PR11MB6866:EE_ x-ms-office365-filtering-correlation-id: ebc02e76-49fa-4bbd-52f5-08dc83eebb52 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?mXmYOqhQMV7p3tpgaHw0HntMfOOFaoZIu/krXvV+lShekBuyJ2GSJD7BJSRl?= =?us-ascii?Q?YdXN7B2A+fm5sPCkuU4c8CreVlKKUmlUMJCJQ59BexuG3b0f/pF7UcnrcvOX?= =?us-ascii?Q?l0NBzMolVsG1AVrll5xC4ZK8/yJF5k4crAhqgaKYXdfG8I5OtOJsmMiOaDoF?= =?us-ascii?Q?T5ftDrC18iUS4xpSuqZdVwxbuVc2IcwCHzYGQMZVS2H0FV4BrRN7DDuWy5K4?= =?us-ascii?Q?KniCQfwZpJY35EAEjA7Gy3K5tNVQpXwB1Jslq2AN+x0i/g1h/3lFpw1QIYzK?= =?us-ascii?Q?h00mJI9OQ1hglWwFCetVzjs67CsgX7mSeLkPi2jTo2cx2gKq7WSbA9axkErq?= =?us-ascii?Q?bX+Tbi2ZNXZzFzC+7xpZIfHUtBVEw4SxFHiYeITKXXmR9dd3qzCll+pIxPKJ?= =?us-asc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mr2WQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5635.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yYvJ+RIP9Fk2DcEar6IPhOJ61Qc5zJ7PoRlLj/3y2ou+lo9wNlE7U+MBK0kD?= =?us-ascii?Q?dDB9dxmQtaYJGi5VsEfQxMSYU+04YlTgu2S0q7BFkCh9/KZQvLfal4AHYdTw?= =?us-ascii?Q?M3Z5R73vp0pPFwWF8UOOSOynlgV3NUp/WMmn8Lf7Mq5V4tM6vDRICNzxIKX2?= =?us-ascii?Q?/zvTVvgyvqPMxQIrqt+VO4ipW90mehEZwG0BqEdQJa6/tT8bX4PwrES5HGte?= =?us-ascii?Q?oVfPFHtoKEk80pzzVnpaMpdcr0XzHx6LlBpLUSeLzdd/2Aq4TsxrhDqGRA0L?= =?us-ascii?Q?9JwcvkOGmLdFGq5lz3l7kQYaG1t9XtcKG8tITJYB6bB80LrIWK1O6zd0VnLl?= =?us-ascii?Q?9/rtqSKvBLI8gzC9hadI/58b7DKE6zPlKbQS4qZk2QQDeD5bwzumDemoxC/h?= =?us-ascii?Q?NdbhwTzyeztfJpbmPDgMynHFdEaGKj4GzZ0/ZYGaQ0Lk7k2w65EvwlBuNqy4?= =?us-ascii?Q?/yQqhyvH7zhc+5l4XVDUI1M9pEZBANeNqcNmLaNrEZ9lX6Hkz7Qi3366MvwK?= =?us-ascii?Q?U5PNr0oZxD1wwNs9ZFuWROiKLBHWtqmqfQ/Zmo68T+WWR5pGgc5LvBvcZVD3?= =?us-ascii?Q?vmQWVZwPXdXCuBQlzapYTdTTN2dKjYvPsBqivj1JGekqht4EmFDE1yjS8O63?= =?us-ascii?Q?Q/SrHjJ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mZ4j94c5bs88dC?= =?us-ascii?Q?DoEOgZv/JYoI0m3us1TB7Uxbqjaesj4qwMwqY0rd?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5635.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebc02e76-49fa-4bbd-52f5-08dc83eebb52 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 17:00:54.7388 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Jiu5L0sKU9hhhQwwSTFqHg/r7jzy9W8Ww7MSxVo8i20HdpylPC3YIkFBIOuYrKs4YhavuWNDIk53ljOdb/+NiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6866 X-OriginatorOrg: intel.com > -----Original Message----- > From: Namhyung Kim > Sent: Sunday, June 2, 2024 4:21 PM > To: Wang, Weilin > Cc: namhyung@google.com; Namhyung Kim ; Ian > Rogers ; Arnaldo Carvalho de Melo > ; Peter Zijlstra ; Ingo Molnar > ; Alexander Shishkin > ; Jiri Olsa ; Hunte= r, > Adrian ; Kan Liang ; > linux-perf-users@vger.kernel.org; linux-kernel@vger.kernel.org; Taylor, P= erry > ; Alt, Samantha ; Biggers= , > Caleb > Subject: Re: [RFC PATCH v10 8/8] perf test: Add test for Intel TPEBS coun= ting > mode >=20 > From: namhyung@google.com >=20 > On Wed, 29 May 2024 02:43:24 -0400 weilin.wang@intel.com wrote: >=20 > > From: Weilin Wang > > > > Intel TPEBS sampling mode is supported through perf record. The countin= g > mode > > code uses perf record to capture retire_latency value and use it in met= ric > > calculation. This test checks the counting mode code. > > > > Signed-off-by: Weilin Wang > > --- > > .../perf/tests/shell/test_stat_intel_tpebs.sh | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > create mode 100755 tools/perf/tests/shell/test_stat_intel_tpebs.sh > > > > diff --git a/tools/perf/tests/shell/test_stat_intel_tpebs.sh > b/tools/perf/tests/shell/test_stat_intel_tpebs.sh > > new file mode 100755 > > index 000000000000..43f75055fee4 > > --- /dev/null > > +++ b/tools/perf/tests/shell/test_stat_intel_tpebs.sh > > @@ -0,0 +1,19 @@ > > +#!/bin/bash > > +# test Intel TPEBS counting mode > > +# SPDX-License-Identifier: GPL-2.0 > > + > > +set e > > +err=3D0 > > + > > +# Use this event for testing because it should exist in all platforms > > +e=3Dcache-misses:R > > + > > +# Without this cmd option, default value or zero is returned > > +echo "Testing without --enable-tpebs-recording" > > +result=3D$(perf stat -e "$e" true 2>&1) > > +[[ "$result" =3D~ "$e" ]] || exit 1 > > + > > +# In platforms that do not support TPEBS, it should execute without er= ror. > > +echo "Testing with --enable-tpebs-recording" > > +result=3D$(perf stat -e "$e" --enable-tpebs-recording -a sleep 0.01 2>= &1) > > +[[ "$result" =3D~ "perf record" && "$result" =3D~ "$e" ]] || exit 1 >=20 > I got these build errors: >=20 Sorry about the error! I will fix it.=20 Thanks, Weilin > Thanks, > Namhyung >=20 > --- >=20 > TEST tests/shell/test_stat_intel_tpebs.sh.shellcheck_log >=20 > In tests/shell/test_stat_intel_tpebs.sh line 6: > err=3D0 > ^-^ SC2034 (warning): err appears unused. Verify use (or export if used > externally). >=20 >=20 > In tests/shell/test_stat_intel_tpebs.sh line 14: > [[ "$result" =3D~ "$e" ]] || exit 1 > ^--^ SC2076 (warning): Remove quotes from right-hand side= of =3D~ to > match as a regex rather than literally. >=20 >=20 > In tests/shell/test_stat_intel_tpebs.sh line 19: > [[ "$result" =3D~ "perf record" && "$result" =3D~ "$e" ]] || exit 1 > ^--^ SC2076 (warning): Remo= ve quotes from right- > hand side of =3D~ to match as a regex rather than literally. >=20 > For more information: > https://www.shellcheck.net/wiki/SC2034 -- err appears unused. Verify us= e > (o... > https://www.shellcheck.net/wiki/SC2076 -- Remove quotes from right-hand > sid... > make[4]: *** [tests/Build:91: > tests/shell/test_stat_intel_tpebs.sh.shellcheck_log] Error 1 >=20