Re: [PATCH] ftrace: Get the true parent ip for function tracer

2024-08-21 Thread jeff . xie
August 21, 2024 at 9:59 PM, "Steven Rostedt" wrote: Hi Steven, > > On Wed, 21 Aug 2024 21:27:55 +0800 > > Jeff Xie wrote: > > Hi Jeff, > > Thanks for the patch. > > > > > Signed-off-by: Jeff Xie > > > > --- > > > > kernel/trace/trace_functions.c | 18 ++ > > > > 1

Re: [PATCH] ftrace: Get the true parent ip for function tracer

2024-08-21 Thread Steven Rostedt
On Wed, 21 Aug 2024 21:27:55 +0800 Jeff Xie wrote: Hi Jeff, Thanks for the patch. > Signed-off-by: Jeff Xie > --- > kernel/trace/trace_functions.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c > in

[PATCH] ftrace: Get the true parent ip for function tracer

2024-08-21 Thread Jeff Xie
Currently, when using both function tracer and function graph simultaneously, it is found that function tracer sometimes captures a fake parent ip(return_to_handler) instead of the true parent ip. This issue is easy to reproduce. Below are my reproduction steps: jeff-labs:~/bin # ./trace-net.sh