selftests: memcg: Fix test_memcontrol compilation failure
JIRA: https://issues.redhat.com/browse/RHEL-33709
MR: !4103
Tested: Compilation test was run to make sure the build was successful
after apply the patch. There were 2 test failures - test_memcg_low
and test_memcg_sock. They will be addressed after the completion
of the planned mm updates.
The test_memcontrol compilation failure was introduced by upstream commit 72b1e03aa725 ("cgroup: account for memory_localevents in test_memcg_oom_group_leaf_events()"). This MR backports the fix commit ff3b72a5d614 ("selftests: memcg: fix compilation") as well as other miscellaneous changes in that test program.
Signed-off-by: Waiman Long longman@redhat.com