Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3692531rdh; Tue, 28 Nov 2023 00:47:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEA94uYSA1n9nycrIq6H+/3MD36146zu4QHNVORJbWTwQXtsCGcvvQn9Q7AmxSZFNfPD5XS X-Received: by 2002:a05:6a21:3391:b0:182:119d:2d0e with SMTP id yy17-20020a056a21339100b00182119d2d0emr15797295pzb.20.1701161237923; Tue, 28 Nov 2023 00:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701161237; cv=none; d=google.com; s=arc-20160816; b=xDaA1Uzm14iW+ckcU6SJEBvB4vtSZq2GlUbzoasqfqWQN4+952SSyM26P6Z7cx5OIA 7RJPlsbmhP4/ZioWMSwMZZDszwtK293g8TBUHEb2hzCVkQLjvDlCt26gtIlVQBssjAhR yErSov27AqKlE6HDxnOrhLzxLCsJq6Fuwx3wXW7UqOQ+QtBWlNMHpqE/Oz9UfU+i6Wyq mPxwy6VgSgCWmQIzO7kBCl04x4SxQhOMpPsp9SrGOu1pZ+S2mQchFslfYfgZAU1CnOwW 5mqMLfFDmtVQ4YB9zVQYYtG8LAIKHFOc1A9zbgMhPM8wlgpzV2O5OxvV0qzqRXVLrl9i tCcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=mAPSrIdxMutGqOgHy9I5KLLkgBk3CDdDoYEnmVJ1EvI=; fh=IleR7S/0tDdOExZmSN5iuD8rWWEXbxAXDGI9kkx3Sak=; b=HyU2ONLPGtr3dC7bU9S8/1vbP6Uo4muY8tXnNuWMLFoKJwGpaPJz65lzg1zpPKqo+j BsO5m9BBd0sg/WUoOpbgoZ9hRXOLNg/917+QyQ3Vq8zqeRPfjnfF8QV2JKhAHbNsWxDR c3aDBTeo8StgE99iydvb78BV3Iwwyv8DzIRYaH40Vtep0FhgzKgECYvoehkWpHomEuhL AZjNEIe1rGOHS44j3XVdgQhZfQ2dzWPke1sVsO5rllOpcsv2R+pS1gIcVTVB4KC+pRjd WqdKgRdVsmsqjjle+e3RaRRgjwK1kAwo4zuOljo6zfNdCCaa1695Bo1fv3OWA1hma6M4 XP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=FEUGpzRy; dkim=neutral (no key) header.i=@suse.de header.b=rz5+lGrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id iz15-20020a170902ef8f00b001cfb4d36d44si7153971plb.64.2023.11.28.00.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:47:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=FEUGpzRy; dkim=neutral (no key) header.i=@suse.de header.b=rz5+lGrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4D4980AC5AE; Tue, 28 Nov 2023 00:47:16 -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 S1344234AbjK1IrC (ORCPT + 99 others); Tue, 28 Nov 2023 03:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344224AbjK1Iq4 (ORCPT ); Tue, 28 Nov 2023 03:46:56 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27878A7; Tue, 28 Nov 2023 00:47:03 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B1D312196E; Tue, 28 Nov 2023 08:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1701161221; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mAPSrIdxMutGqOgHy9I5KLLkgBk3CDdDoYEnmVJ1EvI=; b=FEUGpzRyu91W+4DUyreQTfLkK+XD/iQpmpFMYF0FhmVAYY7/4MdbR0Zo+JJUSh8NYmsjPc GWq8vmJEe9HsqJImDK0s3f4BtH88lEwXPCyBBnxlANejfs1GWVOxRg2HfBBfu46ctN8Ejo Ki+LXFVg/hz55HboRRG0z5TNYdPeb9M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1701161221; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mAPSrIdxMutGqOgHy9I5KLLkgBk3CDdDoYEnmVJ1EvI=; b=rz5+lGrWzTmWLBcOncceK7BEolS0FQu3CVgPMl9O6gAJTTsQrzGP2GzcdonOmDXSBnFIId iFEYM6iRohBLUBBg== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 9EB2F139FC; Tue, 28 Nov 2023 08:47:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id ur1KJQWpZWVKRQAAn2gu4w (envelope-from ); Tue, 28 Nov 2023 08:47:01 +0000 Date: Tue, 28 Nov 2023 09:49:14 +0100 From: Daniel Wagner To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , dmaluka@google.com, Sean Paul , Arun Easi Subject: Re: [RFC][PATCH] tracing: Allow creating instances with specified system events Message-ID: References: <20231127174108.3c331c9c@gandalf.local.home> <20231127175021.0c0edc53@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127175021.0c0edc53@gandalf.local.home> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -0.60 X-Spamd-Result: default: False [-0.60 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[9]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[19.90%] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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, 28 Nov 2023 00:47:16 -0800 (PST) On Mon, Nov 27, 2023 at 05:50:21PM -0500, Steven Rostedt wrote: > On Mon, 27 Nov 2023 17:41:08 -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. > > This change log is not very good. I didn't actually state what was done :-p > > Anyway, function trace_array_get_by_name() has an added parameter "systems" > (and I forgot to update its kerneldoc). This parameter is a string of > comma, or space, or commas and spaces deliminators of event system names. > If it's not NULL, then it will only create the event system directories of > those event systems that match the systems parameter. > > That is: > > trace_array_get_by_name("qla2xxx", "qla"); > > Will create an instance called "qla2xxx" and only have "qla" system events > in it. Makes sense to me. The qla2xxx driver is interested only in its own trace events. This should be fine, at least as far I understand it.