Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2132921rdb; Tue, 20 Feb 2024 19:44:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGWSCAayPsZZiXkjG0wZOuLnM9fPvIZx7Jh77+bcDcbYyZ1GLyRi1tIWfo2OWvHpa8cI4McY2rwnFXpHDdhzh8tMY95F2sc1YJtCni3A== X-Google-Smtp-Source: AGHT+IFDdSHaY2zSDzM1v+1GQGnxoW/LxN1Iu/6614F4mxavytxlVd0CUXh/cTMXarDeAx3jkhbW X-Received: by 2002:a05:6402:2405:b0:563:c2e5:5289 with SMTP id t5-20020a056402240500b00563c2e55289mr15673469eda.13.1708487043558; Tue, 20 Feb 2024 19:44:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708487043; cv=pass; d=google.com; s=arc-20160816; b=Oe7GrxiZirtLB6RIn4zTz7P6NkFPwqubF9jIKbxbwmld1Xh/gI5oXaT2GPkRbPIVJU W/l70RapcRDpfftoc0QOR47Hfzs0r8/+7qGflr1jXbiaIWBVT+nVcl/7xWF7gRDjOYVr IiboF2BXSiHgAn/kBrFVObd7kxT9ealIej0TAmbh0+Qk/+F9/biEmXri0PWB26lYa0TX IusIHtgTA4EVI2s9sTjvxcklBTFQtiE8WxeuJj80VR85Zwm9NaqN/azByEOx3elbc5RT AZSvQSZqZkUGJlmfcDystH2gVpWgxsTlunh1QUYbgrLVjqAgU1n5Yrm/uLaYJHdN7bgE XQdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=BDoXWFUllq5r9qvxHaqqdOtetQC7wmYhYSm0N03NFTM=; fh=jN14fFEFQU1P1ERAo3aKKtQR2SWjEc0U/rnsPvpd8mQ=; b=0eFZipyJiMXbmOX56++ZGjnpuQdzyFFPjZ2bvRk0mSkkiXXDTqGaqhbjKOMQub5f3t gwv+kuRbLTOuaoGIFVEVWEflie84BN7FJkLUG+ErZ0rEp6tnE6IG6CC4ZgU3RuY6nNWN BBptMCa2vVMmmhtCJprT18WF8RryqO0gFLFlF+rTVjQvK66cSnPyK/8IkxW5XgGSn/tn lU2hrS7EAxG40yEuB83FrU+dhJKrp8zgLyptJS4HEFENt7N8tnElWOFHEav6Nie2JECZ 83xFStk6L2qjZ8uzi5ZvV/MZCNnZQGo5GIcD1Y/4Y+DxzUNCxEWmNTKZ76Ux6QAOf0Gj /Glw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=G7s7dV87; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c25-20020a056402121900b00564647b7e30si2864542edw.318.2024.02.20.19.44.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 19:44:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=G7s7dV87; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 28F471F2209E for ; Wed, 21 Feb 2024 03:44:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 189C53A8FC; Wed, 21 Feb 2024 03:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="G7s7dV87" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 799443A8CA for ; Wed, 21 Feb 2024 03:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708486937; cv=none; b=a3TFLH+sv+QdGpm0abBGmB7MokPhSPEW9SJ7YgXL6zfi38ciDM/mRh4Hg4xZi0TLMZWZLkwi240gkebcyWqyO8IxmoFIkzYskhNbmEGz3O46WULw+0UHu027pgdq3Q26UzCgm1r0oF57Ep3hLg1oeRU8uBGx8i360/dE2WSRM8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708486937; c=relaxed/simple; bh=I+UE93RRTXaqRw/ye3XEqbtXPztsO4QkZJrrM8rzem4=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=Rp3lxFwEwfDnNAF18kkoQ1q1KGKS4AlslL3tm8NfpVwd53srPca6qqgZmXXdxcWIQaSdU4OQgO2aOYPVMQWrPkuGQCETrqm4oJzmpzj2G4xC1sIbLcA6J+KBihzS33FhUBMG4jiQBGaoUgGKouJ4BabbqA2qJgdyOux9rVJJOTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=G7s7dV87; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-602dae507caso101484457b3.0 for ; Tue, 20 Feb 2024 19:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708486934; x=1709091734; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=BDoXWFUllq5r9qvxHaqqdOtetQC7wmYhYSm0N03NFTM=; b=G7s7dV87iO7rxKFJv9uTv0T1850IFJiqgrvwCcDPdq0FC+X0wep23+WCGp0dPGoVbM 01jMp13UL+SxmzadnLAuXPcPAeBtizvqRdz/5i2kLfbU4g2EoOP3RXgIHxfiRnMT9sHX gJqY6toDXfXHwLqtY52TdO/m5vzeuTXF4RJMzo5lp6JDykqY5FSE+ZqkXauIpG4AEFG4 6ceRYgOHwcESECTb15RJ6Q/L7z9iOsKbjSaANfEw069U42R/qfk4Z9P+mKI+i5uelsgA edgVtFCit60f9F8yUdJyfqifUhJssCpu+G5RHjlXAbPkK235MPWTnSiuIfAJEHsAEDlb 3mYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708486934; x=1709091734; h=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=BDoXWFUllq5r9qvxHaqqdOtetQC7wmYhYSm0N03NFTM=; b=UhnvGM5/uB0t966AObf+mlGttFvlraOKw7WJFKt5tNH+bL7b4E5KHXejB2pyGTZeoK 5lUEkbyQcjw9+qnzBsdsXLyNT7cdj3iVWAqJVsphYmof9cfN+Zk4OYTWCY+okkHBwcLj H7hHMcw7Jz4OSjrsL9FAutESiEk5I6mE6M7vuaKTWDLxeSNgxmT5veV+Vajja2FBtLCa dwH8HNPOLs2PGP/tZrIbz6SnV0FxmfYOGbrQzo04DI8Ucfs6MUy30mfXzWCaiwDd2Ab6 3+nJ2g3jLwPw86VUiEOPfMnDxwORR8p/aEtZqkcBNfrGKIKjBNch0QY+VTYtw2ZJZ+qk BbKA== X-Forwarded-Encrypted: i=1; AJvYcCXbFzug7755cEULLGJfmPvLFw+/WspA7BdtJDQpZZ0WCeMyzMfoEM1WhP71MmDYKHNkyUyfppJozNC9z8+UMNlO6vNlNsJe1uW9GJ+i X-Gm-Message-State: AOJu0Yz7+vrOFBVBFecXIowFeJvJsJXOktQY69K8qrTTQBOgDP50/NsH 4KwPuIHJ69HVCB5/zyjvBYBiDhSwpTvcHL/0sHHOtxCCzAOLf775efoP4sB3QvwPegOHBo/RArc yLsOppQ== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:3c02:f882:5876:b7ab]) (user=irogers job=sendgmr) by 2002:a81:f008:0:b0:607:f6f0:bdca with SMTP id p8-20020a81f008000000b00607f6f0bdcamr3613089ywm.7.1708486934605; Tue, 20 Feb 2024 19:42:14 -0800 (PST) Date: Tue, 20 Feb 2024 19:41:52 -0800 In-Reply-To: <20240221034155.1500118-1-irogers@google.com> Message-Id: <20240221034155.1500118-6-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240221034155.1500118-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Subject: [PATCH v6 5/8] perf test: Rename builtin-test-list and add missed header guard From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Athira Jajeev , James Clark , Kan Liang , Yang Jihong , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" builtin-test-list is primarily concerned with shell script tests. Rename the file to better reflect this and add a missed header guard. Signed-off-by: Ian Rogers --- tools/perf/tests/Build | 2 +- tools/perf/tests/builtin-test.c | 2 +- tools/perf/tests/{builtin-test-list.c => tests-scripts.c} | 2 +- tools/perf/tests/{builtin-test-list.h => tests-scripts.h} | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) rename tools/perf/tests/{builtin-test-list.c => tests-scripts.c} (99%) rename tools/perf/tests/{builtin-test-list.h => tests-scripts.h} (79%) diff --git a/tools/perf/tests/Build b/tools/perf/tests/Build index 53ba9c3e20e0..c7f9d9676095 100644 --- a/tools/perf/tests/Build +++ b/tools/perf/tests/Build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 perf-y += builtin-test.o -perf-y += builtin-test-list.o +perf-y += tests-scripts.o perf-y += parse-events.o perf-y += dso-data.o perf-y += attr.o diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 4a5973f9bb9b..eff3c62e9b47 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -29,7 +29,7 @@ #include #include -#include "builtin-test-list.h" +#include "tests-scripts.h" static bool dont_fork; const char *dso_to_test; diff --git a/tools/perf/tests/builtin-test-list.c b/tools/perf/tests/tests-scripts.c similarity index 99% rename from tools/perf/tests/builtin-test-list.c rename to tools/perf/tests/tests-scripts.c index a65b9e547d82..4ebd841da05b 100644 --- a/tools/perf/tests/builtin-test-list.c +++ b/tools/perf/tests/tests-scripts.c @@ -15,7 +15,7 @@ #include #include #include "builtin.h" -#include "builtin-test-list.h" +#include "tests-scripts.h" #include "color.h" #include "debug.h" #include "hist.h" diff --git a/tools/perf/tests/builtin-test-list.h b/tools/perf/tests/tests-scripts.h similarity index 79% rename from tools/perf/tests/builtin-test-list.h rename to tools/perf/tests/tests-scripts.h index eb81f3aa6683..3a3ec6191848 100644 --- a/tools/perf/tests/builtin-test-list.h +++ b/tools/perf/tests/tests-scripts.h @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef TESTS_SCRIPTS_H +#define TESTS_SCRIPTS_H struct script_file { char *dir; @@ -10,3 +12,5 @@ struct script_file { const struct script_file *list_script_files(void); /* Get maximum width of description string */ int list_script_max_width(void); + +#endif /* TESTS_SCRIPTS_H */ -- 2.44.0.rc0.258.g7320e95886-goog