Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3686628pxb; Wed, 13 Oct 2021 10:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo0txUIZQ9IUaPLaczZnETviaYqGmSjC5ATMkp6foTSUxqZ/qL180FjFKkXYiDEEuDBZZA X-Received: by 2002:a63:9819:: with SMTP id q25mr460505pgd.300.1634147392176; Wed, 13 Oct 2021 10:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634147392; cv=none; d=google.com; s=arc-20160816; b=idBRHOL5ljvz8vJbamIImdRidgvNdPHS6SA+v8KeYF4SEVGEjBtpXsyYm0s2tH+CFh l/ZAdxGsCsG+tVrAse+fVQiSGLcccEQW5STRkR6i+Y7ecFfhe9kAs1FnBFQ7ZvrAnKBW 8KKb0/lVyKmYb3vdq1j+0bJhiKStTb9kuyYI4MMHA62EwiowfAyZrGP5F50iYqHV1ZJG vcfOhth1/gbdE7gqLXnXg/ogMOOrF2h8f31l8z+ouXIKx72UgffPiUvYJ23hSfF84qZR 9j10VssJxgblaKJsQhpGJLgfsEodxqNZEEn+cSlQrdhk6AB5uAMQDvf6md/rpvTinswn H7ag== 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=Rvl7RBST+nSKJGhidpF9xQRHS3IIm9lv/B8zXURs+EY=; b=CvSlVjET3ceB82Rksw022bheDM0ZbREG2up82YHr6BwRYXcB9MI2tLVmNOrzn8ejUj ePsdJoLBZ5j40Z/6dEWePdNbuAiDe0L59wi66rZ4gXKwpabs6qDe2cslCByxYHKGtmJS 2llWhRWmHrX+kmKc5ci1oBaqGmtLxEz7Dfx4EkWcOTFNRNDVC352asOoAGXczigfrvmM C1K4H4TFq+ih83okXqYs15AjHGGfTSf+rfg+jiVCdiFtITcJ/6x7C2o2n5dwAa4YVLfM FQldzgtsGaJ4OC6mksvvH2IvhiHPJtW12Wsx5wLQClK9uEWsRlreie28hDUpKoYVEILC L+VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="cO5/xrPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si243973plc.181.2021.10.13.10.49.39; Wed, 13 Oct 2021 10:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="cO5/xrPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238783AbhJMRuh (ORCPT + 99 others); Wed, 13 Oct 2021 13:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238651AbhJMRtn (ORCPT ); Wed, 13 Oct 2021 13:49:43 -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 185DAC0613E4 for ; Wed, 13 Oct 2021 10:47:03 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id i83-20020a256d56000000b005b706d1417bso3982079ybc.6 for ; Wed, 13 Oct 2021 10:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Rvl7RBST+nSKJGhidpF9xQRHS3IIm9lv/B8zXURs+EY=; b=cO5/xrPbpB59HhoZfe9lQWNgmN9oM59A+f+4usmsFeHlnuL/AIAyTdW7ni41Awu7t3 TjYos4QT17uTDhYuKnhFSB8aRJQRK985jEKt1InHznMmUUIlJV4aTu3o02H5Xv0dIO2b HhT178JHVMJKomBmvtqGyvPa79Awdf54DhpxyGfitfnk9e0jX8qYXZ+GG7Muw7sQaoHT yS4NqkHUZwUU2bvwmyZfpL9j+56dKA01IEldaAOrYPJuPlVoEjrULcR8wIe4O3tR7Cwl GeJeduCBUd0DYMWytKldTzJFGGsgaa201ONsEQ+O9YQvDh53hh7b//aZ4BucrrHfxDPw 7fxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Rvl7RBST+nSKJGhidpF9xQRHS3IIm9lv/B8zXURs+EY=; b=3KGn6RSPAeBBFGFD9kiCtNq6l5CRiP3DxqmIjo1T47ygesOXvWKlZAfs0+HgdaJ2Vd /WphWwl0Fwf/rdnFA+TekFTsCcEtfNLwftbgL7lmQrZfdk+M3I7L97wYZEnHDSh5/CW1 46cjeLKuOlsIc7jC+JZbLTicQt1FPdbqe9+TCd5IG+JEcrZ6Ixwi1NkdimVgASVS753y 4c7KgHKNjLBV8bz9IDM1/mr7M7KZYNeOdjYKkhsSwZgUQ83zs/iKg7VvQo656RzQdYA3 ho2kE4m0NEL8VqTle7iS4eNPtvz/dxUa1y8TPu3pCo5LaQJOvdlves67QJ69DKu0vDFb x+Lw== X-Gm-Message-State: AOAM533mSVQILBu8KSdPO+ovwjBsBcQYpQvQ/hA74eQk5oe8CNhnm2tw frRlSpjQahwNkPEwq9agCsCgYotJOU0C X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:aeaf:8e9e:3df2:aad9]) (user=irogers job=sendgmr) by 2002:a25:2681:: with SMTP id m123mr866254ybm.7.1634147222308; Wed, 13 Oct 2021 10:47:02 -0700 (PDT) Date: Wed, 13 Oct 2021 10:45:59 -0700 In-Reply-To: <20211013174604.747276-1-irogers@google.com> Message-Id: <20211013174604.747276-18-irogers@google.com> Mime-Version: 1.0 References: <20211013174604.747276-1-irogers@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [PATCH v2 17/22] perf test: Convert time to tsc test to test case. From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jin Yao , John Garry , "Paul A . Clarke" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Brendan Higgins , Daniel Latypov , David Gow Cc: eranian@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Migration toward kunit style test cases. Signed-off-by: Ian Rogers --- tools/perf/tests/perf-time-to-tsc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/perf-time-to-tsc.c b/tools/perf/tests/perf-time-to-tsc.c index d23740f80c7d..594013e94ed0 100644 --- a/tools/perf/tests/perf-time-to-tsc.c +++ b/tools/perf/tests/perf-time-to-tsc.c @@ -198,8 +198,13 @@ static bool test__tsc_is_supported(void) #endif } +static struct test_case perf_time_to_tsc_tests[] = { + TEST_CASE("Convert perf time to TSC", perf_time_to_tsc), + { .name = NULL, } +}; + struct test_suite suite__perf_time_to_tsc = { .desc = "Convert perf time to TSC", - .func = test__perf_time_to_tsc, + .test_cases = perf_time_to_tsc_tests, .is_supported = test__tsc_is_supported, }; -- 2.33.0.882.g93a45727a2-goog