[PATCH v6 17/22] arm64: mm: Add page fault trace points
Steven Rostedt
rostedt at goodmis.org
Fri May 16 07:42:48 PDT 2025
On May 16, 2025 10:04:50 AM EDT, Will Deacon <will at kernel.org> wrote:
>
>> + if (user_mode(regs))
>> + trace_page_fault_user(addr, regs, esr);
>> + else
>> + trace_page_fault_kernel(addr, regs, esr);
>
>Why is this after kprobe_page_fault()?
>
>It's also a shame that the RV monitor can't hook into perf, as we
>already have a sw event for page faults that you could use instead of
>adding something new.
>
Perf events work for perf only. My question is why isn't this a tracepoint that perf could hook into?
Tracepoints are made to be generic, whereas perf events are not.
-- Steve
More information about the linux-arm-kernel
mailing list