Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ftrace: Clean comments related to FTRACE_OPS_FL_PER_CPU

Commit b3a88803ac5b ("ftrace: Kill FTRACE_OPS_FL_PER_CPU") didn't
completely remove the comments related to FTRACE_OPS_FL_PER_CPU.

Link: https://lkml.kernel.org/r/20221025153923.1995973-1-zhengyejian1@huawei.com

Fixes: b3a88803ac5b ("ftrace: Kill FTRACE_OPS_FL_PER_CPU")
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Zheng Yejian and committed by
Steven Rostedt (Google)
78a01feb 4313e5a6

+3 -7
+3 -7
kernel/trace/ftrace.c
··· 163 163 static ftrace_func_t ftrace_ops_get_list_func(struct ftrace_ops *ops) 164 164 { 165 165 /* 166 - * If this is a dynamic, RCU, or per CPU ops, or we force list func, 166 + * If this is a dynamic or RCU ops, or we force list func, 167 167 * then it needs to call the list anyway. 168 168 */ 169 169 if (ops->flags & (FTRACE_OPS_FL_DYNAMIC | FTRACE_OPS_FL_RCU) || ··· 3071 3071 /* 3072 3072 * Dynamic ops may be freed, we must make sure that all 3073 3073 * callers are done before leaving this function. 3074 - * The same goes for freeing the per_cpu data of the per_cpu 3075 - * ops. 3076 3074 */ 3077 3075 if (ops->flags & FTRACE_OPS_FL_DYNAMIC) { 3078 3076 /* ··· 7517 7519 /* 7518 7520 * Check the following for each ops before calling their func: 7519 7521 * if RCU flag is set, then rcu_is_watching() must be true 7520 - * if PER_CPU is set, then ftrace_function_local_disable() 7521 - * must be false 7522 7522 * Otherwise test if the ip matches the ops filter 7523 7523 * 7524 7524 * If any of the above fails then the op->func() is not executed. ··· 7566 7570 7567 7571 /* 7568 7572 * If there's only one function registered but it does not support 7569 - * recursion, needs RCU protection and/or requires per cpu handling, then 7570 - * this function will be called by the mcount trampoline. 7573 + * recursion, needs RCU protection, then this function will be called 7574 + * by the mcount trampoline. 7571 7575 */ 7572 7576 static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip, 7573 7577 struct ftrace_ops *op, struct ftrace_regs *fregs)