Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp755655rdb; Mon, 29 Jan 2024 18:28:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUrZftf2dell4cyhs8RqEJax0pbWIy+ovVGhDuYM6VpdPU2C+MbYQ7wJIDVxbeWN+v9WoY X-Received: by 2002:a05:622a:38e:b0:42a:5de3:c54f with SMTP id j14-20020a05622a038e00b0042a5de3c54fmr7171786qtx.131.1706581682020; Mon, 29 Jan 2024 18:28:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706581682; cv=pass; d=google.com; s=arc-20160816; b=eiX0wdRsojvjULmiAbRPyq+WymZwasZs42+OMj7lXt7KRmZf6uWbiMP2dVpH9iQiQd ox1jwXAzwF5rebmRYUGS3hcQmNWrQC9RgbcPAL15eUtjAJynnqeOfSj8KF9wueYEgqEm ScIlw77kcY1EzkfuB0XPCWaS0krUmRDp26Y6/2zUWU7Tmjuxgjvk7eT1ABebTLrazG5M 5ass4BraNObM43waMv3P5R/kBH9kPHD52O/HmUClq6p6h33HjrRYwv/nrMDimUanDQLP mgE/6KnJAbR6Q0JnCU5/Jj1HkX/UvkWcPAssPyYLTNl/y7pazAtpcPzQ93HV/4CCKZwH EDlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=pcHeyZ1BkCt9TQJxpVgFEyLl1guFDGU1sBJrPzGr/jI=; fh=bLJtBGLKc7nExBcxHnJ0mooe2zA9rwQ8OrXUu5u62vg=; b=cOp7JEA92CEej431h1pJnWLAlUdZMfA/Z0XiYwhGkr1dzDkLuqb+wZp99HJkeKJGUz rRkmoE6UIk1ZZH7BsTwVJd61x4t/gAu5jpONHuig9EtVCk7wSWOW++Dz/1zQFLGUSDQP RX2j54OTkCO+cfX5lOVrGdTarljPo99y5OH0lBXv9KFTWCwGl+qRn7RQJKUAvfrc5Stv oZzYTzQXDa5CD39bkyYI9fAJzjuGkOdRkHGNnf9scSiYmQUs8uUheH5KumAZYmj5Wxo3 ZlaZGnZj8Zn82baR49sMHcxQW5E7YR+kDcB07ySB/pes8aYeLELCTwfmRLf+gvL6YUGZ Wd7g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43820-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b20-20020ac87fd4000000b0042aa16d8837si4067580qtk.402.2024.01.29.18.28.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43820-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 959021C22E3C for ; Tue, 30 Jan 2024 02:28:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1165636B17; Tue, 30 Jan 2024 02:23:59 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87A8A364C0; Tue, 30 Jan 2024 02:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581438; cv=none; b=ZqSso3JR0U9rEgZ93vfYsYsUPr2i7jfFLafjd5jn4Km5L4J/LEYFxzDQPPZqT48iInF6Fq1eXn8KuIp+LwxT0RCcJk34E6CQRmN/rOpat1sjgniNeGA3+xLhXbVOmkOW1HaAI48ZArTdpjjSCdavIs7jIUkt+fXaAUp/m0Geip4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581438; c=relaxed/simple; bh=MclRyWN5Fr1VA5Q/cVFjdRV4b2xSG14WVjCgvemUT2s=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=T3EMOGUFdnruW9aY5Egod9eVOvoyHDgQwMnHBtEuf4/WYy9b8dOT/bPouujDXvG4SBJ5RCIhrIsV5Y3KWyoJr8sdVf3MwWpLLshQXY2mOs3nkonv/hyoP1HTANuHfUGgZ89v5He0dlqsFysktw+ghcKRQzsDr7SGAveY9/o4Snc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61162C433C7; Tue, 30 Jan 2024 02:23:57 +0000 (UTC) Date: Mon, 29 Jan 2024 21:24:07 -0500 From: Steven Rostedt To: Beau Belgrave Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com Subject: Re: [PATCH 2/4] tracing/user_events: Introduce multi-format events Message-ID: <20240129212407.157a5533@gandalf.local.home> In-Reply-To: <20240129172907.GA444-beaub@linux.microsoft.com> References: <20240123220844.928-1-beaub@linux.microsoft.com> <20240123220844.928-3-beaub@linux.microsoft.com> <20240127000104.7c98b34d295747ab1b084bd2@kernel.org> <20240126191007.GA456-beaub@linux.microsoft.com> <20240126150445.71c5d426@gandalf.local.home> <20240129172907.GA444-beaub@linux.microsoft.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 29 Jan 2024 09:29:07 -0800 Beau Belgrave wrote: > Thanks, yeah ideally we wouldn't use special characters. > > I'm not picky about this. However, I did want something that clearly > allowed a glob pattern to find all versions of a given register name of > user_events by user programs that record. The dot notation will pull in > more than expected if dotted namespace style names are used. > > An example is "Asserts" and "Asserts.Verbose" from different programs. > If we tried to find all versions of "Asserts" via glob of "Asserts.*" it > will pull in "Asserts.Verbose.1" in addition to "Asserts.0". Do you prevent brackets in names? > > While a glob of "Asserts.[0-9]" works when the unique ID is 0-9, it > doesn't work if the number is higher, like 128. If we ever decide to > change the ID from an integer to say hex to save space, these globs > would break. > > Is there some scheme that fits the C-variable name that addresses the > above scenarios? Brackets gave me a simple glob that seemed to prevent a > lot of this ("Asserts.\[*\]" in this case). Prevent a lot of what? I'm not sure what your example here is. > > Are we confident that we always want to represent the ID as a base-10 > integer vs a base-16 integer? The suffix will be ABI to ensure recording > programs can find their events easily. Is there a difference to what we choose? -- Steve