Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp374342rwr; Wed, 26 Apr 2023 00:04:33 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3Pkgq7HTVGm/kBl174Z6Xewa/qpIT8mZ7X1ltv8QFSaLYoUHOvXPhEOcDIjT/0nUbJrrm X-Received: by 2002:a05:6a00:17a9:b0:63d:489c:971 with SMTP id s41-20020a056a0017a900b0063d489c0971mr29178619pfg.24.1682492672995; Wed, 26 Apr 2023 00:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682492672; cv=none; d=google.com; s=arc-20160816; b=m7G8qTtS3OKDbM+akewFyKNL4OxGDjVbw1Fx+Fnnfy9xp6+MYwZoRPxUZvlJyu5JB5 htXrTTh1NR7CMDyU3tjIFVH2JA1mPmHCDRzJOjFiVtzCOvZ37Q8yjfx8weDBqMXpBIHZ kT4mqx4AaojwD2DhFdl46C/TJXD0B+brAydgdmTn9hoVATVhQu7G2chC47VAea4Y4VJm zU1a7XmU1TZo96TeyVn1+FeL4CamZDuJJgUh9XNew/dz6LDSYv3sa7jXFKq0lru8L4qh x73fAS8KwZnU0huNpiG+6b/NJ8MeTi9TCc6oy4/G6ZixmU0+1Q43Y+Ho/QYj60mNg1Zk 67Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=j9dV1HXRQkiWMKZVLdaY4bVU/Hf3Dw7k75f83fuRHhM=; b=0jtN3EfLtVKBQwjDQYc5PZCkI3N7VeqgHE/gjM017QnB1ewsZc6B75GDpTwRqn/3ca ixraQ5hbx4kKdd6iy1UcMPLmTTf3cMOUHz3QKLw0G0MOvqXA8fB9oV5DPL6TlJu4J6aK jdW5uIvAsvIjy+u615qwUBrROprnmN/Hi8bZAAPFAPFTRfxELo3HkmZQGcgMjQXnV9fU 86fGeY0X913ZQB2EER08hQEfR6gp15ENUsaozzL9VFoXbpbAfYHPxl3Zqdr4bZEWm8wM AF5XhiuJ618ABbwFutWRjSgO9MwcG1hVP0iBQPdFdPrr8WP97BXDMmwujdIgdj2t8Oy1 Ir/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=5w82RPC6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020aa796b0000000b0063b86ce6813si15426967pfk.41.2023.04.26.00.04.21; Wed, 26 Apr 2023 00:04:32 -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=@google.com header.s=20221208 header.b=5w82RPC6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239732AbjDZHD7 (ORCPT + 99 others); Wed, 26 Apr 2023 03:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239726AbjDZHD3 (ORCPT ); Wed, 26 Apr 2023 03:03:29 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5E640EF for ; Wed, 26 Apr 2023 00:02:30 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-b9968fb4a8cso6730412276.0 for ; Wed, 26 Apr 2023 00:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682492549; x=1685084549; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=j9dV1HXRQkiWMKZVLdaY4bVU/Hf3Dw7k75f83fuRHhM=; b=5w82RPC6szHn+Va0SUfcs2hthQOevUJuVy27Y5n5efJyeASRP1ff8R5UlcULSXwf9e fWdgzbw6r68Y481RyMXKnF7BqJ+oraE+umbmok64j15bcIL2HvvQeAGJFhyqnM/RFA24 h1+gHQAY8esoqeWCvRKRkWFVtS/8I81FO/BTIM8ePSZkppagTBhEA6npz7NAsM0/nn8W SYUXyMTlg7h77e2Z4rZtKOeAWiSkVKwSTU7fk59Qm6/S3doIngtsnLrfBzfR30vffti7 f5Wtu66mUTrC/vlGpTNhIYcsNUWpfATkRXULY53ado3qo+zzsyKIPXKjiYrqRx5gH5Ye zuXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682492549; x=1685084549; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j9dV1HXRQkiWMKZVLdaY4bVU/Hf3Dw7k75f83fuRHhM=; b=XkgoFwitvD51AOQXBJshjvvH5+XbU2ASCVkCWrg0cGdsS8fr2j6z4m504IWgdKsruS AUdt9hIubZgn7hTm4wOUFvi5D1ZIU6n4TfNkQ6BXX/WdbVEsREGtUpHwQn1Z8vDj7SNX HwPhCvImT5hd/9kfnW+oJ5dnM/udNcVsYowoVT/c4s0M0Usf89lJWPgHHq+nStXYS7u5 WwOfY2OPU0hR65DVqgzcWVcBqVUWxANhF/BVN2WWY811G78ozp8AAcXs4pPAnlNLi/Ia +1HCctNJWCNDWcuXlHOC3ytG0vQivwp6dURVFc2xsTlMVsD0uLaUjnxlKaGX2RrVUM46 vT/g== X-Gm-Message-State: AAQBX9fBnX07mnDfpg5rKV0SNfTzhUvY8GFm2T39KNVEVZubmY/Q2E5+ dsnogpCytfVDwqMCe8U27jl7J/i385fH X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:144f:e890:2b29:48d9]) (user=irogers job=sendgmr) by 2002:a25:7402:0:b0:b99:45a4:3f96 with SMTP id p2-20020a257402000000b00b9945a43f96mr6225830ybc.5.1682492549439; Wed, 26 Apr 2023 00:02:29 -0700 (PDT) Date: Wed, 26 Apr 2023 00:00:21 -0700 In-Reply-To: <20230426070050.1315519-1-irogers@google.com> Message-Id: <20230426070050.1315519-12-irogers@google.com> Mime-Version: 1.0 References: <20230426070050.1315519-1-irogers@google.com> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog Subject: [PATCH v1 11/40] perf test: Test more with config_cache From: Ian Rogers To: Arnaldo Carvalho de Melo , Kan Liang , 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 Cc: Ian Rogers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 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 --- 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) -- 2.40.1.495.gc816e09b53d-goog