Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp834386rdb; Fri, 26 Jan 2024 12:08:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IESze0urUNXf+GVfZveS+mxrop09zg4AKlXi59iOIzhU4du/Pf5NKgBm63LjPIDo49r5cv4 X-Received: by 2002:a17:903:3245:b0:1d7:199:cfb4 with SMTP id ji5-20020a170903324500b001d70199cfb4mr321162plb.54.1706299702195; Fri, 26 Jan 2024 12:08:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706299702; cv=pass; d=google.com; s=arc-20160816; b=IqEut9lKsmll1nJqZFnz+OHMvo4FpxfAbnaOEOK2o+3SPCCo7vTPPJToggczgz6VX+ G3TTJ0CoXSXghYi9JW7tTc4W3D4nmowR3esVdCIsdw+rInIYq9H1TjStjjjEkQCZHxTZ MgEyTkX++GDQnULUbaLZk9IS7R176S4HrbHszgzxlSoqjuCx6GoW3ag4oFBz0LKHQQNF v0dGIujz4KsPLK9Iy+tqGhd+TCLCEG68YovTp1GVWrtKMGlKGY2RzaW01w0HZyJxM4Tf 6r4DfrRyKPFAlk54KkSE9+j/4HQztfWUFDVDdaQI60cMZdq18IHmQzFpg5UGeIjODsQ8 i18w== 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=AhokR3hLWN+2KiMUoKBcd4p8ynE+ZRSj1qZl1ayWqtc=; fh=bLJtBGLKc7nExBcxHnJ0mooe2zA9rwQ8OrXUu5u62vg=; b=lalbZYNLqI7Tki2vBBtEumK7xJFGP0spzDRcJ9ybr9BWd3rzNN4n2ANoeNYE5A0+Wn fDw6PmSNn8Tvs2sGYhX38OzQIMlJVlksfceP4QR+m/D27gKxVVYEDRQJ32xAeo6D0nVQ hluT0rO1Baqppb8DM7Z+IAt6dfADJm3CunLYpe/MSFpEmxrL5wIcsRG0ZHJrtsUiGdL2 kGzvHAPSdfBeas+G1fcb3K1C7ohYh4Urg6gjPGVK+HVq7YUoZBtNgff4983n6t11Zpk7 UvfLJp5TSR4jZOpQuTiOGJCJ1tXQh8GDSBT2ac2cvyZLWnp28KfeC8Zp/bb6EbEmBI8E 8j9Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-40603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40603-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t1-20020a170902e84100b001d5ac82c7fcsi1709158plg.447.2024.01.26.12.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 12:08:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-40603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40603-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 75B75B22F78 for ; Fri, 26 Jan 2024 20:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE59522EE3; Fri, 26 Jan 2024 20:04:44 +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 51FDF22EE5; Fri, 26 Jan 2024 20:04:44 +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=1706299484; cv=none; b=bNfmILJGi8FuKUdJCy4Og3OpKQbQ6NzuWEZAjBt/pRRE/WWIeq5UbftH1bHsLlr8uuKhyf3McDjrqNOBk8DO7479NlGZzOYFe4AGiVfW21ZaapvlEmwEExjvYCW5/FosKRNZ5TbU5xCtPco6B67rv0QmrJL99YWQF6dDsQrPwuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706299484; c=relaxed/simple; bh=IfeDUEa6PaW2Z0SPW3DXlCzgYBQGS6SOuHgow2fYReU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bCQTeNpnd1YiOtxFvJOl7GORKn1OWskwA0bKnlnNwaHZenUXaxWilObOgwNerqO8yR2SdTUjOOQqSeZTBrCk0hXCp7tBsTFrniCccXbEgE3lrZ9HdCnmhhMmkIumNVFWFEjtGZdDfNuEcS5yTkXmOLGEE8RbenU9m9LZIHio974= 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 288D4C433C7; Fri, 26 Jan 2024 20:04:43 +0000 (UTC) Date: Fri, 26 Jan 2024 15:04:45 -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: <20240126150445.71c5d426@gandalf.local.home> In-Reply-To: <20240126191007.GA456-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> 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 Fri, 26 Jan 2024 11:10:07 -0800 Beau Belgrave wrote: > > OK, so the each different event has suffixed name. But this will > > introduce non C-variable name. > > > > Steve, do you think your library can handle these symbols? It will > > be something like "event:[1]" as the event name. > > Personally I like "event.1" style. (of course we need to ensure the > > user given event name is NOT including such suffix numbers) > > > > Just to clarify around events including a suffix number. This is why > multi-events use "user_events_multi" system name and the single-events > using just "user_events". > > Even if a user program did include a suffix, the suffix would still get > appended. An example is "test" vs "test:[0]" using multi-format would > result in two tracepoints ("test:[0]" and "test:[0]:[1]" respectively > (assuming these are the first multi-events on the system). > > I'm with you, we really don't want any spoofing or squatting possible. > By using different system names and always appending the suffix I > believe covers this. > > Looking forward to hearing Steven's thoughts on this as well. I'm leaning towards Masami's suggestion to use dots, as that won't conflict with special characters from bash, as '[' and ']' do. -- Steve