Re: [PATCH] ftrace: Replace ftrace_disabled variable with ftrace_is_dead function

2024-04-27 Thread Steven Rostedt
On Sat, 20 Apr 2024 11:50:29 +0800 "Bang Li" wrote: > Thank you for your explanation, let me understand this. How about > replacing ftrace_disabled with unlike(ftrace_disabled)? Why? They are slow paths. No need to optimize them. -- Steve

Re: [PATCH] ftrace: Replace ftrace_disabled variable with ftrace_is_dead function

2024-04-19 Thread Bang Li
On 2024/4/20 9:40, Steven Rostedt wrote: On Fri, 19 Apr 2024 22:38:44 +0800 "Bang Li" wrote: Use the existing function ftrace_is_dead to replace the variable to make the code clearer. Signed-off-by: Bang Li --- kernel/trace/ftrace.c | 46 +-- 1

Re: [PATCH] ftrace: Replace ftrace_disabled variable with ftrace_is_dead function

2024-04-19 Thread Steven Rostedt
On Fri, 19 Apr 2024 22:38:44 +0800 "Bang Li" wrote: > Use the existing function ftrace_is_dead to replace the variable to make > the code clearer. > > Signed-off-by: Bang Li > --- > kernel/trace/ftrace.c | 46 +-- > 1 file changed, 23 insertions(+), 23

[PATCH] ftrace: Replace ftrace_disabled variable with ftrace_is_dead function

2024-04-19 Thread Bang Li
Use the existing function ftrace_is_dead to replace the variable to make the code clearer. Signed-off-by: Bang Li --- kernel/trace/ftrace.c | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/kernel/trace/ftrace.c