Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8012728rwi; Tue, 25 Oct 2022 01:00:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mELb7qNaUUFEwhS9imyOAqsqXyHHw34ypsHSN8jlKBS3aA/bsKer46GJO1ucUWlbJ3wpG X-Received: by 2002:a17:90a:ae01:b0:20c:2630:528a with SMTP id t1-20020a17090aae0100b0020c2630528amr42570443pjq.37.1666684801450; Tue, 25 Oct 2022 01:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666684801; cv=none; d=google.com; s=arc-20160816; b=bKHvlI9nHcBtxuvg6hbr9UbRIgGmZ+b8C+i5C/zsZfi9P5mQrziKBeDXQSHYok6ftA naYpDQUPwD7pk+8DYa8Bq5ZkfuJZf/2Odsc1q8gFph3LGT9FfplsSmvou8qPzyWacW12 hCtkI2Ah4NpxZ9Wud4QW2zI8KEjtYO/L0Thw0Oghk25zv18M9FG1pqLFwQjxTp3odC5d iLNqB0FpBiJ1RYiKVO7tZHY9QgkbQyOvAQ5OkDNFpBSBH1TybcrqMsotPPUZlBSEJLdt CTEmWPGgNmsihJWMRy4GTFMyMVlR1VaUe6ImoHZ7fQMiA0WCdpFfjrJ+xbtKDAnv4OpF xO2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JWEaG5FTdyWdzyp0h3urkSdj62RtbePnjmeJ6mW8EA0=; b=qzVtASY/jMJ99hAKm7QWQcEVyLKUBie2pYB8ImNbNnFXkFtfTWhPX9u5KO0w/etYwF IHe57eT42NCYpKkn0UZzhvVgkNblUMdv0e/PcKZRjekGD45PUM8FRIlJB1cvogyd8D9H ioUrDe9fdhpX05/33cKMsV/ZiGdR0AVQs0gXV2wMWrxdVP1yrIL9cX4RjV8Y4H+qeMjf gkBiQN9IXZcN6Vg07Ce2y/gtLzCQ12CwecoqUdio/cQ5USDWcvykhjo5MxiF47JyOu9r hqHA+PsdgoUhWIhT+996p4BVRPX59hkIlFtvM/vWKE+xPG9l+hoxAxkw4fiEjnpEwiJT T/Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 81-20020a630254000000b0046aabd03ce5si1893188pgc.796.2022.10.25.00.59.49; Tue, 25 Oct 2022 01:00:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231903AbiJYHkA (ORCPT + 99 others); Tue, 25 Oct 2022 03:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231341AbiJYHjy (ORCPT ); Tue, 25 Oct 2022 03:39:54 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC4BA02D5 for ; Tue, 25 Oct 2022 00:39:52 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MxP0K0RvyzJnBX; Tue, 25 Oct 2022 15:37:05 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 25 Oct 2022 15:39:50 +0800 Received: from localhost.localdomain (10.67.175.61) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 25 Oct 2022 15:39:50 +0800 From: Zheng Yejian To: , , , CC: Subject: [PATCH] ftrace: Clean comments related to FTRACE_OPS_FL_PER_CPU Date: Tue, 25 Oct 2022 15:39:23 +0000 Message-ID: <20221025153923.1995973-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.61] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit b3a88803ac5b ("ftrace: Kill FTRACE_OPS_FL_PER_CPU") didn't completely remove the comments related to FTRACE_OPS_FL_PER_CPU. Fixes: b3a88803ac5b ("ftrace: Kill FTRACE_OPS_FL_PER_CPU") Signed-off-by: Zheng Yejian --- kernel/trace/ftrace.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index fbf2543111c0..214de83458b9 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -163,7 +163,7 @@ static void ftrace_sync_ipi(void *data) static ftrace_func_t ftrace_ops_get_list_func(struct ftrace_ops *ops) { /* - * If this is a dynamic, RCU, or per CPU ops, or we force list func, + * If this is a dynamic or RCU ops, or we force list func, * then it needs to call the list anyway. */ if (ops->flags & (FTRACE_OPS_FL_DYNAMIC | FTRACE_OPS_FL_RCU) || @@ -3030,7 +3030,7 @@ int ftrace_shutdown(struct ftrace_ops *ops, int command) if (!command || !ftrace_enabled) { /* - * If these are dynamic or per_cpu ops, they still + * If these are dynamic ops, they still * need their data freed. Since, function tracing is * not currently active, we can just free them * without synchronizing all CPUs. @@ -3079,8 +3079,6 @@ int ftrace_shutdown(struct ftrace_ops *ops, int command) /* * Dynamic ops may be freed, we must make sure that all * callers are done before leaving this function. - * The same goes for freeing the per_cpu data of the per_cpu - * ops. */ if (ops->flags & FTRACE_OPS_FL_DYNAMIC) { /* @@ -7528,8 +7526,6 @@ __ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, /* * Check the following for each ops before calling their func: * if RCU flag is set, then rcu_is_watching() must be true - * if PER_CPU is set, then ftrace_function_local_disable() - * must be false * Otherwise test if the ip matches the ops filter * * If any of the above fails then the op->func() is not executed. @@ -7579,8 +7575,8 @@ NOKPROBE_SYMBOL(arch_ftrace_ops_list_func); /* * If there's only one function registered but it does not support - * recursion, needs RCU protection and/or requires per cpu handling, then - * this function will be called by the mcount trampoline. + * recursion, needs RCU protection, then this function will be called + * by the mcount trampoline. */ static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct ftrace_regs *fregs) -- 2.25.1