[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250424150039.5a8c452c@gandalf.local.home>
Date: Thu, 24 Apr 2025 15:00:39 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>, Mark Rutland
<mark.rutland@....com>, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Andrew Morton <akpm@...ux-foundation.org>, Josh Poimboeuf
<jpoimboe@...nel.org>, x86@...nel.org, Peter Zijlstra
<peterz@...radead.org>, Ingo Molnar <mingo@...nel.org>, Arnaldo Carvalho de
Melo <acme@...nel.org>, Indu Bhagat <indu.bhagat@...cle.com>, Alexander
Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa
<jolsa@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Ian Rogers
<irogers@...gle.com>, Adrian Hunter <adrian.hunter@...el.com>,
linux-perf-users@...r.kernel.org, Mark Brown <broonie@...nel.org>,
linux-toolchains@...r.kernel.org, Jordan Rome <jordalgo@...a.com>, Sam
James <sam@...too.org>, Andrii Nakryiko <andrii.nakryiko@...il.com>, Jens
Remus <jremus@...ux.ibm.com>, Florian Weimer <fweimer@...hat.com>, Andy
Lutomirski <luto@...nel.org>, Weinan Liu <wnliu@...gle.com>, Blake Jones
<blakejones@...gle.com>, Beau Belgrave <beaub@...ux.microsoft.com>, "Jose
E. Marchesi" <jemarch@....org>
Subject: Re: [PATCH v5 08/17] unwind_user/deferred: Add unwind cache
On Thu, 24 Apr 2025 12:25:37 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> --- a/include/linux/unwind_deferred.h
> +++ b/include/linux/unwind_deferred.h
> @@ -12,6 +12,11 @@ void unwind_task_free(struct task_struct *task);
>
> int unwind_deferred_trace(struct unwind_stacktrace *trace);
>
> +static __always_inline void unwind_enter_from_user_mode(void)
> +{
> + current->unwind_info.cache.nr_entries = 0;
> +}
> +
Hmm, the first patches just had unwind_enter_from_user_mode(), but the
later patches (that I'm currently working on) have unwind_exit_to_user_mode().
I think the exit is better than the entry, and I will change this to just
use the exit_to_user_mode and removed the enter_from_user_mode.
-- Steve
Powered by blists - more mailing lists