[PATCH] riscv: add tracepoints for page fault
Zhu Hengbo
zhuhengbo at iscas.ac.cn
Wed Jul 17 00:57:15 PDT 2024
On 2024/7/15 21:36, Matthew Wilcox wrote:
> On Mon, Jul 15, 2024 at 10:13:55AM +0000, Zhu Hengbo wrote:
>> Introduce page_fault_user and page_fault_kernel for riscv page fault.
>> Help to get more detail information when page fault happen.
> Why be different from x86?
>
> TP_printk("address=%ps ip=%ps error_code=0x%lx",
> (void *)__entry->address, (void *)__entry->ip,
> __entry->error_code) );
>
> adding the instruction pointer (ip) seems like it would be useful.
>
Yes, adding the ip information will indeed be helpful. I will update this patch.
Thanks for the suggestion.
>> + TP_printk("user page fault, address=%ps cause=0x%lx",
>> + (void *)__entry->address, __entry->cause)
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
More information about the linux-riscv
mailing list