Skip to contentSkip to conversation

selftests-acct-add-taskstats-tgid-retention-test.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 29

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/acct: add taskstats TGID retention test
has been removed from the -mm tree. Its filename was
selftests-acct-add-taskstats-tgid-retention-test.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Yiyang Chen <[email protected]>
Subject: selftests/acct: add taskstats TGID retention test
Date: Mon, 13 Apr 2026 23:45:45 +0800

Add a kselftest for the taskstats TGID aggregation fix.

The test creates a worker thread, snapshots TGID taskstats while the worker is still alive, lets the worker exit, and then verifies that the TGID CPU total does not regress after the thread has been reaped.

The pass/fail check intentionally keys off ac_utime + ac_stime only, which is the primary user-visible regression fixed by the taskstats change and is less sensitive to scheduling noise than context-switch counters.

---

 tools/testing/selftests/acct/.gitignore                  |    3 
 tools/testing/selftests/acct/Makefile                    |    5 
 tools/testing/selftests/acct/taskstats_fill_stats_tgid.c |  375 ++++++++++
 3 files changed, 381 insertions(+), 2 deletions(-)
tools/testing/selftests/acct/.gitignore renamed from tools/testing/selftests/acct/.gitignore~selftests-acct-add-taskstats-tgid-retention-test +2 -1
@@ -1,3 +1,4 @@
 acct_syscall
+taskstats_fill_stats_tgid
 config
-process_log
\ No newline at end of file
+process_log
tools/testing/selftests/acct/Makefile renamed from tools/testing/selftests/acct/Makefile~selftests-acct-add-taskstats-tgid-retention-test +4 -1
@@ -1,5 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 TEST_GEN_PROGS := acct_syscall
+TEST_GEN_PROGS += taskstats_fill_stats_tgid
+
 CFLAGS += -Wall
+LDLIBS += -lpthread
 
-include ../lib.mk
\ No newline at end of file
+include ../lib.mk
tools/testing/selftests/acct/taskstats_fill_stats_tgid.c new file +375 -0

375 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are