Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1242864rwe; Thu, 25 Aug 2022 19:37:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ldItK3JMRaATiCQOeBxsYr476Upruu4+2huCjlQ/WhF0Xt80MB0V8vOQHX5oST1FZ9v5k X-Received: by 2002:a17:902:9683:b0:172:a112:4fda with SMTP id n3-20020a170902968300b00172a1124fdamr1773134plp.8.1661481458857; Thu, 25 Aug 2022 19:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661481458; cv=none; d=google.com; s=arc-20160816; b=ssvC574DKgs6v+tXx+oRl9GBhv4jcrG0GzgWJC+j0xzPSu6HyXobywbJOgKV3DuaQW SiNTqm0V43RGM5GGaSY7w6fIFTA/0zXOLLI8OA67uWedP5fr6SfP91EC/6VwBUn81/rd VhAnYg+1x1GXAl4ljZoj7PBDrkJr7z3nQwdq2vuXwM4Pwe7ob/hjMbQUlTuve8sU0QPG e7Ywd1AHGAivszGRSLwGPuCMuVCx1dCoMvdgRioYt3qZW3XiWLnAIiuBY+Pnxt05B5LK ZK0/hVWsuHrAa5BI2zaNuqYxws4N4Bp1B12gLcMMf1WOYjWrNR2rcd8wOS9Sj1WrKQXY Dczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Kzixri34zypG42ufXkKog0/vGiEDa4wFdROo3hsMZ/I=; b=xTIiAN1jcik9qk40ynAWe2xjEZOnI3TNoR3CgXXh1Zi01QyFD1mjbXlQc3Tpjr1dwS /zQ3mzLH6fdcjCJMV02Oz2QFQXHulNTgHjyyAhLG/cCA7JXVUJFfnibudQVYGTSOwS37 4Ni9Jr4vN7Td4rngrG7H1oqRD+KAZ0Vfp6Av03y3ikCTiB99wE1V82PR1vJzwiTNAASy uvZ4sL859l29simSdoxJBMOGlhchWmmiKO5PaKjLrtjisRhuPyr+RQTRpYC0GlnQFzNr TgM6iA2qGOCa5pxRg6e0mvf+ju4ebSMQj9BlPJMyqbDYpoZKsZr+0Tf+eB2Lhz/aozY2 aV6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Qf1dx/wj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a17090340c300b00173a756597esi449400pld.552.2022.08.25.19.37.28; Thu, 25 Aug 2022 19:37:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Qf1dx/wj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244687AbiHZCFY (ORCPT + 99 others); Thu, 25 Aug 2022 22:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244678AbiHZCFT (ORCPT ); Thu, 25 Aug 2022 22:05:19 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 802C5BB011 for ; Thu, 25 Aug 2022 19:05:18 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id n17so160632wrm.4 for ; Thu, 25 Aug 2022 19:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=Kzixri34zypG42ufXkKog0/vGiEDa4wFdROo3hsMZ/I=; b=Qf1dx/wjrJ5w+gBl9YpLh+MGBOaHIqba8h2ReNzk5Iw9C/ioKt0zwxnw4HpuyVKWZ0 ACuuzxk/Ifn982l6uN/T+CISfy7JW0V01msa/MQK4g2ij4HSK9sVosgNuYV0KZsvcYuG evyM5usTgCmfVcXQNLx4wbI7Nurz0r7g2qtdG57zf0rQsNoLaIaL+YUnDzFxFHmHa0bD io2Nq1FMQ+UmYeWk+uPsDtaycgz6qgOrMzLzgyS2BD5DDHtsxmZBvqiXHXwNbMKA8/af tzdfNDJlmh6B/0NAE2DSb2jYCrbFVEYR5QDx52z9xGeufUxGBuBiy25vgGCeh37FVSsv M6qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=Kzixri34zypG42ufXkKog0/vGiEDa4wFdROo3hsMZ/I=; b=UO1g5UGapqXhgzVN5VvS5ees1ko06RutwV8mIFTkunhavmnQaFMpOF+iCsrFxqyAVw /u1rMcKwQfCAtDrPYtGEo2k2myRs+4EjIYDKcrFE0m8Y8hHmQX8vj8Gdbb+kMGe6GTjP o3XOCkUDAaUQrw0ikoTSx/SX8MbSwpLaFdR8eqQs2Aar1zDA2g9KCIm6Ly6nqENN8yHt Q4O9461jWYvQUQqKsE6WgqiULTnW69ImVl3vsvEz7jCGrqzH53FnqkVL8KjrW/7ws+eL Ea2DR0xDosRrmJ68QL2YHIzwTNtGHVr+qnTlNtHW8Re+511O9czKIQXXI+l3MdgJriJY INPw== X-Gm-Message-State: ACgBeo3/R1ctF1EKP3gNom2Ugv8J4KdCWjT/WQxkTEts8le/mL2Jza9H 5ke2eOVVbJNBw3DC6dCIVGY1ff1P66UMhXzck6j3Sw== X-Received: by 2002:a5d:6d0c:0:b0:225:4ff9:7e67 with SMTP id e12-20020a5d6d0c000000b002254ff97e67mr3663872wrq.534.1661479516896; Thu, 25 Aug 2022 19:05:16 -0700 (PDT) MIME-Version: 1.0 References: <20220825213905.1817722-1-haoluo@google.com> In-Reply-To: From: Yosry Ahmed Date: Thu, 25 Aug 2022 19:04:40 -0700 Message-ID: Subject: Re: [PATCH bpf-next 0/2] Add CGROUP prefix to cgroup_iter_order To: Andrii Nakryiko Cc: Hao Luo , Linux Kernel Mailing List , bpf , Networking , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , John Fastabend , Jiri Olsa , Stanislav Fomichev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 7:03 PM Andrii Nakryiko wrote: > > On Thu, Aug 25, 2022 at 4:20 PM Yosry Ahmed wrote: > > > > On Thu, Aug 25, 2022 at 2:56 PM Andrii Nakryiko > > wrote: > > > > > > On Thu, Aug 25, 2022 at 2:39 PM Hao Luo wrote: > > > > > > > > As suggested by Andrii, add 'CGROUP' to cgroup_iter_order. This fix is > > > > divided into two patches. Patch 1/2 fixes the commit that introduced > > > > cgroup_iter. Patch 2/2 fixes the selftest that uses the > > > > cgroup_iter_order. This is because the selftest was introduced in a > > > > > > but if you split rename into two patches, you break selftests build > > > and thus potentially bisectability of selftests regressions. So I > > > think you have to keep both in the same patch. > > > > I thought fixes to commits still in bpf-next would get squashed. Would > > you mind elaborating why we don't do this? > > > > We don't amend follow up fixes into original commits and preserve history. Got it. Thanks Andrii. > > > > > > > With that: > > > > > > Acked-by: Andrii Nakryiko > > > > > > > different commit. I tested this patchset via the following command: > > > > > > > > test_progs -t cgroup,iter,btf_dump > > > > > > > > Hao Luo (2): > > > > bpf: Add CGROUP to cgroup_iter order > > > > selftests/bpf: Fix test that uses cgroup_iter order > > > > > > > > include/uapi/linux/bpf.h | 10 +++--- > > > > kernel/bpf/cgroup_iter.c | 32 +++++++++---------- > > > > tools/include/uapi/linux/bpf.h | 10 +++--- > > > > .../selftests/bpf/prog_tests/btf_dump.c | 2 +- > > > > .../prog_tests/cgroup_hierarchical_stats.c | 2 +- > > > > .../selftests/bpf/prog_tests/cgroup_iter.c | 10 +++--- > > > > 6 files changed, 33 insertions(+), 33 deletions(-) > > > > > > > > -- > > > > 2.37.2.672.g94769d06f0-goog > > > >