Re: [PATCH] perf test: Add test for events re-armed with PERF_EVENT_IOC_REFRESH
From: Francesco Nigro
Date: Wed Oct 21 2026 - 10:24:48 EST
> On systems with Transparent Huge Pages (THP) or multi-size THP (mTHP) set
> to "always" [...] As a result, overflows only reaches 489 (or fewer)
> instead of NR_EVENTS (1000), and count_overflows() returns TEST_FAIL.
Confirmed: on master with transparent_hugepage=always the software case
gets 489 of 1000 overflows. With madvise(MADV_NOHUGEPAGE) on the buffer it
gets all 1000, and the tracepoint case still gets 1. I'll send a v2 with
that change.
Thanks,
Francesco