[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250410150555.7797d195@gandalf.local.home>
Date: Thu, 10 Apr 2025 15:05:55 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Junxuan Liao <ljx@...wisc.edu>
Cc: Frederic Weisbecker <frederic@...nel.org>, "Paul E. McKenney"
<paulmck@...nel.org>, linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org, Masami Hiramatsu <mhiramat@...nel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Subject: Re: Interface for enabling context tracking
On Thu, 10 Apr 2025 13:51:39 -0500
Junxuan Liao <ljx@...wisc.edu> 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 tracking is by default inactive and the only way to enable it is
> to turn on nohz_full for some CPUs.
>
> Is it a good idea to support turning on and off context tracking through
> some interface accessible from the userspace?
>
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
Powered by blists - more mailing lists