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 net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Jason Xing
Hello Steven, On Sat, Apr 20, 2024 at 10:36 AM Steven Rostedt wrote: > > On Fri, 19 Apr 2024 16:00:20 +0800 > Jason Xing wrote: > > > If other experts see this thread, please help me. I would appreciate > > it. I have strong interests and feel strong responsibility to > > implement something

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Steven Rostedt
On Fri, 19 Apr 2024 16:00:20 +0800 Jason Xing wrote: > If other experts see this thread, please help me. I would appreciate > it. I have strong interests and feel strong responsibility to > implement something like this patch series. It can be very useful!! I'm not a networking expert, but as

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

Re: [PATCH v4 2/2] rethook: honor CONFIG_FTRACE_VALIDATE_RCU_IS_WATCHING in rethook_try_get()

2024-04-19 Thread Andrii Nakryiko
On Thu, Apr 18, 2024 at 6:00 PM Masami Hiramatsu wrote: > > On Thu, 18 Apr 2024 12:09:09 -0700 > Andrii Nakryiko wrote: > > > Take into account CONFIG_FTRACE_VALIDATE_RCU_IS_WATCHING when validating > > that RCU is watching when trying to setup rethooko on a function entry. > > > > One notable

[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

timeout triggered probe

2024-04-19 Thread Jarkko Sakkinen
Hi I wonder if there is a way to attach a probe to a timeout in process context? This spun off from https://social.kernel.org/notice/Ah18GN3aezWLdcxcAK Also relevant: https://social.kernel.org/notice/Ah2O2qXO32lPRPQkk4 Maybe there is a way already but being able to do this would have practical

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Jason Xing
On Fri, Apr 19, 2024 at 4:00 PM Jason Xing wrote: > > On Fri, Apr 19, 2024 at 3:44 PM Eric Dumazet wrote: > > > > On Fri, Apr 19, 2024 at 9:29 AM Jason Xing > > wrote: > > > > > > On Fri, Apr 19, 2024 at 3:02 PM Eric Dumazet wrote: > > > > > > > > On Fri, Apr 19, 2024 at 4:31 AM Jason Xing

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Jason Xing
On Fri, Apr 19, 2024 at 3:44 PM Eric Dumazet wrote: > > On Fri, Apr 19, 2024 at 9:29 AM Jason Xing wrote: > > > > On Fri, Apr 19, 2024 at 3:02 PM Eric Dumazet wrote: > > > > > > On Fri, Apr 19, 2024 at 4:31 AM Jason Xing > > > wrote: > > > > > > > > On Fri, Apr 19, 2024 at 7:26 AM Jason Xing

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Eric Dumazet
On Fri, Apr 19, 2024 at 9:29 AM Jason Xing wrote: > > On Fri, Apr 19, 2024 at 3:02 PM Eric Dumazet wrote: > > > > On Fri, Apr 19, 2024 at 4:31 AM Jason Xing > > wrote: > > > > > > On Fri, Apr 19, 2024 at 7:26 AM Jason Xing > > > wrote: > > > > > > > > > When I said "If you feel the need to

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Jason Xing
On Fri, Apr 19, 2024 at 3:02 PM Eric Dumazet wrote: > > On Fri, Apr 19, 2024 at 4:31 AM Jason Xing wrote: > > > > On Fri, Apr 19, 2024 at 7:26 AM Jason Xing > > wrote: > > > > > > > When I said "If you feel the need to put them in a special group, this > > > > is fine by me.", > > > > this was

Re: [PATCH net-next v6 0/7] Implement reset reason mechanism to detect

2024-04-19 Thread Eric Dumazet
On Fri, Apr 19, 2024 at 4:31 AM Jason Xing wrote: > > On Fri, Apr 19, 2024 at 7:26 AM Jason Xing wrote: > > > > > When I said "If you feel the need to put them in a special group, this > > > is fine by me.", > > > this was really about partitioning the existing enum into groups, if > > > you