On May 16, 2025 10:04:50 AM EDT, Will Deacon <w...@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


Reply via email to