Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2024-05-27 Thread Thorsten Scherer
Hello, On Mon, May 27, 2024 at 01:51:49PM +0100, Russell King (Oracle) wrote: > On Mon, May 27, 2024 at 02:28:59PM +0200, Uwe Kleine-König wrote: > > On Mon, May 27, 2024 at 08:56:16AM +0100, Russell King (Oracle) wrote: > > > On Mon, May 27, 2024 at 09:43:41AM +0200, Thorsten Scherer wrote: > >

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2024-05-27 Thread Russell King (Oracle)
On Mon, May 27, 2024 at 02:28:59PM +0200, Uwe Kleine-König wrote: > On Mon, May 27, 2024 at 08:56:16AM +0100, Russell King (Oracle) wrote: > > On Mon, May 27, 2024 at 09:43:41AM +0200, Thorsten Scherer wrote: > > > Hello, > > > > > > in the context of a panic on an i.MX25 based v6.9 kernel [1]

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2024-05-27 Thread Uwe Kleine-König
On Mon, May 27, 2024 at 08:56:16AM +0100, Russell King (Oracle) wrote: > On Mon, May 27, 2024 at 09:43:41AM +0200, Thorsten Scherer wrote: > > Hello, > > > > in the context of a panic on an i.MX25 based v6.9 kernel [1] Uwe pointed me > > to > > this thread. With the proposed code change applied

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2024-05-27 Thread Russell King (Oracle)
On Mon, May 27, 2024 at 09:43:41AM +0200, Thorsten Scherer wrote: > Hello, > > in the context of a panic on an i.MX25 based v6.9 kernel [1] Uwe pointed me to > this thread. With the proposed code change applied the procedure > > # set to some known good (randomly guessed) filter function

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2024-05-27 Thread Thorsten Scherer
Hello, in the context of a panic on an i.MX25 based v6.9 kernel [1] Uwe pointed me to this thread. With the proposed code change applied the procedure # set to some known good (randomly guessed) filter function and enable function_graph echo mtdblock_open > set_ftrace_filter echo

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-02 Thread Justin Chen
On 12/2/2023 1:26 AM, Ard Biesheuvel wrote: On Sat, 2 Dec 2023 at 09:49, Justin Chen wrote: On 12/1/23 10:53 PM, Ard Biesheuvel wrote: On Fri, 1 Dec 2023 at 23:59, Justin Chen wrote: On 12/1/23 10:07 AM, Steven Rostedt wrote: On Fri, 1 Dec 2023 09:25:59 -0800 Justin Chen wrote:

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-02 Thread Ard Biesheuvel
On Sat, 2 Dec 2023 at 09:49, Justin Chen wrote: > > > > On 12/1/23 10:53 PM, Ard Biesheuvel wrote: > > On Fri, 1 Dec 2023 at 23:59, Justin Chen wrote: > >> > >> > >> > >> On 12/1/23 10:07 AM, Steven Rostedt wrote: > >>> On Fri, 1 Dec 2023 09:25:59 -0800 > >>> Justin Chen wrote: > >>> > > It

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-02 Thread Justin Chen
On 12/1/23 10:53 PM, Ard Biesheuvel wrote: On Fri, 1 Dec 2023 at 23:59, Justin Chen wrote: On 12/1/23 10:07 AM, Steven Rostedt wrote: On Fri, 1 Dec 2023 09:25:59 -0800 Justin Chen wrote: It appears the sub instruction at 0x6dd0 correctly accounts for the extra 8 bytes, so the frame

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Ard Biesheuvel
On Fri, 1 Dec 2023 at 23:59, Justin Chen wrote: > > > > On 12/1/23 10:07 AM, Steven Rostedt wrote: > > On Fri, 1 Dec 2023 09:25:59 -0800 > > Justin Chen wrote: > > > >>> It appears the sub instruction at 0x6dd0 correctly accounts for the > >>> extra 8 bytes, so the frame pointer is valid. So it

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Justin Chen
On 12/1/23 10:07 AM, Steven Rostedt wrote: On Fri, 1 Dec 2023 09:25:59 -0800 Justin Chen wrote: It appears the sub instruction at 0x6dd0 correctly accounts for the extra 8 bytes, so the frame pointer is valid. So it is our assumption that there are no gaps between the stack frames is

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Russell King (Oracle)
On Fri, Dec 01, 2023 at 10:12:48AM +0100, Ard Biesheuvel wrote: > It appears the sub instruction at 0x6dd0 correctly accounts for the > extra 8 bytes, so the frame pointer is valid. So it is our assumption > that there are no gaps between the stack frames is invalid. > > Could you try the

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Steven Rostedt
On Fri, 1 Dec 2023 09:25:59 -0800 Justin Chen wrote: > > It appears the sub instruction at 0x6dd0 correctly accounts for the > > extra 8 bytes, so the frame pointer is valid. So it is our assumption > > that there are no gaps between the stack frames is invalid. > > Thanks for the assistance.

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Justin Chen
On 12/1/2023 1:12 AM, Ard Biesheuvel wrote: On Fri, 1 Dec 2023 at 00:48, Justin Chen wrote: Hello, Ran into an odd bug that I am unsure what the solution is. Tested a few kernels versions and they all fail the same. FUNCTION_GRAPH_FP_TEST was enabled with 953f534a7ed6 ("ARM: ftrace:

Re: ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-12-01 Thread Ard Biesheuvel
On Fri, 1 Dec 2023 at 00:48, Justin Chen wrote: > > Hello, > > Ran into an odd bug that I am unsure what the solution is. Tested a few > kernels versions and they all fail the same. > > FUNCTION_GRAPH_FP_TEST was enabled with 953f534a7ed6 ("ARM: ftrace: > enable HAVE_FUNCTION_GRAPH_FP_TEST").

ARM Ftrace Function Graph Fails With UNWINDER_FRAME_POINTER

2023-11-30 Thread Justin Chen
Hello, Ran into an odd bug that I am unsure what the solution is. Tested a few kernels versions and they all fail the same. FUNCTION_GRAPH_FP_TEST was enabled with 953f534a7ed6 ("ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TEST"). This test fails when UNWINDER_FRAME_POINTER is enabled.