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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19B45C46CD2 for ; Tue, 9 Jan 2024 14:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OKvrwSl+eM3kBMgJBIyfTxl65p3fblYkmiv4VaKjHnw=; b=DWFdoPGbMWcvcp vH77F79TDy2N4Dgf8B6iRBZnRd/gB3cMZNcYN+QpGZi6PEJHgcYEAoGFZVqK77WksohN74Np8crBh ey41Wq3Y3qDD4LPFhps1YD06p8ecDTalju9mgdGzwOiIex1V0S8q+RNsL2q7/tbVP2r/qsFkYzuOG ng2pZyHCCSQ7mzNsbXDBloLWG/MbAA0slz8VcWGdUB13/Bn/DxKXcD4PbWNyaYI5jzjsV4F9giKAp HtWumehE/C3zVkMFN4U3ySWoGLGts7jCiTlQhQVEGMpCchQOogKrctuHYVo/bDfbXYsKt/F606hQe XPy++udXbcANDTVAGp1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNCg4-008S6t-2k; Tue, 09 Jan 2024 14:02:00 +0000 Received: from mgamail.intel.com ([192.198.163.10]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNCg1-008S3m-23 for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 14:01:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704808918; x=1736344918; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=QRtm/mna3beZbvd3P0MsywkRDxcn22Ksxbb0Rs/W1hw=; b=O1xR4cFwwOgOOivJwWjL9XZsBOeFvb1Du8yoTsncZUpn5gy1bjQn4X3/ hNCENDSJcy2YYO0Of/uS/4oSIUjrBEGz0qI4uj/tCZReqUsDeZpXfZTuG MkTIcnXSeLla8GBAMmEBQJ7QIykEF/btr4eq00lAFksx4vJMlmMq/PiJ+ wo1RNr3AtR0kJlUxo6AAq8tC9Ic88Q2+Q6Nw3g/Yejew6cZDEIPDB2Lqk v+H+QZTsBriH95Gm3Yd3dZu798OSWqOJRty5c5O/e2wJM1jrJDwwsFpHS tDrQKDDO6l8/Y52xXG1T6Y0u1qzHOyOgfHFKd3CJW886Any3veBXEWQ46 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="5570603" X-IronPort-AV: E=Sophos;i="6.04,183,1695711600"; d="scan'208";a="5570603" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 06:01:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,183,1695711600"; d="scan'208";a="23577791" Received: from linux.intel.com ([10.54.29.200]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 06:01:50 -0800 Received: from [10.212.123.48] (unknown [10.212.123.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id B6C84580D28; Tue, 9 Jan 2024 06:01:47 -0800 (PST) Message-ID: <1417fcb1-4d16-481b-b043-acf022de07fd@linux.intel.com> Date: Tue, 9 Jan 2024 09:01:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3 0/7] Clean up perf mem To: Leo Yan Cc: acme@kernel.org, irogers@google.com, peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, john.g.garry@oracle.com, will@kernel.org, james.clark@arm.com, mike.leach@linaro.org, yuhaixin.yhx@linux.alibaba.com, renyu.zj@linux.alibaba.com, tmricht@linux.ibm.com, ravi.bangoria@amd.com, atrajeev@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20231213195154.1085945-1-kan.liang@linux.intel.com> <20240107040740.GA888@debian-dev> Content-Language: en-US From: "Liang, Kan" In-Reply-To: <20240107040740.GA888@debian-dev> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_060157_724091_42C5ED7A X-CRM114-Status: GOOD ( 13.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2024-01-06 11:08 p.m., Leo Yan wrote: > On Wed, Dec 13, 2023 at 11:51:47AM -0800, kan.liang@linux.intel.com wrote: > > [...] > >> Introduce generic functions perf_mem_events__ptr(), >> perf_mem_events__name() ,and is_mem_loads_aux_event() to replace the >> ARCH specific ones. >> Simplify the perf_mem_event__supported(). >> >> Only keeps the ARCH-specific perf_mem_events array in the corresponding >> mem-events.c for each ARCH. >> >> There is no functional change. >> >> The patch set touches almost all the ARCHs, Intel, AMD, ARM, Power and >> etc. But I can only test it on two Intel platforms. >> Please give it try, if you have machines with other ARCHs. >> >> Here are the test results: >> Intel hybrid machine: >> >> $perf mem record -e list >> ldlat-loads : available >> ldlat-stores : available >> >> $perf mem record -e ldlat-loads -v --ldlat 50 >> calling: record -e cpu_atom/mem-loads,ldlat=50/P -e cpu_core/mem-loads,ldlat=50/P >> >> $perf mem record -v >> calling: record -e cpu_atom/mem-loads,ldlat=30/P -e cpu_atom/mem-stores/P -e cpu_core/mem-loads,ldlat=30/P -e cpu_core/mem-stores/P >> >> $perf mem record -t store -v >> calling: record -e cpu_atom/mem-stores/P -e cpu_core/mem-stores/P >> >> >> Intel SPR: >> $perf mem record -e list >> ldlat-loads : available >> ldlat-stores : available >> >> $perf mem record -e ldlat-loads -v --ldlat 50 >> calling: record -e {cpu/mem-loads-aux/,cpu/mem-loads,ldlat=50/}:P >> >> $perf mem record -v >> calling: record -e {cpu/mem-loads-aux/,cpu/mem-loads,ldlat=30/}:P -e cpu/mem-stores/P >> >> $perf mem record -t store -v >> calling: record -e cpu/mem-stores/P > > After applying this series, below tests pass with Arm SPE: > > # ./perf c2c record -- /home/leoy/false_sharing.exe 2 > # ./perf c2c report > > # ./perf mem record -e list > # ./perf mem record -e spe-load -v --ldlat 50 > # ./perf mem record -v > # ./perf mem report > # ./perf mem record -t store -v > # ./perf mem report > > Tested-by: Leo Yan > Thanks Leo. Kan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel