Re: Interface for enabling context tracking

2025-04-17 Thread Steven Rostedt
On Thu, 17 Apr 2025 14:10:53 -0500 Junxuan Liao wrote: > 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

Re: Interface for enabling context tracking

2025-04-17 Thread Junxuan Liao
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

Re: Interface for enabling context tracking

2025-04-11 Thread Frederic Weisbecker
Le Fri, Apr 11, 2025 at 12:41:37PM -0500, Junxuan Liao a écrit : > > > > Are you interested in working on joining the noble quest of getting the > > > rest of the nohz_full support in place? (Full disclosure: This stuff > > > is non-trivial.) > > > > I believe the request is more of just tracing

Re: Interface for enabling context tracking

2025-04-11 Thread Junxuan Liao
Are you interested in working on joining the noble quest of getting the rest of the nohz_full support in place? (Full disclosure: This stuff is non-trivial.) I believe the request is more of just tracing entry and exit from the kernel, which just needs a simple trace event at the border cros

Re: Interface for enabling context tracking

2025-04-10 Thread Junxuan Liao
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 f

Re: Interface for enabling context tracking

2025-04-10 Thread Steven Rostedt
On Thu, 10 Apr 2025 12:10:19 -0700 "Paul E. McKenney" wrote: > There is some in-kernel support for turning the rcu_nocbs portion > of nohz_full on and off on a per-CPU basis, but a given CPU must be > offline in order to do this transition. Last I heard, there are still > issues preventing this

Re: Interface for enabling context tracking

2025-04-10 Thread Paul E. McKenney
On Thu, Apr 10, 2025 at 01:51:39PM -0500, Junxuan Liao wrote: > Hi all, > > From what I can tell, tracepoints context_tracking:user_enter and > user_exit might be useful for performance analysis. e.g. Figuring out how > much time is spent handling page faults or in system calls. However > context

Re: Interface for enabling context tracking

2025-04-10 Thread Steven Rostedt
On Thu, 10 Apr 2025 13:51:39 -0500 Junxuan Liao wrote: > Hi all, > > From what I can tell, tracepoints context_tracking:user_enter and > user_exit might be useful for performance analysis. e.g. Figuring out how > much time is spent handling page faults or in system calls. However > context trac