Re: [PATCH v7 14/36] function_graph: Use a simple LRU for fgraph_array index number

2024-02-14 Thread Google
On Wed, 14 Feb 2024 13:04:09 -0500 Steven Rostedt wrote: > On Wed, 7 Feb 2024 00:10:04 +0900 > "Masami Hiramatsu (Google)" wrote: > > > diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c > > index ae42de909845..323a74623543 100644 > > --- a/kernel/trace/fgraph.c > > +++

Re: [PATCH v7 14/36] function_graph: Use a simple LRU for fgraph_array index number

2024-02-14 Thread Steven Rostedt
On Wed, 7 Feb 2024 00:10:04 +0900 "Masami Hiramatsu (Google)" wrote: > diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c > index ae42de909845..323a74623543 100644 > --- a/kernel/trace/fgraph.c > +++ b/kernel/trace/fgraph.c > @@ -99,10 +99,44 @@ enum { >

[PATCH v7 14/36] function_graph: Use a simple LRU for fgraph_array index number

2024-02-06 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Since the fgraph_array index is used for the bitmap on the shadow stack, it may leave some entries after a function_graph instance is removed. Thus if another instance reuses the fgraph_array index soon after releasing it, the fgraph may confuse to call the newer