Skip to contentSkip to conversation

kselftest fixes update for Linux 6.18-rc6

GIT PULL Merged Shuah Khan 2 participants 2 messages Nov 13, 2025

Subsystems (2)
lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

Hi Linus,

Please pull this kselftest fixes update for Linux 6.18-rc6

Fixes event-filter-function.tc tracing test failure caused when a first run to sample events triggers kmem_cache_free which interferes with the rest of the test. Fix this calling sample_events twice to eliminate the kmem_cache_free related noise from the sampling.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 920aa3a7705a061cb3004572d8b7932b54463dbf:

selftests: cachestat: Fix warning on declaration under label (2025-10-22 09:23:18 -0600)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-6.18-rc6

for you to fetch changes up to dd4adb986a86727ed8f56c48b6d0695f1e211e65:

selftests/tracing: Run sample events to clear page cache events (2025-11-10 18:00:07 -0700)

----------------------------------------------------------------
linux_kselftest-fixes-6.18-rc6

Fixes event-filter-function.tc tracing test failure caused when a first run to sample events triggers kmem_cache_free which interferes with the rest of the test. Fix this calling sample_events twice to eliminate the kmem_cache_free related noise from the sampling.

----------------------------------------------------------------
Steven Rostedt (1):
selftests/tracing: Run sample events to clear page cache events

 tools/testing/selftests/ftrace/test.d/filter/event-filter-function.tc | 4 ++++
 1 file changed, 4 insertions(+)

----------------------------------------------------------------

tools/testing/selftests/ftrace/test.d/filter/event-filter-function.tc +4 -0
index c62165fabd0c..cfa16aa1f39a 100644
@@ -20,6 +20,10 @@ sample_events() {
 echo 0 > tracing_on
 echo 0 > events/enable
 
+# Clear functions caused by page cache; run sample_events twice
+sample_events
+sample_events
+
 echo "Get the most frequently calling function"
 echo > trace
 sample_events
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 13 Nov 2025 11:52:37 -0700:

The pull request you sent on Thu, 13 Nov 2025 11:52:37 -0700:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-6.18-rc6

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/8b4a014e2865a970c18c1e9bba2b5c5a7322045f

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html