Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp206210rwb; Tue, 13 Dec 2022 16:19:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4vd9ATYaXDPu3WExQjzkXjYZmPspe4cvFfMJzLYis5Cs4fo3D6SL4O7oWpa0YLX9BUbc3/ X-Received: by 2002:a17:903:2448:b0:189:f277:3830 with SMTP id l8-20020a170903244800b00189f2773830mr33813937pls.68.1670977163271; Tue, 13 Dec 2022 16:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670977163; cv=none; d=google.com; s=arc-20160816; b=rSdZb+IGZdEDItRfiDVlMGdxRMgy27J8OR+VtUDjWgSOceDOQ89vDP0nHvOnQ0K/40 b0a1/O7/ssP+kqeEyeqo8xnE0FIl7GH+jXDaGXqG/a93ioYFYbKghUauj2MJ/48GqtVF hDhiIzgA2cHrUyHPPX0BHjEO3KUWKKuYwDNTUdekT/4Uz07OEC7WvWIs1Li2y8gTgqE4 7DZjvU7EL6WPr1/Le/SskCrMGTla0GYd8jWF4JGmfOJ6R80obGI/6eHVHpmSBxTOCSFW cHxX19ku50TsfPl5BGeGF+G4l7jzF6rtAmBIr/bgnjxCEVXt0jBsm11118ti2m+CYBTA d0Mw== 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; bh=81oQfKBLGOrds7Z9cFcfKNzj/yu/cCC5xJfCLZSM+Sw=; b=pY+FmaIX2M8lPP9RPff7As0Hyv8nTRF/+oFsflhnV5cY6vlYJLO/+4MGgUUmdUe8lr oaCevqlvB8tEUzJY/1tb3RD5XRwwwHrZ4SK7i4QwQHsMTnLUxKY8NWw3k6ewS0KS/GSm MpvUIiL4Sa2cydD43pMYN5d9691FkCl+aJcloHYrz66HLlWOG4PV5gMfNAJsBLEAM38z yk0IDxv/yAqShUf7Fvs7v7dKjM4U2unonxT8BWIgp+UzwP4ZJHzGfcTHPXIc9nl8RcXy hiJuR1uJSTR9vuCy5Pe7/o9AGkIwW+QV0EVV7+No3D4o67A1ntL5gJsuDtd94j4XKruq P24w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a170902cec400b00188c7b09446si1371650plg.44.2022.12.13.16.19.13; Tue, 13 Dec 2022 16:19:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236984AbiLNADa (ORCPT + 72 others); Tue, 13 Dec 2022 19:03:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237071AbiLNAD0 (ORCPT ); Tue, 13 Dec 2022 19:03:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4374E6268; Tue, 13 Dec 2022 16:03:25 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9E5CE6177B; Wed, 14 Dec 2022 00:03:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 882E1C433EF; Wed, 14 Dec 2022 00:03:23 +0000 (UTC) Date: Tue, 13 Dec 2022 19:03:21 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: LKML , Linux Trace Kernel , Andrew Morton Subject: Re: [PATCH] tracing: Do not synchronize freeing of trigger filter on boot up Message-ID: <20221213190321.379c6c2c@gandalf.local.home> In-Reply-To: <20221214084954.e759647a2f5f1a38bc78b371@kernel.org> References: <20221213172429.7774f4ba@gandalf.local.home> <20221214084954.e759647a2f5f1a38bc78b371@kernel.org> X-Mailer: Claws Mail 3.17.8 (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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 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. -- Steve