Re: [RFC V1 04/16] perf/events: Replace READ_ONCE() with standard pgtable accessors

From: Peter Zijlstra

Date: Tue Feb 24 2026 - 03:48:49 EST


On Tue, Feb 24, 2026 at 10:41:41AM +0530, Anshuman Khandual wrote:
> Replace READ_ONCE() with standard page table accessors i.e pxdp_get() which
> anyways default into READ_ONCE() in cases where platform do not override.

This is a bit silly, no? All of them should always be READ_ONCE(), with
the exception of pte_get() on PAE like scenarios.