[LTP] [PATCH 4/4] scripts/coccinelle: Helper for converting CGroup selftests
Cyril Hrubis
chrubis@suse.cz
Tue Dec 14 12:15:09 CET 2021
Hi!
> +@@
> +expression cg;
> +@@
> +
> +... when != TST_CGROUP_VER(...)
> +
> +- SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+memory");
> ++ if (TST_CGROUP_VER(cg, "memory") != TST_CGROUP_V1)
> ++ SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+memory");
I guess that here we operat on already partially converted code right?
Other than this the rest is really straightforward:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list