Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1227402rdg; Fri, 13 Oct 2023 14:28:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4SkU/Zl2epZqUsLSkgjiD7hhsyk1BLzSjs/F3nFDgUg/OdBoIdwNvT7QIkeBxb67POIPm X-Received: by 2002:a05:6a00:1a94:b0:68a:5e5b:e450 with SMTP id e20-20020a056a001a9400b0068a5e5be450mr30867160pfv.26.1697232490735; Fri, 13 Oct 2023 14:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697232490; cv=none; d=google.com; s=arc-20160816; b=Bk7lc3sNFfzi20brzRXl9C7fDkWBTG6gdGPhS+x4rspTMaZU7xbJN+QBhJXxpoWcew TrEP3zH01clmVJKusRCWGdmJh33w5mNsyNvvZOo/Q9DFn7eSB+CHa2xrhp7xvyQt9YXC j/ztli5J2LpDE+LL+D83Ln9HT1akIk5yTy30wxtdJGDCPVBvJ3y0BXoWnwA+ku0xHUev qpsi9ogJFoid9988qSoYOoyRk3DbLrGFHj+VVA/fpDo2F3VsDOGTZUOzgVXDwewNdif5 1a+cgSTSuoKf0dYlQHFCOgOpd4DisBuQRXoOMNEnShkfNDrR421Mq8N3djYJIsfI5t5h ZoyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p64ey+Hmhn7w3szjg3EYf/Ayo/C6KBIGFFRqgW96fX8=; fh=luN1T+TZmJdWrv2MwLqOcKf0btUR/zj1LntAQkciNa8=; b=QDLThHMsSA2lnKIILnzPsnuREqrOgyyOnyIdJHNYnLAYZEdUhbf/G5oiVc2Llu5yrs ulePKQ4eEthvSujYNSUZsnqSNy/hOZJt++l3btRNbEKJVSdKsJ5vfuvf3AX/+2Z2md6z +KbSQxJgsCJK/2C40QGgSnhffOGpcsqOsEwWBkutQHoakqXmh3C8T3sDZEraVUqO1cIJ dJYHcXfuxuGjlzC0PDdZz23cxL9NZA0jAyANL8UzMmW3OILCuOnEC1Y7UhX9uaMx8aYV oHBbMHTnltFDj8Ra0HOh0Bm1+wNI3je6cphdccauXTTxCOlAI6LVSPOBsIH/bYXr+Se6 +MCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bd7hjyYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o2-20020a056a0015c200b0068fba252466si18424666pfu.169.2023.10.13.14.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 14:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bd7hjyYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5F8C383D10E1; Fri, 13 Oct 2023 14:28:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbjJMV1t (ORCPT + 99 others); Fri, 13 Oct 2023 17:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232267AbjJMV1r (ORCPT ); Fri, 13 Oct 2023 17:27:47 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C816B7; Fri, 13 Oct 2023 14:27:43 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-53406799540so4444844a12.1; Fri, 13 Oct 2023 14:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697232461; x=1697837261; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p64ey+Hmhn7w3szjg3EYf/Ayo/C6KBIGFFRqgW96fX8=; b=bd7hjyYEsBrda63hdg63s5Vh4xWK3rTNekLm+RQ2DLUJDo3BfyxnHHIouyj7mHQpV9 HHLEBUolvJnRr6lN+pBCyFBmSXFct0/AiIvvJEkKcv5dj+oHG9he9wkAWC+/yUZiFMCl rUTRIPtlmY5884tGRgLsZxWSUvGq7xtrUYuOYdhb8G9nelEr1yWlZqvzwSv6z4m96616 SpSeSMlCJV0++W3dz+ErzLSqGZRlwzcQRuaL1emvAXbv3u1fYRcr3yI03DVzlbyG2ocC UYHMBFwaiYnLMl/Ax0uMy+wUR/Bsn/SM9g/9WLGrFrUQgPLCRGGVycBPawDQUvigcKhz DA8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697232461; x=1697837261; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p64ey+Hmhn7w3szjg3EYf/Ayo/C6KBIGFFRqgW96fX8=; b=GQuqEGJ3yKDoGrMUmEeojykGi9LqcYDz+H69T1oWa2147QLyj/BZf7ZFs1bTbUaczI hay7Y4Lws/D40ybvtIVVeAa1CJu8lvYqL3XHvFj8yoaJGyFYJIFLHjtogobmGfFiwcbL kiOQBiAxZkgAAOSFV4nUXeZyO45vCOEt9HqsHU4BQcehpui/eMTm4XQ1AH3JnOlbyVXr MqhDBZuNHGnXOIVocE/UN2JC3M7b9m2XNY0Xc+2YjBPHqJlwDZosX3yi+ibG3Audq7Ch LxBB9Sa2BdDT1Yl0uAA2+JmRt/dp/nWrOEEJT+E1+27hqHLt4+3xlmC+YzJzXhz8LXzG lu0A== X-Gm-Message-State: AOJu0YyVGQHVJQ9lTcIi2EGHOumJr3arrlyy/mcfQOzVklkLoLsoKY83 I6LX+cLnHXRk7Kxl0rqPEsj0gXs7mlb3eYdtUq8= X-Received: by 2002:aa7:d1d8:0:b0:523:4a4e:3b57 with SMTP id g24-20020aa7d1d8000000b005234a4e3b57mr24337173edp.13.1697232461447; Fri, 13 Oct 2023 14:27:41 -0700 (PDT) MIME-Version: 1.0 References: <20231011120857.251943-1-zhouchuyi@bytedance.com> <20231011120857.251943-8-zhouchuyi@bytedance.com> In-Reply-To: <20231011120857.251943-8-zhouchuyi@bytedance.com> From: Andrii Nakryiko Date: Fri, 13 Oct 2023 14:27:30 -0700 Message-ID: Subject: Re: [PATCH bpf-next v5 7/8] selftests/bpf: rename bpf_iter_task.c to bpf_iter_tasks.c To: Chuyi Zhou Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, tj@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 14:28:06 -0700 (PDT) On Wed, Oct 11, 2023 at 5:09=E2=80=AFAM Chuyi Zhou wrote: > > The newly-added struct bpf_iter_task has a name collision with a selftest > for the seq_file task iter's bpf skel, so the selftests/bpf/progs file is > renamed in order to avoid the collision. > > Signed-off-by: Chuyi Zhou > --- Acked-by: Andrii Nakryiko > .../selftests/bpf/prog_tests/bpf_iter.c | 18 +++++++++--------- > .../{bpf_iter_task.c =3D> bpf_iter_tasks.c} | 0 > 2 files changed, 9 insertions(+), 9 deletions(-) > rename tools/testing/selftests/bpf/progs/{bpf_iter_task.c =3D> bpf_iter_= tasks.c} (100%) > > diff --git a/tools/testing/selftests/bpf/prog_tests/bpf_iter.c b/tools/te= sting/selftests/bpf/prog_tests/bpf_iter.c > index 1f02168103dd..dc60e8e125cd 100644 > --- a/tools/testing/selftests/bpf/prog_tests/bpf_iter.c > +++ b/tools/testing/selftests/bpf/prog_tests/bpf_iter.c > @@ -7,7 +7,7 @@ > #include "bpf_iter_ipv6_route.skel.h" > #include "bpf_iter_netlink.skel.h" > #include "bpf_iter_bpf_map.skel.h" > -#include "bpf_iter_task.skel.h" > +#include "bpf_iter_tasks.skel.h" > #include "bpf_iter_task_stack.skel.h" > #include "bpf_iter_task_file.skel.h" > #include "bpf_iter_task_vma.skel.h" > @@ -215,12 +215,12 @@ static void *do_nothing_wait(void *arg) > static void test_task_common_nocheck(struct bpf_iter_attach_opts *opts, > int *num_unknown, int *num_known) > { > - struct bpf_iter_task *skel; > + struct bpf_iter_tasks *skel; > pthread_t thread_id; > void *ret; > > - skel =3D bpf_iter_task__open_and_load(); > - if (!ASSERT_OK_PTR(skel, "bpf_iter_task__open_and_load")) > + skel =3D bpf_iter_tasks__open_and_load(); > + if (!ASSERT_OK_PTR(skel, "bpf_iter_tasks__open_and_load")) > return; > > ASSERT_OK(pthread_mutex_lock(&do_nothing_mutex), "pthread_mutex_l= ock"); > @@ -239,7 +239,7 @@ static void test_task_common_nocheck(struct bpf_iter_= attach_opts *opts, > ASSERT_FALSE(pthread_join(thread_id, &ret) || ret !=3D NULL, > "pthread_join"); > > - bpf_iter_task__destroy(skel); > + bpf_iter_tasks__destroy(skel); > } > > static void test_task_common(struct bpf_iter_attach_opts *opts, int num_= unknown, int num_known) > @@ -307,10 +307,10 @@ static void test_task_pidfd(void) > > static void test_task_sleepable(void) > { > - struct bpf_iter_task *skel; > + struct bpf_iter_tasks *skel; > > - skel =3D bpf_iter_task__open_and_load(); > - if (!ASSERT_OK_PTR(skel, "bpf_iter_task__open_and_load")) > + skel =3D bpf_iter_tasks__open_and_load(); > + if (!ASSERT_OK_PTR(skel, "bpf_iter_tasks__open_and_load")) > return; > > do_dummy_read(skel->progs.dump_task_sleepable); > @@ -320,7 +320,7 @@ static void test_task_sleepable(void) > ASSERT_GT(skel->bss->num_success_copy_from_user_task, 0, > "num_success_copy_from_user_task"); > > - bpf_iter_task__destroy(skel); > + bpf_iter_tasks__destroy(skel); > } > > static void test_task_stack(void) > diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_task.c b/tools/te= sting/selftests/bpf/progs/bpf_iter_tasks.c > similarity index 100% > rename from tools/testing/selftests/bpf/progs/bpf_iter_task.c > rename to tools/testing/selftests/bpf/progs/bpf_iter_tasks.c > -- > 2.20.1 >