From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 42C8F3D64 for ; Thu, 1 Feb 2024 00:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706746532; cv=none; b=c97UEVTd0hi7CKShUWqBlf/UKjYnuaSaYnf8a8Blzb+h+g+v07QxR66i/WhhpcWja64L6eKFFCsjKNJeHgh/C4l6uliogiC04Z6o66mhqbqWh7WwWrp6jxgWaMuXW0F8sMi8xhFHo9/BngloHjhjM1TBPdKo3sof+wmjed+X+Js= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706746532; c=relaxed/simple; bh=/UHPRm7mz7k1D9UD2yWSxqPsNm91brhJvaJyQa92m4A=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=fRRMa1dD/gi1SPxzK2F9rzVFbrGC8JF1aroKsOAdAK8FWEuxcuDfn7ULDMyrDR44YArmsjw1KRBvrZfRtK1SAxuCbphjpa+uAZ7ceiyJ8AlR5KYU1ortsty27j87b/buNBKloMmK/p2dtjV3UqgCnEEoMZTRU2QCtApL6vuUgmI= 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=rMzb6KCm; arc=none smtp.client-ip=209.85.128.202 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rMzb6KCm" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6041c45ce1cso2180447b3.1 for ; Wed, 31 Jan 2024 16:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706746530; x=1707351330; darn=lists.linux.dev; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=SPL0gfUU+cYNOZ1QSf8+FwFjGRGXN1yT4zzxi+30UPg=; b=rMzb6KCmNavIDX4E4JwECwf2eRzW0py2jWa25s3DuwXVY3JH0ddr0J0FgYINWbuEg1 NhsUT08xoNBiUCMkkiGcpb9D3TpDCRRFDUcsFiQsakiXBgEIHuqEZ8hSd0fR4YAJ6Vpn TUJsOUJyyz6f6dhpXjWDft4IigDWwWBY+T6hlJ33SPs03K2/UcR9wkpBpOqqVuTZuM/6 imUcLeYViVHn+lt6vT4fh2wxBRqWfZ7M3PtEZGopjyPN+Raa7xi495TtXDgKVlfpHjd5 K2+CAc+x1RE1T+NLgNUXCl0CjUZbbXJQzqWCwPjfjU4b+AEgmHqfT/JTppJZ674S955k DC+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706746530; x=1707351330; 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=SPL0gfUU+cYNOZ1QSf8+FwFjGRGXN1yT4zzxi+30UPg=; b=PmDIDOA7NziyyzTihTShx1/uTfmkCKBABwcmZeJDstfx16oP4cJ+rWqrIiKvTjbjwM NCcR4C7wwtiGcb/5tBvaXSITYiUkBlV4+a7WaJMfiFz7kfTpfft/EVLFjLwcc0StKGOZ qGS+ohY2yQX0IqO41bq9Y7uYkYe986NRUtAWBXo7Go/CjY9tgDnDTtT/r+7jfGl9TDc5 VYt2NUSy+yJq/NEeWDi2hUjJiQPS2Kvdfx60jRZpbdheOIJEkqmrotvpb8bGBr9oxU/Y gRDjZeFsZ6tEVcL5xNCSovxhjCwDITW3sMNGGHeG/QtDKq/XXzcM65EAeSUH1Ujygcsg XPmg== X-Gm-Message-State: AOJu0YxfwDrpH1Pvc4/neaXFPrHIsHF+hVwcGpCqLGQtElkBoxITldtg shVX9R1IBcgwQAVf7HOvTtVIChq5yQQRL3TeTC10TsQpUe+Cig5OBZVy5qd+D7TMC+/Eu958A6J s/s0qMw== X-Google-Smtp-Source: AGHT+IFdnxl6xFtWaY//CsRFyPaMrHSaNSu0OxyeCsszx+51OzrDiSM4n2atYHRJV3ofjk3HEqDK22OpWko9 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:16c5:1feb:bf99:a5d1]) (user=irogers job=sendgmr) by 2002:a05:690c:108:b0:602:cb41:99ad with SMTP id bd8-20020a05690c010800b00602cb4199admr114151ywb.7.1706746530194; Wed, 31 Jan 2024 16:15:30 -0800 (PST) Date: Wed, 31 Jan 2024 16:14:59 -0800 In-Reply-To: <20240201001504.1348511-1-irogers@google.com> Message-Id: <20240201001504.1348511-5-irogers@google.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240201001504.1348511-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Subject: [PATCH v2 5/9] perf test: Rename builtin-test-list and add missed header guard From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ravi Bangoria , James Clark , Kan Liang , John Garry , 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.43.0.429.g432eaa2c6b-goog