Re: Interface for enabling context tracking
From: Junxuan Liao
Date: Thu Apr 17 2025 - 15:11:24 EST
On 4/10/25 2:05 PM, Steven Rostedt wrote:
> I think the best thing to do is to add trace events in all areas that enter
> and exit the kernel normally (where noinstr is turned off). There's already
> one for page faults on entry. It's been on my todo list to add one for page
> fault exit (as I do care for how long they last.
>
> I believe the irq vectors also have entry and exits trace events.
>
> What else is missing?
>
> -- Steve
Just found out that the exit tracepoints for syscalls aren't always
exactly preceding the exit to userspace. The kernel can still spend
quite some time in task_work_run after the tracepoints are triggered.
Has that bothered you before?
--
Junxuan