Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3901729rdh; Tue, 28 Nov 2023 06:54:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHomsUEF+XZxDy/Digl/lAlMAPEopflN55NWyd1UaDhzMzbZEHs5UrTJ2YNhi4e4vnfA8DP X-Received: by 2002:a05:6a20:e104:b0:18b:3ec7:3a71 with SMTP id kr4-20020a056a20e10400b0018b3ec73a71mr16483112pzb.52.1701183290655; Tue, 28 Nov 2023 06:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701183290; cv=none; d=google.com; s=arc-20160816; b=Kl65TA5ltX9Wa80AJevryXqaltJ8oEPh6uyeZ9ZK7qFgMF+UlmwqzyF7m0uAq7cHAt 56/tCnbAMkzaHfmjL+2kFNkA7ILOFb3EQx4bu4gSfFX53SBsCKIk0oBodvYWuaSGncLy eYE95dWvTT8srlhlxGR6lIO1ZV7Ln0XU9EQ7ae72+qD+7f2Jzb0SL8VB3TJ9bMHDBYMO CKAbsg7TAnRHZPTFjy52sI90g1vufQ+AFWEKqJ0l7A0+ECqtN1pFvh7xDGd+qd57k2Fq Ix2DSEChaPxJrJyALeQmo1GnR4nuZIH9hi4GPbLmA52FYiTXOwW+oiv2fpEGWphY8afk 8DbA== 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=msE5u53bZJTEayWxGzgsUjL11zYedKbu5WjbNhdnvtI=; fh=QeZNFh7x9rQyC9U83TOoZBYsPWe4Ugc5aO3NAqxo17I=; b=EnDcwSdNgxLSpRTwEv4VTKFfUELRvDMWrNhuoJiTEpPV6sAf19rCOWe/P4V+u2Ae1U qfzsaJ3QXEOgjl2H09HyS5VuKdkSMwtcnzkixOs36d0y0cG3ibdy8AxsIbjjTVowqSxT i61O5jb+7ZlPM8vx4QjtV+CCSu8dujEDZPeqfB8/WT0dlrwns0hXmLuXvgIqL1unxKxN +5JI+y9nNMRUOhIybakfgta4+dm1MqkBQfV1o+OxuYvGPFqovRg+pcApOOfNDzZk5z7A /gHW+satxOXOZ8MMelPDOTIBCuNM2G+WEu8AFM9WBnSkhc2McZWeucWR29eaSO3zJVgx Efmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cu8-20020a056a00448800b006cd904df7a2si4284565pfb.112.2023.11.28.06.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:54:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5059F80A0548; Tue, 28 Nov 2023 06:54:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345786AbjK1OyQ (ORCPT + 99 others); Tue, 28 Nov 2023 09:54:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345803AbjK1OyK (ORCPT ); Tue, 28 Nov 2023 09:54:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00ED1D60 for ; Tue, 28 Nov 2023 06:54:16 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 583DDC433C8; Tue, 28 Nov 2023 14:54:15 +0000 (UTC) Date: Tue, 28 Nov 2023 09:54:37 -0500 From: Steven Rostedt To: Dmytro Maluka Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Sean Paul , Arun Easi , Daniel Wagner Subject: Re: [RFC][PATCH] tracing: Allow creating instances with specified system events Message-ID: <20231128095437.423f5f88@gandalf.local.home> In-Reply-To: <20231128092029.342f5f03@gandalf.local.home> References: <20231127174108.3c331c9c@gandalf.local.home> <20231128092029.342f5f03@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 28 Nov 2023 06:54:45 -0800 (PST) On Tue, 28 Nov 2023 09:20:29 -0500 Steven Rostedt wrote: > On Tue, 28 Nov 2023 14:14:29 +0100 > Dmytro Maluka wrote: > > > > This limitation will cause (unrelated) events created by modules that > > are insmoded after creating the instance to be also added to the > > instance. Why not filter those as well? > > I did think of that. But that would be a separate patch. Where I would save > the string that is passed in, and whenever a new module is loaded, it would > only add the events if the events' system matches in the string. This would > also allow adding event systems that do not yet exist. Now that I'm implementing this, it makes more sense to just do that as one patch. Otherwise the check against the systems string is redundant, as the creation of the events needs to check against the tr->systems too. I found that I was deleting most of this patch to implement the change. -- Steve