Re: [PATCH] perf/core: Don't expose kernel page sizes to exclude_kernel events

From: JunYoung Lee

Date: Wed Dec 02 2026 - 07:11:13 EST


On Wed, Dec 02, 2026, Peter Zijlstra wrote:
> This is a cumbersome long Changelog for what is essentially a simple
> patch.

[...]

> This is a separate issue and should therefore be a separate patch.

[...]

> I'm thinking this is doing things at the wrong level. If exclude_kernel
> then neither data->addr nor data->ip should be kernel to begin with.
> You're now randomly fixing up one consumer of that data.

Thanks. v2 filters the IP in perf_instruction_pointer(), where data->ip
is set, splits out the pmd_bad fix and has a shorter changelog:

https://lore.kernel.org/all/20261202115902.586760-1-ljyoung04@xxxxxxxxx/

The cover letter has a question about data->addr.