Skip to content

Commit 8b4a014

Browse files
committed
Merge tag 'linux_kselftest-fixes-6.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan: "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 by calling sample_events twice to eliminate the kmem_cache_free related noise from the sampling" * tag 'linux_kselftest-fixes-6.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/tracing: Run sample events to clear page cache events
2 parents d0309c0 + dd4adb9 commit 8b4a014

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/testing/selftests/ftrace/test.d/filter/event-filter-function.tc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ sample_events() {
2020
echo 0 > tracing_on
2121
echo 0 > events/enable
2222

23+
# Clear functions caused by page cache; run sample_events twice
24+
sample_events
25+
sample_events
26+
2327
echo "Get the most frequently calling function"
2428
echo > trace
2529
sample_events

0 commit comments

Comments
 (0)