Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp621100rwb; Wed, 14 Dec 2022 00:08:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXtv2yug6Dzqe1qfrA9Mt+n9ZDlwhDFVn5WAE9AjqtbKlaC/xK2IxZYCtJxjAbiMkwne3EkK X-Received: by 2002:a05:6402:1619:b0:472:473c:eeba with SMTP id f25-20020a056402161900b00472473ceebamr903796edv.16.1671005289584; Wed, 14 Dec 2022 00:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671005289; cv=none; d=google.com; s=arc-20160816; b=suQw1e8G5tBJsFqIiK7xWAG4Y4qgtyvZwCPtEfwT0Bd5nch7eF2AYm/AVahHWXBTgk 7Cvh/+XuRTu1pHR/wrGnhDXvPoKtlXSgj5pSz8Byp1ESjtwpzyQf881Wc7+w8Dw8NzlV MW5gMW183DUnwEX92/kuYatLAGHE9VrElqzcXT/ZMOyF2ztukV+m6SocK1UN40NYV+7u QjE1XPu/6aMk5xJ2uHBqTwvnMWWs9jrwMInQkgyVMxDxF7hQa4RmErUc8CPVw1XY3GJ4 2uFaF2LOyELuf4bjYb1trJitbT7/L+wavQPJHpmEnrBexb3C2AiGnTYlk9ycnFnL5vxD 2QEQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jKCQ5HW/+7m6y/45EYyXtmmxG9pOHBpUPyor5NXJqT8=; b=JiozRj0yFnoeV8Dh4cwYriLTe0aYKXzz2EbHt6+iypwj8FOwsLC2op3rRvgLpUpPzn dKTy0lHUePN+rydsr2SsRJGzs6dteopPE9oR217VAoY83Oyfj9vd8UbvPsXgeb2t/9/6 TqWUrMOJUWLfr7I1yMbtXeZP9jtpSRFu3YO+fiOscv3RNuhI9rMtxSQr7qyaLMaX8bu4 gLB1PV9nVzjXPnW64om8Vz/3snUYUqKJiVKj/7oyMwmzaRCqvqQTRRHRUz9fYKiI/tgb gaYWAR5wOSY1XkTp09v90K/Sqi7ytljOwzXSWYk4aWV60+LaDFlBOV7+ykeZnTi6jhag 13TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BbBTgoQp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a056402065700b0046b2966d088si9501542edx.502.2022.12.14.00.07.50; Wed, 14 Dec 2022 00:08:09 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BbBTgoQp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237374AbiLNHbq (ORCPT + 72 others); Wed, 14 Dec 2022 02:31:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbiLNHbn (ORCPT ); Wed, 14 Dec 2022 02:31:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E34213D01; Tue, 13 Dec 2022 23:31:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E39E9B81636; Wed, 14 Dec 2022 07:31:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDF76C433EF; Wed, 14 Dec 2022 07:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671003098; bh=b30liFGgWuPmxvMtC0nZnmfl1IYBgEeD5WKn41SCZ/c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BbBTgoQprWo6PtFyOZkae90Vei6C0LOEIZrYJmLkwFmWYTgzRkcmQvPjfSNElfXUo f+B4Vs8kivgm/oed4SlKPM7PycH5yTE2+q0LJHJMsMofHdDDAeKavHoAsg7xugFvca ETsQFsqJN1+lQjOoWXOdZUNpYFLQREetG94rs7/9bzX3WL5WVY2R+id82h+L1+Ycdz Fvu5pAHCDcqTwCb8HS9dMn33R4fci3xy5CnglquaQkzycao6Re3rc49Lcmbspu3zuT 7+w99qQCCO0fvwxepyWsMzvg0vGlgt6uRVad7B5XclpDU+qctKtYDKS9ShxgkwnbA1 /yeQ6n2i112GQ== Date: Wed, 14 Dec 2022 16:31:35 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Andrew Morton Subject: Re: [PATCH] tracing: Do not synchronize freeing of trigger filter on boot up Message-Id: <20221214163135.54536cafdc6a2216fd9debfa@kernel.org> In-Reply-To: <20221213190321.379c6c2c@gandalf.local.home> References: <20221213172429.7774f4ba@gandalf.local.home> <20221214084954.e759647a2f5f1a38bc78b371@kernel.org> <20221213190321.379c6c2c@gandalf.local.home> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On Tue, 13 Dec 2022 19:03:21 -0500 Steven Rostedt wrote: > On Wed, 14 Dec 2022 08:49:54 +0900 > Masami Hiramatsu (Google) wrote: > > > > Avoid calling the synchronization function when system_state is > > > SYSTEM_BOOTING. > > > > Shouldn't this be done inside tracepoint_synchronize_unregister()? > > Then, it will prevent similar warnings if we expand boot time feature. > > I thought about that, but because this is a special case, I was thinking > that we don't just gloss over it and have something call this when it > shouldn't be in early boot up. I was surprised when it was called, and then > had to debug it a bit to figure out why it was. When I discovered the path > it took to get there, I realized it was legitimate. > > Right now, I only see this one case as an exception. If more pop up that > are correct, then we can switch it over. But right now, I still want > calling tracepoint_synchronize_unregister() to warn if it is called in > early boot up, because that could be a sign that something went wrong. Thanks, I got it. :) So when we find more synchronization is involved, we'll revisit it. Acked-by: Masami Hiramatsu (Google) Thank you, > > -- Steve -- Masami Hiramatsu (Google)