From patchwork Wed Feb 14 04:53:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 200802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp990914dyb; Tue, 13 Feb 2024 20:56:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBnChdrQlqp+8NcohWojVNMsFNTwPRpNd+q7cWXHRu3qU7+UKNrEw2pX0FhCe8Fkx3CB13t8GIM7lUNmKIhPbMWhEYeg== X-Google-Smtp-Source: AGHT+IHBDZK3RsOMUh8cZPahdgzZVNPqDvAwh5qwh2H4/qH+o2yCarEbLjvS7AXtEGW2g0pXkToD X-Received: by 2002:ac8:5bd1:0:b0:42c:7bb1:20f8 with SMTP id b17-20020ac85bd1000000b0042c7bb120f8mr1841817qtb.59.1707886563037; Tue, 13 Feb 2024 20:56:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707886563; cv=pass; d=google.com; s=arc-20160816; b=p+y4b12kRhOjek85c80F9IYy+/W1/J64bEv6xt1Jchugq9yNwUG+dtL3EA/W6udh3O 3LT0Az0YVOZ9JcDHFwgPbb3qpnrN3l0ZpCbLdaLgZ5LRFWc6KT3UMv63OcWuhxVkKw6t nZgrivVeiNe/pfUFX8j/gpZnCQxSWwtNxbPz5mqO04gp/ifC6r0A9K8ZMnrHm/BrttV8 DChMacdOIRhttoIONDY5+aFGsUirbZ+Gf4PgOLQHkTOyMx6znslNVN71CY3C5epTDYjm nNQ28AT+DO2o6ySS5gfZO1U69ExXBXfrmLQGgNz2x/zVgM97kywXyUHDueMEPIaAjN8e W/hQ== 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=i4KY6UP7bZxmOoz5TSZpwoaM2C8LnFkgGJAPyBgVNWY=; b=O5ZQPp0IiW3uPFBcvjCxDDaPPYDWUgpalmjAi1KGZqQvnwevCKKAQzxEiueFaV0g2W dViW84YrO63379++p8mcDFrLCqrqh37DGcYaAZ19d5mNvdU8dbjn8smAFCxZq3vy3Rvm +ORh15O9Y1JFcvJjnO0/7q7KvBjHWkLdL+6BCjcZY9nS0iwSPsRsu160uUu1295Y4YKk 28QUVkaCh/u17ObrqvYSLtxOJp6T+1o4+eWKWKGgvLn67U+pOOaLP3uy4Ahl8j+Ucf/q XdTd10MhQgREaowQFVCHLry6zT4Pg3HuQv0hwcBXgHunz8FzF83cTr6iEwR0Qs0Avu9r ihNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OKiYzusp; 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-64741-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64741-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWlLhG6t2j0duDqjRuwMbjcVfbfp98jAlDFjeDbLsI+ILUwpUIOCEgBgUX1LIzljZVeG+s3uSNY6vrWTgRo3DQOVsfVbw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z23-20020a05620a08d700b00787158bd882si4371818qkz.238.2024.02.13.20.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 20:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64741-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OKiYzusp; 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-64741-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64741-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 804531C28391 for ; Wed, 14 Feb 2024 04:55:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F11BD30B; Wed, 14 Feb 2024 04:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OKiYzusp" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 4184D11CBD for ; Wed, 14 Feb 2024 04:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707886485; cv=none; b=AyArDKpLXY7ek2csYA9qof/cRxKJeHMiu3tdk4WIkBFgpuX86BbsFQYELg/ZWRo3Pz8njKuauK+hIvnF8xqzR8tpVXDyOgF7bGBRO52cejPpRnTsd4rh4023UDnSHqRCjqBzN5VRD5zybhBSmP89dMajWtkaiocHjyAk03bFlbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707886485; c=relaxed/simple; bh=d/hQVr7HLwaHgpbOrtRFt5ktwlU8Fbwq9EyeSqxfkuQ=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=ZkTNWAW9RrFdFeGKjgAgUjBcJGZah56EPedNLNbUtWXGPbfyxR2uVLmL/1c+LiRhR9XPXQkModbmEYV1n7E03cfllYzLzC/qpT26SdGRsla3lhLn4gyDVzvIpmbonyELMSkMt4RlmY2U1qBlOAj9/nzj8DNB8N1pLHbM4QU/r24= 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=OKiYzusp; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc74ac7d015so7382819276.0 for ; Tue, 13 Feb 2024 20:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707886483; x=1708491283; 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=OKiYzusp+vQXupBh2m/3KN//hxorBgcscjkzKzQJ5bkmyNZygNryMDqGsJ+i+ju/dd wsC71guPBN0S2TyPcpDxqKq8Dq6636tWxTWk+69/yQZ9svs2ey0W9vy+TmVMxLwrIRZ0 7XE19/ZT1sTF3REKfppx1B17JU5nad5o0g/JlvrUiR/j51h4CsW+a76JCIOlSFeTkVSL 0D+GdEqq6DwIej/+pxcAgBx4PVmMpjU/AXJuJsjR6hbUVzmzY8z51NGji9G8zbEF5DbJ BjlNpH3HdDa0l1rBzkIVauvQqcGwxcj5dUHJbtlT4uSGRR8g/G+/wxyu6xqouJPP3SHV Cggw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707886483; x=1708491283; 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=ewOqDfIuQa/LEuD1sfR/j5dKxoKCGPpb28n9/rRPZ7luZqWra//dAxPjoL0MRyelzP koIq6mhkeJoKRKakQKFDDU5VVp2S0sAmWJMOUr61R/Pn4got/p+1CFF8goDHbh0MKUE2 NSt6300PUMXlFMXvbfaDFEmZi4vZbIDdphBXTaq2sgo4KYJ1rVoXVVAQ6lDxVZAIIrtx FLxb+lqy3sLejf1pf4aVgj+SMd5YhgHPf3FfkwzSWg90bA3yGdyO9G5Q4rMyUppNgsVf HUabWbyN4+v9NpRPo5or+vHm9NKp5tgElkdOVF8PcnPxXP3+M1d8EtQeg42yOUIBjYq3 ckGw== X-Forwarded-Encrypted: i=1; AJvYcCVlJRQ2yYlOl16YEvYE4y6bQ7JHW87975fXKoN+szNcSmtmbgvAz7Q+JwKgysEHkGZ1mdbRCopopub1tXTRUlXLIMegOV6KONKjunt2 X-Gm-Message-State: AOJu0Yw0QBRAX3MvK2+KqykQRGjiua1Dn3lXbvDOI3BKw7XvGVcZjmwq rOorzcyxk/SYTglABbN9gye3pT4/PsiJrGjKWyQcBeZ3VyFE1++sv7ltuH0CWIcwEnZB4MmAtf3 DYDk2kg== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:6d92:85eb:9adc:66dd]) (user=irogers job=sendgmr) by 2002:a05:6902:82:b0:dc7:9218:df3b with SMTP id h2-20020a056902008200b00dc79218df3bmr61457ybs.10.1707886483182; Tue, 13 Feb 2024 20:54:43 -0800 (PST) Date: Tue, 13 Feb 2024 20:53:53 -0800 In-Reply-To: <20240214045356.748330-1-irogers@google.com> Message-Id: <20240214045356.748330-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: <20240214045356.748330-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Subject: [PATCH v4 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790848860975749765 X-GMAIL-MSGID: 1790848860975749765 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 */