Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1123606rwr; Thu, 27 Apr 2023 12:40:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EuxIVaXEM/SD9ZMppFdYRLaa5n0ATJsPetz8XIXqNxSPEvYZrcRHf+qouM6LjpoRqxUGs X-Received: by 2002:a17:90a:bc8d:b0:247:ad6d:7252 with SMTP id x13-20020a17090abc8d00b00247ad6d7252mr2977032pjr.11.1682624451555; Thu, 27 Apr 2023 12:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682624451; cv=none; d=google.com; s=arc-20160816; b=kglscrYxqOCIND4jN5H0mgcWje/2q2N5D6EHG7dVef0FDlaIgl01VYSHHgclTMCB2A RfZ7Lph3nFwtqoRWI+1j8zgE14UNx3o+Kv4kE8h8bykbG8Dc4pilnBgd3BIcVLu9RGL3 Y3qdD2hvIVTtzHgMI6FWODtLNypvEwIa9UWO54h2h5sZsBd0ZORGBufneSAR/o1QMn2z HjWWz/YelWsQYo+SOwl6V0r8kSs3TnHtnvY6FYIEjc4Z7oky4fVevCOuiPzYRXV2wJon ltkZv54Hha+ZUO6ZISlVhwptR3XeFztUNG/17ETCYG43n7Ji4JnPyeEwNbXHbs0VpzHV ckZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=NnaYV2FQELrbIZknQLrcKyVIaEppqOXA8yrHrJPhVHM=; b=mv3F02w5cOCaVORq9tNS/lYxNA8MAICC1Pcd8dEcEZP24MxeIpMVwq/1U7HoE3f5XY 5UlYtV/eLPgfj3bOnNFmTEogLOjEZpk03Ej2ACyzFNxjZP3fnaMny6BlwrZFgUzDYeFW /gC0oeHTVeD2zZoAQJfF/6CQ1+aRd6YrVeuWLbvMwyojyRRGr1JUCCR0/UFaIKvZgZcB VUFMiBkhosfFrBb45N/y64DC5TmqB9pcQDBFxvK+8A7FleLwzzyR4HuEwiOTfDyG0zyM Hw1lp/LMgl/Db002Q6OY4UoxZG8kI8AQiLpCh49V1e4MB4ffbGyHuUudDi66v1Fn7J0o mQIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ARsZc+PZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a17090a404600b0023a177c4951si408691pjg.39.2023.04.27.12.40.36; Thu, 27 Apr 2023 12:40:51 -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=ARsZc+PZ; 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 S245168AbjD0Tkd (ORCPT + 99 others); Thu, 27 Apr 2023 15:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245140AbjD0Tkb (ORCPT ); Thu, 27 Apr 2023 15:40:31 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8C3210E; Thu, 27 Apr 2023 12:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682624425; x=1714160425; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=Z5RIkbRi0ccg8zAIylCxLj3HfM8fkyV9h3IQ2iWFllA=; b=ARsZc+PZe/HevI5onPxHrcsSowwQlUOWWehDlxyLYKcOSf8onPyYGiaj NLgvqXWrTK1oys+EIz58VYvhLGrYSo8FB0zwJYukkRGX1qjd+wy0vlOO6 4GJonyB9guifgtMKoe9pXgWsv2C0pbeXoZPIkIuCDhoK0JYJDAozvkF47 wGNK91Ta9LDy4HxGrdQn6HLsUG+hUUTTa1JDmVIjFzyzdn/uFIXIenb3Q etzZNAOYeDGwAtxpWEoF0lIHV9FSObhjZrZw+5bHchf2xbld0IyPpnMHJ T9kWSILNKPJbMmGV0O4BtJFP7nvjhIK3f8imWAhF9pIqxkFKqoJ1iwhnD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="410610417" X-IronPort-AV: E=Sophos;i="5.99,232,1677571200"; d="scan'208";a="410610417" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 12:40:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="940786729" X-IronPort-AV: E=Sophos;i="5.99,232,1677571200"; d="scan'208";a="940786729" Received: from linux.intel.com ([10.54.29.200]) by fmsmga006.fm.intel.com with ESMTP; 27 Apr 2023 12:40:24 -0700 Received: from [10.209.41.222] (kliang2-mobl1.ccr.corp.intel.com [10.209.41.222]) (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 E13F5580377; Thu, 27 Apr 2023 12:40:20 -0700 (PDT) Message-ID: <9eb6fc9e-7483-500f-937b-c89fdacf9d5b@linux.intel.com> Date: Thu, 27 Apr 2023 15:40:19 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 11/40] perf test: Test more with config_cache Content-Language: en-US To: Ian Rogers , Arnaldo Carvalho de Melo , Ahmad Yasin , Peter Zijlstra , Ingo Molnar , Stephane Eranian , Andi Kleen , Perry Taylor , Samantha Alt , Caleb Biggers , Weilin Wang , Edward Baker , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Florian Fischer , Rob Herring , Zhengjun Xing , John Garry , Kajol Jain , Sumanth Korikkar , Thomas Richter , Tiezhu Yang , Ravi Bangoria , Leo Yan , Yang Jihong , James Clark , Suzuki Poulouse , Kang Minchul , Athira Rajeev , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230426070050.1315519-1-irogers@google.com> <20230426070050.1315519-12-irogers@google.com> From: "Liang, Kan" In-Reply-To: <20230426070050.1315519-12-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-04-26 3:00 a.m., Ian Rogers wrote: > test__checkevent_config_cache checks the parsing of > "L1-dcache-misses/name=cachepmu/". Don't just check that the name is > set correctly, also validate the rest of the perf_event_attr for > L1-dcache-misses. > > Signed-off-by: Ian Rogers Run the test on Cascade Lake and Alder Lake. It looks good. Tested-by: Kan Liang Thanks, Kan > --- > tools/perf/tests/parse-events.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c > index fa016afbc250..177464793aa8 100644 > --- a/tools/perf/tests/parse-events.c > +++ b/tools/perf/tests/parse-events.c > @@ -1394,7 +1394,7 @@ static int test__checkevent_config_cache(struct evlist *evlist) > struct evsel *evsel = evlist__first(evlist); > > TEST_ASSERT_VAL("wrong name setting", evsel__name_is(evsel, "cachepmu")); > - return TEST_OK; > + return test__checkevent_genhw(evlist); > } > > static bool test__pmu_cpu_valid(void)