Re: [PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function

2024-06-03 Thread Google
On Mon, 3 Jun 2024 11:07:52 -0400 Steven Rostedt wrote: > On Mon, 3 Jun 2024 11:00:18 -0400 > Steven Rostedt wrote: > > > Yes, but that gets a bit complex, and requires the changing of all archs. > > If it starts to become a problem, I rather add that as a feature. That is, > > we can always go

Re: [PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function

2024-06-03 Thread Steven Rostedt
On Mon, 3 Jun 2024 11:00:18 -0400 Steven Rostedt wrote: > Yes, but that gets a bit complex, and requires the changing of all archs. > If it starts to become a problem, I rather add that as a feature. That is, > we can always go back to it. But for now, lets keep the complexity down. And if we we

Re: [PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function

2024-06-03 Thread Steven Rostedt
On Mon, 3 Jun 2024 12:11:07 +0900 Masami Hiramatsu (Google) wrote: > > From: "Steven Rostedt (Google)" > > > > In most cases function graph is used by a single user. Instead of calling > > a loop to call function graph callbacks in this case, call the function > > entry callback directly. > >

Re: [PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function

2024-06-02 Thread Google
On Sat, 01 Jun 2024 23:38:08 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > In most cases function graph is used by a single user. Instead of calling > a loop to call function graph callbacks in this case, call the function > entry callback directly. > > Add a static_key tha

[PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function

2024-06-01 Thread Steven Rostedt
From: "Steven Rostedt (Google)" In most cases function graph is used by a single user. Instead of calling a loop to call function graph callbacks in this case, call the function entry callback directly. Add a static_key that will be used to set the function graph logic to either do the loop (whe