From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C453ECAAA2 for ; Thu, 25 Aug 2022 21:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243915AbiHYVjU (ORCPT ); Thu, 25 Aug 2022 17:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243874AbiHYVjQ (ORCPT ); Thu, 25 Aug 2022 17:39:16 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C32C228F for ; Thu, 25 Aug 2022 14:39:15 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-32a115757b6so365557117b3.13 for ; Thu, 25 Aug 2022 14:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc; bh=qyjREfjkq0hIeesiuObUgKl0CFQ9rAXNLG/+EmCCOug=; b=Mz+DnI4of0BYshEfym2Ka/PzJ9GfRcPKAz/WWjS7OP9u7mD+Ksba3kRYQl/jBIVHoi oG2D2uUnrOrUQmHeUurZkx93oBq1ceQ2hn96zUZLgxRDyhVewe6kN1esNGMVQtSQvwvd hOBom9axJKVPjSlESgsenu4/V0Bj1iOZPFd+8oDkkdTGkk3FpOj2eWqqu/QQag7S66ek o3FOsVesz8mzvF8Pw9i9l7QuT/O55FB4w7ZAMUyMkjxAQU4h3TfjC+osbssLeWqwETJ8 ejxR3J8KwtlQMKzLeUsTFomcDKHbkEpdjZZf1kOCcf8RwoJcg52MJ9Mp6rb9LuHOfQg1 vdEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc; bh=qyjREfjkq0hIeesiuObUgKl0CFQ9rAXNLG/+EmCCOug=; b=dqBqYdZ/TIizgO/ECIgZCyDBRQ/9eOt9eeq6vC8C+eWMAwdZwg8IHal8Qvy9touA+h 2Sv498FkZhg3OIwqEWthw5I1RQ7Kocy9K2sERx7wxYBLggEpemoNLVfdW467HJu0pjQ4 5hllXwuKKMiyZI/MSL11uOHzNKxmsCKCUNcsNsW9YG4/FAqgYS9dPG7FYT3Co3cj1SbF sDm0Lrsox2zZ+eHz5+Va7zk5qY/sjaKG0eXp5S2XvO+z94E1v7tjq5kjT8WNV+PeoGDR EdVLYlYwLJK11e4UkZ9lrACkULIzfM88NFEgp6VfJ8k78BvKUwZkwk+0YCbA7UCjka24 h2OQ== X-Gm-Message-State: ACgBeo3U9GMx05FTTRyIgfAGsd72rN/gtQTrvrVuXfwr+t1pdBEuTC0z dVB+cntlmxW9h8IVNSoz3W6g/vsve00= X-Google-Smtp-Source: AA6agR7J1T+1mDf/L7KJ6viBPp96hK/l2ak65iQp0rK0p+gbSsL7vdWeOOGRneu6yCsZT9QG2uZsweyN+M0= X-Received: from haoluo.svl.corp.google.com ([2620:15c:2d4:203:2c4f:653f:78b3:2b5b]) (user=haoluo job=sendgmr) by 2002:a25:198b:0:b0:690:65bb:9416 with SMTP id 133-20020a25198b000000b0069065bb9416mr4806243ybz.142.1661463555046; Thu, 25 Aug 2022 14:39:15 -0700 (PDT) Date: Thu, 25 Aug 2022 14:39:05 -0700 In-Reply-To: <20220825213905.1817722-1-haoluo@google.com> Mime-Version: 1.0 References: <20220825213905.1817722-1-haoluo@google.com> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220825213905.1817722-3-haoluo@google.com> Subject: [PATCH bpf-next 2/2] selftests/bpf: Fix test that uses cgroup_iter order From: Hao Luo To: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , John Fastabend , Jiri Olsa , Stanislav Fomichev , Yosry Ahmed , Hao Luo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Previous commit added a CGROUP prefix to the bpf_cgroup_iter_order. It fixes the commit that introduced cgroup iter. This commit fixes the selftest that uses the cgroup_iter_order. Because they fix two different commits, so put them in separate patches. Fixes: 88886309d2e8 ("selftests/bpf: add a selftest for cgroup hierarchical stats collection") Suggested-by: Andrii Nakryiko Signed-off-by: Hao Luo --- .../selftests/bpf/prog_tests/cgroup_hierarchical_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c b/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c index 101a6d70b863..bed1661596f7 100644 --- a/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c +++ b/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c @@ -275,7 +275,7 @@ static int setup_cgroup_iter(struct cgroup_hierarchical_stats *obj, * traverse one cgroup, so set the traversal order to "self". */ linfo.cgroup.cgroup_fd = cgroup_fd; - linfo.cgroup.order = BPF_ITER_SELF_ONLY; + linfo.cgroup.order = BPF_CGROUP_ITER_SELF_ONLY; opts.link_info = &linfo; opts.link_info_len = sizeof(linfo); link = bpf_program__attach_iter(obj->progs.dump_vmscan, &opts); -- 2.37.2.672.g94769d06f0-goog