Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1422237rdb; Fri, 16 Feb 2024 15:59:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2evBhfqfnVE/pcVIt2QmNrm5ogwatQMe/BWAvGmr3w8XtjEqkhW4LdXKEqg+cz6ezRIDAEPOTxwpta2O5qN+EFF39tAyqVtI9prfcHg== X-Google-Smtp-Source: AGHT+IF7ukjKt0VShUu2t5K3A/3ENKqSWPheNa67fA+ArEOt/4GCkHcftaXJO0qItQEtVjKDPqUd X-Received: by 2002:a05:6a00:6a09:b0:6e0:4fb7:cf36 with SMTP id hy9-20020a056a006a0900b006e04fb7cf36mr6924893pfb.10.1708127973471; Fri, 16 Feb 2024 15:59:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708127973; cv=pass; d=google.com; s=arc-20160816; b=qzANmJv8Bla6e5Rsoa70n3GaUHOUUoIctOfd/Slppw9wl1S0IrOftkYsOaa7a6K5uC 31CMlkUOIqx+z5DoGTeHiMEd7n9jJAWgV6ajzXcCvyC+XJMUcDQiaMxalVLvl9R5v+mf +i1CYcmLfU8scdpii5xHtDqvjBeqpQD2nMcKzujb5/wlZZEfH/DPtXYTZ7t7uNPR0EmM LbAdF6+QjUKBiuSliSBUeEwgUUQJRzcNmzO6u2jtFDRnVKGqPwXmTT/xyK8NYUudkf5h OzOYv20N+MQhNSkTE+YY49IfFbCTjleFIDbOd3BAy2EASNEtNR3t8jW3dRvNT4Xs7pd9 yxRw== 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=Y9L1piLWeaTYu4QosCqlK5nYH5MtEnvKKaiR06Zjlok=; b=N98wAB1f/t/i9VVhlJQIFevWi+Y/YwnRSMiAVBgBhD15S1gkPeC/z59fHv8bctPsjZ 4D4DVAGty69bYrNu3uukeQ5mhLyvefuF9NNikPlUNSTK1fLo6xHTA3hPOHkw1517EZmH Lgn2JFvRSLG1YAuzMPBkAXcel+5/cYYEMLpJ3p7z/6Uu8cqrkGXWMD8Kq+/gTKLwN6wX XJ2CegZiwFMA18zBsqjRGPA8mEdDVCCH0yRDTzBlal9/eT/TR1rRtAyhl6wr/UMcKlmL vUy37CSzz07g/pKx7ck2/05/xQFYtNHKKTSxVdKvVH7zb4BHOglv8a78bXlEYUsqdazs kh4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0abjhKbL; 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-69513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ck19-20020a056a02091300b005dbdc98c15csi615330pgb.709.2024.02.16.15.59.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 15:59:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0abjhKbL; 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-69513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69513-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A890289AC1 for ; Fri, 16 Feb 2024 23:59:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3958153BC5; Fri, 16 Feb 2024 23:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0abjhKbL" 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 DE670153507 for ; Fri, 16 Feb 2024 23:55:24 +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=1708127727; cv=none; b=AaRkeD+h8ieOf7MLP0kJpasnc+NlVZ9eFhCKt6G14IxN5m9kkG1bOaN5XcLMqRNcRKD158w7chFrW9WtFJC5aXxd0iLugqLwD+dMxl8dhIFBupRz7oMgnMQHztKXOSLYZyVHeeB+j3cp2ynwR9uvtrkfAYzqoZKndWIMfuECptU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708127727; c=relaxed/simple; bh=I+UE93RRTXaqRw/ye3XEqbtXPztsO4QkZJrrM8rzem4=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=PEICb1lO4bH7Murr/bMCjjv9Jm4y+5D7mIzobnTRt9xjniQpfRr/qyzCQ97PcUafxAs0qTXzz2yz1HU6Owx6//+B+QLFrrcGBFfDLluyvzVa9qYfvQimzzWxs+cV+0MnOxGOPDfaoiCiyJnpUpdJsYzMv93TNU1jJ+BggvH2xhY= 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=0abjhKbL; 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 Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-5ffee6fcdc1so20402607b3.2 for ; Fri, 16 Feb 2024 15:55:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708127724; x=1708732524; 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=0abjhKbLH+0b2/hA7gQDVaBkOkI5Oct22+pH28A+PD2G2f/N/kqBwB9BaVgzWabl06 j5rAY6TOX7i2WGcsMbZlh4ZNH9gifdumlY/oHNCVLxkcbxNunDMqh6kpDkLz996zZCax lgq0ULCvYzrJtLylrkwVirTBDCqZc6/CgXQMY+OVCApNYIHFVowUjj/VzuK+o+TJCVXg /gB8i71e6Kv6hWADwOUI9Q2k0Ft1UVRdMY8uC7nJZ4otmM4siwR/k1wg+Fl8sAGkKwqc R2lXOta0Snn33dttEvEy0wPYRO6yxmtZlEjfOweaYcSm3cFVK3fIJDa838bdIAuC4xwr UC1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708127724; x=1708732524; 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=n74LjTPoMa8InSeyvr477swUu5Scd1ZBrUq+mZQ+6xdz9+M+I1UjbALoOkpRLr0G5s x4LXQy05mrw4Rgn7kLF+J2X9K3wW4BHIgUpY7T39aMCzMoMBwDXShdtxEbVtj1IgMDm5 wt4/Ezcf64VmFk9OgMpe4fojp9Mr2HME/cTMyj0fwfpkXWT9I69PmyxZaLz4WaTwmNC3 a720CkLygeinyc73CRlSzCbPYaMbivW324PGz0AhHE1Km+clZcLK+C8O9wXMK3/ocYy1 +OBVtZ75oRJRAew+1K8nJdyTN1bFJwfzh8NIOWJjY7GG3kvf91tlo3lyH8/AxyhtYAM4 EehQ== X-Forwarded-Encrypted: i=1; AJvYcCUXZ1lrJJ6nGi9O/qHa5dmEvw2n9BR+DKJJ/6EYfY8HN6u0zH+jL3RbxDNWXXAY6PKdbEvRbCxJciMbL63bB7d+U8gOtrMBOEsVSU52 X-Gm-Message-State: AOJu0YyF02h6OA30greYHWKC+l61zxraqhdsj5UJvvPqGNnQpitdjnx7 w9hLbdQt+YxYFDYLlu1jLaxdq8d0lDyD5z/37n9HmjIFb32fDzveXTd5xjtziAXIoLpwl+Yih2c YDL6r5g== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:4b5c:352:4272:e34e]) (user=irogers job=sendgmr) by 2002:a0d:db4b:0:b0:607:81e1:8b83 with SMTP id d72-20020a0ddb4b000000b0060781e18b83mr1157396ywe.8.1708127724036; Fri, 16 Feb 2024 15:55:24 -0800 (PST) Date: Fri, 16 Feb 2024 15:51:59 -0800 In-Reply-To: <20240216235203.229256-1-irogers@google.com> Message-Id: <20240216235203.229256-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: <20240216235203.229256-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Subject: [PATCH v5 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