Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp480943rdb; Tue, 5 Dec 2023 10:28:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZAYFMJwxLT6DYoCRN3y+GCOUEYZm98rk/GuSZSJRzJfXYPUO+Tg4ATEsu4zIQxv+rC87F X-Received: by 2002:a05:6a20:3247:b0:18f:97c:ba23 with SMTP id hm7-20020a056a20324700b0018f097cba23mr3262926pzc.125.1701800909278; Tue, 05 Dec 2023 10:28:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701800909; cv=none; d=google.com; s=arc-20160816; b=sZeNKCoAEvblor52GoSiISLpRXOvG4PDToTtlCvULKi5fG4Cmex7ISCyX8g1SnwtW+ KsjAfW1KzbIKxjvreRnwMnatuZzPHXu/TcO/qxWU7zfN2v3oCt3eQLrEWkcb1Pkx5S3k JbVQsP2lf6tZNk6QPtrmU1dBNiHE0NvOwWq44DsUE6H7nhHm/uNcboJg6/+J13UIl6fs kjibdBok2YHwQU382K30rR3CbMrB6qE85Rm+1T1VKsmR0BqrCOwZ+19o6yhMsUCRKpNb v5bO2uvt8ObLftjQ1qW4gsV2/Cxr+eWItw0ATHwFEGEO0j9rXY6xo78dAv8mFmbrHAYZ YCDA== 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=F6TtkQrydFdC+AdPcADcEgLK2MzhxC4bqUVpOwaPQlM=; fh=QeZNFh7x9rQyC9U83TOoZBYsPWe4Ugc5aO3NAqxo17I=; b=0gsDxvKP9C2A4DZdxJzgYjcbEJn9aiUzs4p3y2MElf0im74cjUWn6ahz843bKuzXGZ w/zGdsqIafKfNncZbLuBmiiYjaY96deu4n6lE5I0KTbyYKDsC0z2tC+ov29WqYuE4lck zyPfUst5sUjOj+ev5CEI8cjEVgGUUUH65vqpCVInNaV5xTOEQiwJxDudkBX6w2XL3t28 iuVacC1BLjljUCG/pP0u7t6uX1EhCNPlFMd0WDQjYNJOI6RxPyo9nO0GnNJLC/99QZMD ea9eLDn4Iz8wO9naK/Gt84jnvHJRgoWLPlN8e6kIAMCZ/aKCanGXVDC0F12zneb7avuh VYNQ== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b20-20020a656694000000b005c278ba0fe3si576609pgw.556.2023.12.05.10.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:28:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 1642F8030B6B; Tue, 5 Dec 2023 10:28:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232014AbjLES2S (ORCPT + 99 others); Tue, 5 Dec 2023 13:28:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbjLES2R (ORCPT ); Tue, 5 Dec 2023 13:28:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C96501A3 for ; Tue, 5 Dec 2023 10:28:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7601AC433C7; Tue, 5 Dec 2023 18:28:21 +0000 (UTC) Date: Tue, 5 Dec 2023 13:28:47 -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: [PATCH] tracing: Allow creating instances with specified system events Message-ID: <20231205132847.74d31532@gandalf.local.home> In-Reply-To: References: <20231128122117.2276f4a7@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=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 10:28:28 -0800 (PST) On Tue, 5 Dec 2023 19:13:09 +0100 Dmytro Maluka wrote: > On Tue, Nov 28, 2023 at 12:21:17PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > A trace instance may only need to enable specific events. As the eventfs > > directory of an instance currently creates all events which adds overhead, > > allow internal instances to be created with just the events in systems > > that they care about. This currently only deals with systems and not > > individual events, but this should bring down the overhead of creating > > instances for specific use cases quite bit. > > > > The trace_array_get_by_name() now has another parameter "systems". This > > parameter is a const string pointer of a comma/space separated list of > > event systems that should be created by the trace_array. (Note if the > > trace_array already exists, this parameter is ignored). > > > > The list of systems is saved and if a module is loaded, its events will > > not be added unless the system for those events also match the systems > > string. > > > > Note that all dynamic events are still added as they are created by the > > user. > > > > Signed-off-by: Steven Rostedt (Google) > > --- > > Tested-by: Dmytro Maluka Thanks, but I have a v2 of this patch on my local repository, as after discussing with Masami, I decided not to allow dynamic events unless they are specified. I'll send the v2 out later today. -- Steve