2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools
Li Wang e487a5d513 selftest/mm: make hugetlb_reparenting_test tolerant to async reparenting
In cgroup v2, memory and hugetlb usage reparenting is asynchronous.  This
can cause test flakiness when immediately asserting usage after deleting a
child cgroup.  To address this, add a helper function
`assert_with_retry()` that checks usage values with a timeout-based retry.
This improves test stability without relying on fixed sleep delays.

Also bump up the tolerance size to 7MB.

To avoid False Positives:
  ...
  # Assert memory charged correctly for child only use.
  # actual a = 11 MB
  # expected a = 0 MB
  # fail
  # cleanup
  # [FAIL]
  not ok 11 hugetlb_reparenting_test.sh -cgroup-v2 # exit=1
  # 0
  # SUMMARY: PASS=10 SKIP=0 FAIL=1

Link: https://lkml.kernel.org/r/20250407084201.74492-1-liwang@redhat.com
Signed-off-by: Li Wang <liwang@redhat.com>
Tested-by: Donet Tom <donettom@linux.ibm.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Kirill A. Shuemov <kirill.shutemov@linux.intel.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-05-11 17:48:18 -07:00
..
accounting
arch x86/insn: Fix CTEST instruction decoding 2025-04-24 20:19:17 +02:00
bootconfig
bpf bpf-next-6.15 2025-03-30 12:43:03 -07:00
build perf tools changes for v6.15 2025-03-31 08:52:33 -07:00
certs
cgroup
counter
crypto
debugging taint: Add TAINT_FWCTL 2025-03-06 15:13:13 -04:00
firewire
firmware
gpio
hv tools/hv: update route parsing in kvp daemon 2025-04-25 06:07:09 +00:00
iio
include tools headers UAPI: sync linux/fs.h with the kernel sources 2025-05-11 17:48:16 -07:00
kvm/kvm_stat
laptop
leds
lib perf tools: Fix in-source libperf build 2025-04-29 12:32:31 -07:00
memory-model tools/memory-model: glossary.txt: Fix indents 2025-02-25 10:22:34 -08:00
mm
net tools: ynl-gen: validate 0 len strings from kernel 2025-05-05 18:17:47 -07:00
objtool objtool/rust: add one more noreturn Rust function for Rust 1.87.0 2025-05-07 00:08:51 +02:00
pcmcia
perf perf tools: Fix in-source libperf build 2025-04-29 12:32:31 -07:00
power Turbostat 2025.05.06 2025-04-06 12:32:43 -07:00
rcu
sched_ext sched_ext: Mark SCX_OPS_HAS_CGROUP_WEIGHT for deprecation 2025-04-08 08:53:52 -10:00
scripts tools headers: Update the syscall table with the kernel sources 2025-04-10 09:28:24 -07:00
sound ASoC: dapm-graph: set fill colour of turned on nodes 2025-02-24 18:35:54 +00:00
spi
testing selftest/mm: make hugetlb_reparenting_test tolerant to async reparenting 2025-05-11 17:48:18 -07:00
thermal
time
tracing tracing tooling updates for 6.15: 2025-03-27 17:03:01 -07:00
usb
verification tracing tooling updates for 6.15: 2025-03-27 17:03:01 -07:00
virtio tools: virtio/linux/module.h add MODULE_DESCRIPTION() define. 2025-02-25 07:10:45 -05:00
wmi
workqueue
writeback
Makefile tools/Makefile: Remove pci target 2025-03-08 14:35:32 +00:00