Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2634608rdb; Mon, 12 Feb 2024 11:00:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhVArxzY9w2n2ShHVEgYxKQUL0lr9neVpy59JQq5ANDWM9Rmk2OGAfwNXcHhTvudAVNgfdVsI4f9HrcEcUNaioQG9JJcqxQ9kCFnA2jQ== X-Google-Smtp-Source: AGHT+IEiKYrTPgvMW+pFqJGGF0jApfNVI4XB4u4WCGqgBgcxOh73xm2yvWx87RRcLm9MV1GR3T9i X-Received: by 2002:a05:6402:5d90:b0:561:9f62:8dad with SMTP id if16-20020a0564025d9000b005619f628dadmr2882758edb.18.1707764427591; Mon, 12 Feb 2024 11:00:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707764427; cv=pass; d=google.com; s=arc-20160816; b=KeZGJxw12j8iMD+eJFtB7N8OUF86lFVjTIVNcw1n4+2a0S/a14LrpCNKYRn/qzfWfw s4xvidoTaSIa0BMiD2AVbQOgVyzfaeDFVTdoQZTiFbaqonFPbqaYoXZbb0I6QMGunXOv K9mgxB45ca2ec8Fyg1VFWJBZ2fMCPZsZsWv5/8o4pxIlm388g4ZuZhhidkR/wnYWZUGs U+68CGkkhMZXuhGJ0Q9hOf7fCggo0giMAk8SfuakPQ7K7vHuidnwJNhL8s7Tm/axi+XE Bo2vjvx3zZMjDv73FX4rJz0s2/v47EhpEoVIogFBE8qt5qFTQFmCUO99UJoZdDepUtxK vvVQ== 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=ORLaSbqJ7XxCjGmPCGfASaJCafSHFkQjULJrCBkVFqo=; fh=zDMnUz/ufazwRLSNf2x7Qxzbn4+zmMg6qEbv7p6s2Z8=; b=Ra1ERUYOckn3HzYJDp9rWn6hExjkFEoxggfc8dHypQ7q43wb4pECsRGsccb+E/iL3d oY9oFIJqD2WnEs9NS+r1ZTtduoLtLPIjZoR/hJQ31axwm7039u6/VMC6gxT0ZdMc1Myn TYCKWQ5nIUzB8vJdPidIKKER8EYF1vU2cmX4S193ROM4pK3LojHnGLC4mwa3xVp8usoc wYQ5TZb8/6TqtZa+f0eNm4KEp92Z7XfyM2LasyjNm2DRYbQzbYK97hXLXb1jHLXFrABt NryQ+vSjpX7jm/+bZSwSIo5fgVNlIBmCABtVyf5x7GDzEGdLTqlhNUkSgGqinTEoFq7C tm4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nfm8stO0; 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-62244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWOK2O8VvBv6w3s8KgIPK1zRKAQmrpK7KeRJEFOaaMv3cgxpoxz9nNq1dtPVo5caIfK0HAb/lHBd4b5Onv6HLRNhJFjAy9SzNSR/aGU4Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w20-20020a056402269400b0056177d63f7bsi2573684edd.620.2024.02.12.11.00.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:00:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nfm8stO0; 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-62244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62244-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 ECADF1F2495D for ; Mon, 12 Feb 2024 19:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3AF5495E0; Mon, 12 Feb 2024 18:59:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nfm8stO0" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 95508481C2 for ; Mon, 12 Feb 2024 18:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764361; cv=none; b=LNdFU3/OR+xpdsVuup+wWKZqZSVW6elGNJXI0J94rGtPzuuNcLXQXh3sTQDbEdPZYXfwsOUEpQbwoOqWx71H1Hgu0r+Gfoz3El4tW+zQBI6jOX8POcvp9w+9QnAqGhn4KGXsPOGuy8LAfIfqozrC3sNbpFvk4YVTkcdYQidR1X4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764361; c=relaxed/simple; bh=d/hQVr7HLwaHgpbOrtRFt5ktwlU8Fbwq9EyeSqxfkuQ=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=PHnJV7qXkBQ5Vn1PsQHOIloLiZKIYMrYvbuYVnfdUiw3FKQBF22oC0WDDBi7VzRTaoI2liUWXSnd7q+IrC1MWZa9Ivz0faSIhiSlx+M4T1JYSQp7ceJz3sMTsAMSVkViTrQBeiNai3WSPVCeKj2Bqp1PSOAqwB9iiUuQVKk1XFQ= 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=nfm8stO0; arc=none smtp.client-ip=209.85.219.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-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcc4563611cso91259276.3 for ; Mon, 12 Feb 2024 10:59:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707764358; x=1708369158; 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=ORLaSbqJ7XxCjGmPCGfASaJCafSHFkQjULJrCBkVFqo=; b=nfm8stO0KYzzkP4P+Tp2w0E4WtZJyzqmz/HJXxxURLoqyfbAh4TizitH0krHm4FBJ1 3/8Bls53sKDsGG9VhF4IEjM8NgdYV0QtHmjqyE+yah5mFw5ahYfi9nt4Knu+Xkvoq4+z wYLClti3uaX37SZjZRluHoM0UNS8i9rde3LhQA/4dvQYZUih3VctBUGWh9coP+3EUgoZ VppjjN2c8PWmJ9lcy1QILsfJ4Pc9AXAP4ah45JKjPwpOXDlg9Hw495ReiZ/qgx1wGYJj ofQz76wHT+4stLCUoAsN5bD7Qa49f24YernNIHZwihw87N2d3S7FNzwXqDP7Wx5bbCWd 91zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707764358; x=1708369158; 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=ORLaSbqJ7XxCjGmPCGfASaJCafSHFkQjULJrCBkVFqo=; b=YPDDPwMUIq7WhvHENlBqG01gIDPczNL4hkuMTuAgmXq32zOIHR3PcXy2O7Mjgm44lY 2SsqVe5V0/7zFNDxmNDxBAw/RY806bvEdt475kJJeGUE7cxiugwXMeqjEVPUgmkkic0S o0Qvqgst7nciJpJvgyhXqChhNZN95Ok9Kct6/9v7kzpxIlTyUi4/r9PeNA2GNB0J2HWB IeJj7cB4yBwHF1mT9Os1g6/fsxoGMjGnaD1heMpw1lO6Ii1EPxttZgzmxh13PbZabqeR djCfRny823aqI0TawCX6HxsbRR13qpzBuG1RflG3yYbWvfBsKFjkCAmE7n0h4h3o0df8 Zf0g== X-Forwarded-Encrypted: i=1; AJvYcCVCFHNNtJePZ9g6R33og+cMisenrn4c2PCAH9oSvJ2EloGf05gS6aaydNHvVMu4mbt0XsChf7Ltbt0ixYRdWMZp6XVpXhE84DFVc+6d X-Gm-Message-State: AOJu0YwMpJEhu7+hwtOaU0iSF5QIs/rimMFEm/Sa3w8DuR67HSmar/uH kHb9mV1/rqrbwRArXaPlN5v83CIlP6u//3L1g5PYbm0aHZMaeJBObAKk+wO7p1DOdk4dl5+6ThG ddQ7XSQ== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:125c:bcda:4fe2:b6e6]) (user=irogers job=sendgmr) by 2002:a05:6902:1027:b0:dc2:550b:a4f4 with SMTP id x7-20020a056902102700b00dc2550ba4f4mr1970106ybt.1.1707764358452; Mon, 12 Feb 2024 10:59:18 -0800 (PST) Date: Mon, 12 Feb 2024 10:58:55 -0800 In-Reply-To: <20240212185858.68189-1-irogers@google.com> Message-Id: <20240212185858.68189-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: <20240212185858.68189-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Subject: [PATCH v3 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 , James Clark , Athira Jajeev , 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.43.0.687.g38aa6559b0-goog