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 E3CC8C47073 for ; Sun, 7 Jan 2024 04:09:13 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yvsksenUe24R8jtXavfMQhiS3B7M5MYHnSQDtUMUNII=; b=MlaQVbsYOqWxw1 iBzXXDWQJI/LZw9Adkq+vsh9bi3SnNzcB7Z+nE8ZJ7iQCdeqzhf1H+wqBApPQs3CiHwJgiJEOgN9c CfgxQb8L9D4LZ2LS4lW3A6fEvUhZGy5V8AYj6wtb9S9UScV79tzIE7dxrKD9n0BbvIO6hWlzb3px5 jFz13zbZdVZ7wvPEUVofKeL/XZK7pfM1e5j/+YR8HzlEttfbD8uhl+DNIxs4raOvMjGW37Qtu86/J eJ4yQHnL1m6NfNLbCDVn12TwYBJOiVw2qhED/4hGh1eBit9UhfIxOgjNqQVQ2rPvieUs9Aom8DWi1 puLb/AlMxPAiM0vUEUTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMKSg-002KZP-14; Sun, 07 Jan 2024 04:08:34 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rMKSd-002KYn-2b for linux-arm-kernel@lists.infradead.org; Sun, 07 Jan 2024 04:08:33 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-36074b286d8so6118935ab.1 for ; Sat, 06 Jan 2024 20:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704600510; x=1705205310; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zAfQ0Squgs7f3g84+NKtUBvnoJ6EFjDYOhaKBhJp0Gs=; b=c4G5piiDNuq6/cp1YfQvES5zdcXtgbqzQa+sTJ5YQbpAOC1AD86yYP7Tm9N4GJ0c50 vTogGK1EbpfcZmH5LAzQfpoRVX2caFNzBiZXMJ9P8ejg04DnAsVIrH4HA/ghe3axQ946 Rt5JdS8QRHA9eM6sUjCw93wbMsqbOOCtHZlC6oK749ahcxlxA4A413+YLmkvXy9kb1ci hPSxM5fVURn57cLiziTkQ39+zTKhS6eCGuSO1f0fTOBNjqv+YulRg6XCjLRQW7yNH7Kc PVQI6kV1Fy7ge03wq6EFg786paXajgFgUSdO1KgwNHBKzPuKOXsWtf1cv7pcm80nq1/T Nw/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704600510; x=1705205310; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zAfQ0Squgs7f3g84+NKtUBvnoJ6EFjDYOhaKBhJp0Gs=; b=hcIth66PQgttCz1pocQkGmApTiGzB8cUOQkF0yCcYzVfzqd3S5X0KDsq2p++3SJEO4 ZozK3fsB0+MySudqHWb4lVaAFJbpUH2pH7rTyQb+qOsfhHWMbGbSdq8k8BMXaiNo+jJj GSfP55bIj04XCpkmqYcUYot3fzhKje8l4Ni891EgDqOoPgJTiEu4zZreTE2/rqjX1J0/ vqkcKr51k/xIvQBXPYCE4H6OsQZkNEa96veCIzJsFXLQ2Mdlbw0bEsRcUqC3YNVc4WVp UcsP+00UxvcbQYn1TkOnaH/E2eMfFATayEg+hSUU4wl4/DifcfHEG//vc8Oulx2THV21 H9OA== X-Gm-Message-State: AOJu0Yy/cZyILgD76i6Ks811c631It5HWyUG8NVajj3TNRK+w1UKjQ4d MyGBkakoOhwITUeJqgcHfm23oUAY5UdlKg== X-Google-Smtp-Source: AGHT+IGs1yr94hdjI881c3pc1CaOyhKTwKJ1sG25C8SPR3cFLbyYOhNQqq5Wdmkfr+lUJorTxZIGFg== X-Received: by 2002:a05:6e02:180d:b0:360:24:dabe with SMTP id a13-20020a056e02180d00b003600024dabemr4097995ilv.48.1704600510277; Sat, 06 Jan 2024 20:08:30 -0800 (PST) Received: from debian-dev (211-75-219-200.hinet-ip.hinet.net. [211.75.219.200]) by smtp.gmail.com with ESMTPSA id u13-20020a170902e80d00b001d072365b87sm3766623plg.106.2024.01.06.20.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 20:08:29 -0800 (PST) Date: Sun, 7 Jan 2024 12:08:21 +0800 From: Leo Yan To: kan.liang@linux.intel.com 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 Subject: Re: [PATCH V3 0/7] Clean up perf mem Message-ID: <20240107040740.GA888@debian-dev> References: <20231213195154.1085945-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231213195154.1085945-1-kan.liang@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240106_200831_863667_7B69EA52 X-CRM114-Status: GOOD ( 12.42 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel