Re: [External] Re: [PATCH 2/2] ftrace: setup correct flags before replace code of module rec

2020-07-28 Thread Chengming Zhou
在 2020/7/28 下午9:02, Steven Rostedt 写道: > On Tue, 28 Jul 2020 18:27:20 +0800 > Chengming Zhou wrote: > >> When module loaded and enabled, we will use __ftrace_replace_code >> for module if any ftrace_ops referenced it found. But we will get >> wrong ftrace_addr for module rec in ftrace_get_addr_n

Re: [PATCH 2/2] ftrace: setup correct flags before replace code of module rec

2020-07-28 Thread Steven Rostedt
On Tue, 28 Jul 2020 18:27:20 +0800 Chengming Zhou wrote: > When module loaded and enabled, we will use __ftrace_replace_code > for module if any ftrace_ops referenced it found. But we will get > wrong ftrace_addr for module rec in ftrace_get_addr_new, because > rec->flags has not been setup corre

[PATCH 2/2] ftrace: setup correct flags before replace code of module rec

2020-07-28 Thread Chengming Zhou
When module loaded and enabled, we will use __ftrace_replace_code for module if any ftrace_ops referenced it found. But we will get wrong ftrace_addr for module rec in ftrace_get_addr_new, because rec->flags has not been setup correctly. So setup correct rec->flags when we call referenced_filters t