2023-05-06 03:30:50

by Feng Zhou

[permalink] [raw]
Subject: [PATCH bpf-next v7 0/2] Introduce a new kfunc of bpf_task_under_cgroup

From: Feng Zhou <[email protected]>

Trace sched related functions, such as enqueue_task_fair, it is necessary to
specify a task instead of the current task which within a given cgroup.

Feng Zhou (2):
bpf: Add bpf_task_under_cgroup() kfunc
selftests/bpf: Add testcase for bpf_task_under_cgroup

Changelog:
v6->v7: Addressed comments from Hao Luo
- Get rid of unnecessary check
Details in here:
https://lore.kernel.org/all/[email protected]/

v5->v6: Addressed comments from Yonghong Song
- Some code format modifications.
- Add ack-by
Details in here:
https://lore.kernel.org/all/[email protected]/

v4->v5: Addressed comments from Yonghong Song
- Some code format modifications.
Details in here:
https://lore.kernel.org/all/[email protected]/

v3->v4: Addressed comments from Yonghong Song
- Modify test cases and test other tasks, not the current task.
Details in here:
https://lore.kernel.org/all/[email protected]/

v2->v3: Addressed comments from Alexei Starovoitov
- Modify the comment information of the function.
- Narrow down the testcase's hook point
Details in here:
https://lore.kernel.org/all/[email protected]/

v1->v2: Addressed comments from Alexei Starovoitov
- Add kfunc instead.
Details in here:
https://lore.kernel.org/all/[email protected]/

kernel/bpf/helpers.c | 17 ++++++
tools/testing/selftests/bpf/DENYLIST.s390x | 1 +
.../bpf/prog_tests/task_under_cgroup.c | 53 +++++++++++++++++++
.../bpf/progs/test_task_under_cgroup.c | 51 ++++++++++++++++++
4 files changed, 122 insertions(+)
create mode 100644 tools/testing/selftests/bpf/prog_tests/task_under_cgroup.c
create mode 100644 tools/testing/selftests/bpf/progs/test_task_under_cgroup.c

--
2.20.1


2023-05-06 21:55:34

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH bpf-next v7 0/2] Introduce a new kfunc of bpf_task_under_cgroup

Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <[email protected]>:

On Sat, 6 May 2023 11:15:43 +0800 you wrote:
> From: Feng Zhou <[email protected]>
>
> Trace sched related functions, such as enqueue_task_fair, it is necessary to
> specify a task instead of the current task which within a given cgroup.
>
> Feng Zhou (2):
> bpf: Add bpf_task_under_cgroup() kfunc
> selftests/bpf: Add testcase for bpf_task_under_cgroup
>
> [...]

Here is the summary with links:
- [bpf-next,v7,1/2] bpf: Add bpf_task_under_cgroup() kfunc
https://git.kernel.org/bpf/bpf-next/c/b5ad4cdc46c7
- [bpf-next,v7,2/2] selftests/bpf: Add testcase for bpf_task_under_cgroup
https://git.kernel.org/bpf/bpf-next/c/49e0263ab40f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html