From patchwork Tue Nov 28 19:46:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 170928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp4182413vqx; Tue, 28 Nov 2023 11:46:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnHWk8bnZVYexp36a3YyXrOre9ZH6e4tZDMd4zixytlJykBibvQW+AdN9jNKODF0/kOntF X-Received: by 2002:a17:902:f68e:b0:1bd:c7e2:462 with SMTP id l14-20020a170902f68e00b001bdc7e20462mr20124766plg.11.1701200795589; Tue, 28 Nov 2023 11:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701200795; cv=none; d=google.com; s=arc-20160816; b=U/Yq9eRs3OM9tJ3QFyTyoPEZ7i7ZHBT9JT2dzXOCe9y304CWMy0GrNVBm7GiciKl2O zf/CxcJ0T/99SyObTJGU6FqsWmUBohzE5aDtM4yszHH1wB8yW9gbvfg6al0PAHJfUrJU 9pbc2zA2HVtplswAnEKJBu3URUMyL9v9YmKmvkpnOD261WrM07agYm3vJCxoW+FcigL7 khrTj9NUV9/pYBwXDPA4K6eUJhhX+/fXzxLKfqZzBFR4hE0dF0S1nOaVddvmjw09OPzT 0JoJzYb+lMjQWnYP9fZizj1cQy7i0+l6j2ZGkE486LBHs+/5txSPmvQr7Hny8jR9mMuL yIjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=UTOP80w6oO59ioynFIZpUkq+H0Ur/HUQD/Hl4Lb3+fo=; fh=CR73EPsjE17B+7i+rJg2InTkudCaq+qCEa2bs2u6XDM=; b=UeCXcNeTYKvYxGG+YAZqWmHbnrum+Y5eBSur7v4ZkNDIPdxGvsZKgfarC1Vah/8Jzb V77Z3xqLqBCZU8QqKqhcLysoV8TQWDcH2ewvZSXWmRuUY6lyRK+vXK+vH47klnHfBbG2 IQgQ0mcin3z6ZrUww0x9/KUI8fYbeUT/8stEt1xVNRugHk7btmL00mQyNBBK9ppkUFv9 iVo9AKWWKEceNBOsVBaJdc4d0Ght2rs4QIfcznGAojFe6zLz6yhRwZrGHf/iIrCP4NdR EgXljXu2hYOHUe1mgCybEKgbhPZa6Yl9SXGGjHLmqt+9MmMrIEn39OweOoBbLAkg0V1G gPFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DbhahV18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z6-20020a1709028f8600b001cf8b399006si12201004plo.189.2023.11.28.11.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 11:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DbhahV18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1C4C48062909; Tue, 28 Nov 2023 11:46:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbjK1TqX (ORCPT + 99 others); Tue, 28 Nov 2023 14:46:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjK1TqW (ORCPT ); Tue, 28 Nov 2023 14:46:22 -0500 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2B819A4 for ; Tue, 28 Nov 2023 11:46:29 -0800 (PST) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5cd573c2cccso1273187b3.1 for ; Tue, 28 Nov 2023 11:46:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701200788; x=1701805588; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=UTOP80w6oO59ioynFIZpUkq+H0Ur/HUQD/Hl4Lb3+fo=; b=DbhahV18jqpZxyjInbhmmGuKGlGjLA5z1U5MrdYNP8VtMYN8dF3Fv2hIgCpCXU79Dv Yz4lkea6zmOOhXH9CsZ/ZnyQl8SAdsolGqgZS59A1fU+GOwK7DLS1xg89uEr+pSGKYWE KEtKZcNa+2I2MRItgzgw8Ag3FiI1BcmkU4QcxMRbck/95iFQp2dDbPrdDe7rmWzdrWtm Lse+lo2Zx1nl7WAYGEJooVBKe/hJ1Wm0SOL7ncCyRZ1qIIgQT2zpTdMzLBesBtY4q5KK nrUBiYpDKX+Vlh1csvsOD7KjFMXK5qsEWBJDqMiHx2mhofu6UquByEkhE8TxNxfN8DzW YIjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701200788; x=1701805588; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UTOP80w6oO59ioynFIZpUkq+H0Ur/HUQD/Hl4Lb3+fo=; b=IDJK6pLUPotSV9aFfKMhyILLquu2FcpeQuLwHv5vocOfAKJkPKywhHC7W0jrYuunQS vLzUawH/k4bU/R+W2Uyc2oa887a1EPd1Z3TMhOyOXE5pSngHu2J4HSLXRHXe09Ikkg6h vV8FiQZwJet8mFepu1Gg1fhaErmFN+4lJOsNdNJjgM2n+wp+tPP3rFwN9KoJlxS1k+X8 Moj8tBbiyRXuP11zXyc3vFGrRrWd9VkIk7a2NI3vCwYKueyWW9deP9H89Q9gHzWXu+0y dwkDioIPr0Acc3KTkaSYCIJm1FGkc6q0rQWcP42bu40xyS0Y4CLIoQb2EP3IREWBIZDc ACPg== X-Gm-Message-State: AOJu0Yw+BJf0PDwKeAFjDeTmL0aV4WMPjFDkPUcOltwQJ5wC2rHKD6ge WZzXEHs0PJB3VaGCcKMuDefjj/qb0KtR X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:254b:c025:1be9:f61e]) (user=irogers job=sendgmr) by 2002:a05:690c:fd3:b0:5be:baac:54e4 with SMTP id dg19-20020a05690c0fd300b005bebaac54e4mr699860ywb.5.1701200788269; Tue, 28 Nov 2023 11:46:28 -0800 (PST) Date: Tue, 28 Nov 2023 11:46:24 -0800 Message-Id: <20231128194624.1419260-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog Subject: [PATCH v1] perf tests: Make DSO tests a suite rather than individual From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , James Clark , Kan Liang , Yang Jihong , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 11:46:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783838325304032205 X-GMAIL-MSGID: 1783838325304032205 Make the DSO data tests a suite rather than individual so their output is grouped. Signed-off-by: Ian Rogers --- tools/perf/tests/builtin-test.c | 2 -- tools/perf/tests/dso-data.c | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 113e92119e1d..9c09e4681c3a 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -62,8 +62,6 @@ static struct test_suite *generic_tests[] = { &suite__pmu, &suite__pmu_events, &suite__dso_data, - &suite__dso_data_cache, - &suite__dso_data_reopen, &suite__perf_evsel__roundtrip_name_test, #ifdef HAVE_LIBTRACEEVENT &suite__perf_evsel__tp_sched_test, diff --git a/tools/perf/tests/dso-data.c b/tools/perf/tests/dso-data.c index deaefcdd8f09..5286ae8bd2d7 100644 --- a/tools/perf/tests/dso-data.c +++ b/tools/perf/tests/dso-data.c @@ -393,6 +393,15 @@ static int test__dso_data_reopen(struct test_suite *test __maybe_unused, int sub return 0; } -DEFINE_SUITE("DSO data read", dso_data); -DEFINE_SUITE("DSO data cache", dso_data_cache); -DEFINE_SUITE("DSO data reopen", dso_data_reopen); + +static struct test_case tests__dso_data[] = { + TEST_CASE("read", dso_data), + TEST_CASE("cache", dso_data_cache), + TEST_CASE("reopen", dso_data_reopen), + { .name = NULL, } +}; + +struct test_suite suite__dso_data = { + .desc = "DSO data tests", + .test_cases = tests__dso_data, +};