mbox series

[v4,bpf-next,0/6] bpf: Add support for cgroup1, BPF part

Message ID 20231111090034.4248-1-laoar.shao@gmail.com (mailing list archive)
Headers show
Series bpf: Add support for cgroup1, BPF part | expand

Message

Yafang Shao Nov. 11, 2023, 9 a.m. UTC
This is the BPF part of the series "bpf, cgroup: Add BPF support for
cgroup1 hierarchy" with adjustment in the last two patches compared
to the previous one.

v3->v4:
  - use subsys_name instead of cgrp_name in get_cgroup_hierarchy_id()
    (Tejun)
  - use local bpf_link instead of modifying the skeleton in the
    selftests
v3: https://lwn.net/Articles/949264/

Yafang Shao (6):
  bpf: Add a new kfunc for cgroup1 hierarchy
  selftests/bpf: Fix issues in setup_classid_environment()
  selftests/bpf: Add parallel support for classid
  selftests/bpf: Add a new cgroup helper get_classid_cgroup_id()
  selftests/bpf: Add a new cgroup helper get_cgroup_hierarchy_id()
  selftests/bpf: Add selftests for cgroup1 hierarchy

 kernel/bpf/helpers.c                               |  20 +++
 tools/testing/selftests/bpf/cgroup_helpers.c       | 116 ++++++++++++---
 tools/testing/selftests/bpf/cgroup_helpers.h       |   4 +-
 .../selftests/bpf/prog_tests/cgroup1_hierarchy.c   | 158 +++++++++++++++++++++
 .../testing/selftests/bpf/prog_tests/cgroup_v1v2.c |   2 +-
 .../selftests/bpf/progs/test_cgroup1_hierarchy.c   |  72 ++++++++++
 6 files changed, 353 insertions(+), 19 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_cgroup1_hierarchy.c

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 14, 2023, 5:10 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Sat, 11 Nov 2023 09:00:28 +0000 you wrote:
> This is the BPF part of the series "bpf, cgroup: Add BPF support for
> cgroup1 hierarchy" with adjustment in the last two patches compared
> to the previous one.
> 
> v3->v4:
>   - use subsys_name instead of cgrp_name in get_cgroup_hierarchy_id()
>     (Tejun)
>   - use local bpf_link instead of modifying the skeleton in the
>     selftests
> v3: https://lwn.net/Articles/949264/
> 
> [...]

Here is the summary with links:
  - [v4,bpf-next,1/6] bpf: Add a new kfunc for cgroup1 hierarchy
    https://git.kernel.org/bpf/bpf-next/c/fe977716b40c
  - [v4,bpf-next,2/6] selftests/bpf: Fix issues in setup_classid_environment()
    https://git.kernel.org/bpf/bpf-next/c/484977558784
  - [v4,bpf-next,3/6] selftests/bpf: Add parallel support for classid
    https://git.kernel.org/bpf/bpf-next/c/f744d35ecf46
  - [v4,bpf-next,4/6] selftests/bpf: Add a new cgroup helper get_classid_cgroup_id()
    https://git.kernel.org/bpf/bpf-next/c/c1dcc050aa64
  - [v4,bpf-next,5/6] selftests/bpf: Add a new cgroup helper get_cgroup_hierarchy_id()
    https://git.kernel.org/bpf/bpf-next/c/bf47300b186f
  - [v4,bpf-next,6/6] selftests/bpf: Add selftests for cgroup1 hierarchy
    https://git.kernel.org/bpf/bpf-next/c/360769233cc9

You are awesome, thank you!