Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3516032rwb; Fri, 30 Sep 2022 04:53:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OBjh6xI+kLroXxu2j433JicM2niqWOKfIr7/w9lK0mYVbZcGfCYw0nZww/F/+7dcx21DG X-Received: by 2002:a17:907:7d8d:b0:781:fd6b:4545 with SMTP id oz13-20020a1709077d8d00b00781fd6b4545mr6285251ejc.117.1664538785327; Fri, 30 Sep 2022 04:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664538785; cv=none; d=google.com; s=arc-20160816; b=mmUgJNySa24burIHibvElk5WV79bGI6MQbD5xuRhutfnYk+AYi8RS8ctIzSZCj8FNt ubM98vPqPoR00HxDoj4JPBrwmFFT5FnP2AwXmQzYxklPlyBBf/zLH1vwyfTyakqLrcY3 BBjeYVBY5+wjIATQkMnL6AhFFW6VnpuI7hZPcFtiuJK4amhiO0gSfu+e5zlpiYDL7Z1e KKEchvdjzpxHNxRYfhDsOIeaLzPiB3JT45bDhoFLpLkjLX8JolYQvlgB/PaXvR52BNXJ WjlJBnbUeItAirB4pHGnz6VmqenSzj0X2r8NxeiFem2hqXJYPI/yc/WW7z2xIGHZu+gb 9DkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VNyQp0QgLbiSR4UrkzGerU2xpnU4M2EzOYEYOEcYs8s=; b=z2EwXlUiy++QAaY2BtpCVIioZFYXcUgO+v1hPf79BYC4CauErSce8As2pvvo9I90D9 EMjHtPQZnAkqT7il+C7+2x/wCm58vmJqIwLotFnvLnehTCHSmpg+3oDay4jmc6M1Un0W oWL6iRKkiZpG32uXbi6Rt7cAdxwn1BKVEnmuhd/2WOIMVA4fgN1eccMRLD8TN/WypBsU q2uRWMzW0L7U7phEpjErV8y+8zuiPl/JUzw4oCFSwPAH+6AvRlVpBzSwI2GJJMpjIp5E t3Mtu7rKE48Qkx8mNOpgpP/1FKYhjDHWmNCGVlLDz6taC/revPXiwD98AFA/StwOKWUo jocA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OtJvqi03; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a50d789000000b0045853b3a802si1851072edi.605.2022.09.30.04.52.38; Fri, 30 Sep 2022 04:53:05 -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=@linaro.org header.s=google header.b=OtJvqi03; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231674AbiI3Lnz (ORCPT + 99 others); Fri, 30 Sep 2022 07:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231810AbiI3Lne (ORCPT ); Fri, 30 Sep 2022 07:43:34 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C102012DEF6 for ; Fri, 30 Sep 2022 04:36:46 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d24so3750207pls.4 for ; Fri, 30 Sep 2022 04:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=VNyQp0QgLbiSR4UrkzGerU2xpnU4M2EzOYEYOEcYs8s=; b=OtJvqi03XP36gQpvxkIx//yPUbAaiN0yMbshB6jRXuNdkXyWri8UbdDtq4VC9LKaYS RVcS50+Lxh9L13rcjGup3srP1FpTcoHUH1PJa4bEhe+RFZ0HRj385delRxzbx829yCF7 mfZmpNBXodwWiAPDYfmXsT8FqEaHsxAJxGCOS8iujOfFW30pqcUCTCiBW8hTuLXrq0EO 8AtJzioCp9Eea/JZA51P/Xf3nqfFupMoTB4QguYZWsmOAOmYKS9N3I1w6Uy+Olog7pbE Ma7E72tXsZ929LHELk0nijPwlQv7b5gzjR/EWObVUA8BYcpCy9KvIEuxoGABnH/lHBvh Glvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=VNyQp0QgLbiSR4UrkzGerU2xpnU4M2EzOYEYOEcYs8s=; b=QjOzjggaRoC3qU+EM591AGYCdLdh16C3AU3yH5HzNR84x0DKdcwiPzkhMIJEh+TtMH qcyliq3BQxR+s2zS+XSNC8AcoIvq4eVOvSC7Io0LIFO+Zuq7nSVKePHFUFfPIutEDJRc LpLTEJBz2mjBkARcIn5RT9v0H9F/XRuxRYIujv6T0yQj7rTBeC6S3cgWgNvsloJwg+9S rBZZkGBmSswiJGsOrkoH4c8mWfNK3eRkLc4YlNZSjYeZCtzmPKx1T8s5f2jBYCQpruR7 TC8e0/ZMLszQGKzq5Qu6eNFSW9w9bYpVNshPyomqHDCf137HNGw3hoyVRx2CB4fXmIaj 5rAQ== X-Gm-Message-State: ACrzQf0Tt/+DVz8nT0KlAq177d4hsptGd0yBj9dwzsPAnakQ4Eoc+3Bo IqXPUmY3WmDlhV86sg29pB6PUw== X-Received: by 2002:a17:90b:4b84:b0:202:ec40:8643 with SMTP id lr4-20020a17090b4b8400b00202ec408643mr21660500pjb.86.1664537805616; Fri, 30 Sep 2022 04:36:45 -0700 (PDT) Received: from leoy-yangtze.lan (211-75-219-199.hinet-ip.hinet.net. [211.75.219.199]) by smtp.gmail.com with ESMTPSA id i2-20020a17090332c200b00176c89243fcsm1691369plr.179.2022.09.30.04.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 04:36:45 -0700 (PDT) Date: Fri, 30 Sep 2022 19:36:39 +0800 From: Leo Yan To: Ravi Bangoria Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Ian Rogers Subject: Re: [PATCH v3] perf test: Introduce script for data symbol testing Message-ID: References: <20220924133408.1125903-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ravi, On Fri, Sep 30, 2022 at 12:27:22PM +0530, Ravi Bangoria wrote: > Hi Leo, > > On 24-Sep-22 7:04 PM, Leo Yan wrote: > > This commit introduces a shell script for data symbol testing. > > > > The testing is designed a data structure with 64-byte alignment, it has > > two fields "data1" and "data2", and other fields are reserved. > > > > Using "perf mem" command, we can record and report memory samples for a > > self-contained workload with 1 second duration. If have no any memory > > sample for the data structure "buf1", it reports failure; and by > > checking the offset in structure "buf1", if any memory accessing is not > > for "data1" and "data2" fields, it means wrong data symbol parsing and > > returns failure. > > I'm working on adding support for perf mem/c2c on AMD: > https://lore.kernel.org/lkml/20220928095805.596-1-ravi.bangoria%40amd.com > > And this test fails on AMD because perf mem/c2c internally use IBS pmu > which does not support user/kernel filtering and per-process monitoring. > Would it be possible for you to add below (ugly) hunk to this patch: Sure, the change is fine for me, I will update patch and send out a new version. @Arnaldo, I saw you have merged this patch into the branch: https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/log/?h=tmp.perf/core Could you pick up the new coming patch? Please expect it would be soon. Thanks, Leo