Re: [PATCH v5 06/34] function_graph: Allow multiple users to attach to function graph

From: Google
Date: Tue Dec 26 2023 - 10:24:36 EST


Hi,

On Wed, 20 Dec 2023 00:45:40 +0900
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:

> OK, I think we need a "rsrv_ret_stack" index. Basically new one will do;
>
> (1) increment rsrv_ret_stack
> (2) write a reserve type entry
> (3) set curr_ret_stack = rsrv_ret_stack
>
> And before those,
>
> (0) if rsrv_ret_stack != curr_ret_stack, write a reserve type entry at
> rsrv_ret_stack for the previous frame (which offset can be read
> from curr_ret_stack)
>
> Than it will never be broken.
> (of course when decrement curr_ret_stack, rsrv_ret_stack is also decremented)
>

So here is an additional patch for this issue. I'll make v6 with this.

Thanks,