[LTP] [PATCH v2 05/16] API/cgroup: Add more controllers to tst_cgroup
Richard Palethorpe
rpalethorpe@suse.de
Mon Mar 7 12:24:20 CET 2022
Hello Luke,
Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com> writes:
> Add the rest of the controllers that are tested in LTP controller tests
> so that they can be mounted using the cgroup api.
>
> Control files should be added on an as needed basis.
>
> Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
> ---
> v2: remove rdma controller as that is not used in any LTP tests.
> Remove control files that should be added on an as needed basis.
>
> lib/tst_cgroup.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 91 insertions(+), 1 deletion(-)
>
> diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
> index 90d91d94e..4e14a2895 100644
> --- a/lib/tst_cgroup.c
> +++ b/lib/tst_cgroup.c
> @@ -83,8 +83,19 @@ enum cgroup_ctrl_indx {
> CTRL_MEMORY = 1,
> CTRL_CPU,
> CTRL_CPUSET,
> + CTRL_IO,
> + CTRL_PIDS,
> + CTRL_HUGETLB,
> + CTRL_CPUACCT,
> + CTRL_DEVICES,
> + CTRL_FREEZER,
> + CTRL_NETCLS,
> + CTRL_NETPRIO,
> + CTRL_BLKIO,
> + CTRL_MISC,
> + CTRL_PERFEVENT
I think we need the debug controller as cgroup_fj_function is called
with that in runtest/controllers.
--
Thank you,
Richard.
More information about the ltp
mailing list