Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3694476rdb; Sun, 10 Dec 2023 17:17:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/b7HTU0iWajai/wOSEikfCe37dGrWzUv0P96Uo36zLla/Bg1Dl2DuAdrzjU4m4eck8f8P X-Received: by 2002:a05:6e02:160b:b0:35d:59a2:2b8 with SMTP id t11-20020a056e02160b00b0035d59a202b8mr7478020ilu.88.1702257445801; Sun, 10 Dec 2023 17:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702257445; cv=none; d=google.com; s=arc-20160816; b=Ne3YKnc7ChqPP0S0q2YkM2feGiDoodBo6rVqbsYHoj05GApaOU+pKSZzaKLHp+puc7 rDSPr+eBavPV7Qrfnf2uCXJB/bnLikkTPn0nowYQhM4JZcBBUe23oeFYSg6c0ei1KCqQ aFox0J0R95WKAljl4nmVZAfqTycA9BCHV8GiKgu4UizwoL7XrtPYniU9MgkfR7KIJEt9 qJN9+QT4uVW1Pxc8Z9SC7cJV4yzou8NRkF9fuHmhU7pHs9CinjoJNB5kGtEjqtPhu69n wj1iySL5Zfzpd0B4zhWIAZ5spm0QVQ+IBlH3rYqCRJ+GBPSOQVAYQKyw1PCLPOkrYOMj eJzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VAr82kwugtzbxXQbspSiybQChUgC2XA6qNuMpS37s/E=; fh=KIqNadKdoXXNuNWwTWVBnkOHfmKNuZmbkSLJfcNoNTc=; b=joN7mKVDfxpoVAboflzZ2v1Q4O8+qndmmMjL9ZZs/UT60z+fP1dlHUCxVHdIUWsLvF y3Hc0TVaqABiyU4wWhUSfQa2hHdliJhOl89sk6Cn6zONyBKpC/bBF8fWzg6CKNQ5XvNt a+g1YtBqoM45CU8NFPPDk5H5Psn+RTTIXqx2d96KFNu7+DhYjEh+rTEtMhbO0GNuv1fP XK7+yYTOhgO+q/nmW2FIv8a2hcnzCcnqAI4jiNfqgHqFNjOVAH4nDHkxMCldWTP9nJ/F 6Fl21VpJaou8/mFuZlU6zkn+qMQE0JFLL96+3RMMaJiXd6uTTeeiNx44TynjghcnjBpE coWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gjPirvrj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id n15-20020a170903110f00b001d0891f986asi5289207plh.525.2023.12.10.17.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 17:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gjPirvrj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C42C48057449; Sun, 10 Dec 2023 17:17:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjLKBHd (ORCPT + 99 others); Sun, 10 Dec 2023 20:07:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjLKBHc (ORCPT ); Sun, 10 Dec 2023 20:07:32 -0500 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77AD9D0 for ; Sun, 10 Dec 2023 17:07:38 -0800 (PST) Received: by mail-vs1-xe36.google.com with SMTP id ada2fe7eead31-466029f2d3eso1007214137.3 for ; Sun, 10 Dec 2023 17:07:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702256857; x=1702861657; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VAr82kwugtzbxXQbspSiybQChUgC2XA6qNuMpS37s/E=; b=gjPirvrjZdgPyt6RyJVdLSWyYqvktLe+55nilnBZKAVQ0aJUoNooiaVdC238HQ5ESE 2NfwY7CL9ePu1HHnUpLQWk/qfklxv5Sb0RmTdMfX8JFhwAYT/VvLqsFsz5H4w2gJpiw0 A6vOn59O0Fjsx9KB2tQKxPlpxVYC/aa37cQKB3LwJxOWLvekL7dyEqQ+BAtXTcaPVy1c +ErPfYCt84f4caWVDjcUEAq0LZIj5OMQgpTk464EBkpRpMzLPircEP3b+TkRHPV4zlpR xMD+kA+blbJIC07xWBW5m3QCBwr2KTSPqDUp8Sm9xayQXfhJlfHO1YEEh2szUT80DzqW z/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702256857; x=1702861657; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VAr82kwugtzbxXQbspSiybQChUgC2XA6qNuMpS37s/E=; b=XvALgLKh8NnqQ2E/jYEINzno7VuWXKb7lHjDk4I7xza+yFCH21UgfOgz5zk6AVZ3uR iQ95W+Om6bfUQf5eVHIZk7ehBSxMoujYzzjfbd8oaI54YG1OhFB5w+akZU06HnuvXzIa hf+lYiVinSGjIiMKu+wXGajuwgcnnLToxgxv7e2eBNm4H2EQ2TQSxtMtfuWroLFbVwR1 ONwB+F+MaFOF1wAbzBCBGsegMzR6ieS8mmmWIZiaYUo8/5mZci5frbMP+HyDRfYky7Yc +3psIqOrktJiVbKKDNbHrl34DFCfdbdhQgx8bZ+dd9iMKnKT9jEAUcgC6cxu2OB0FRkF PBPQ== X-Gm-Message-State: AOJu0Yz0ft6JXPY6hi+8ZQfMgeoQOZw2ac1j9kY32BF0ZpiePZER0sAq aNvSgzXZmOse7IkfKLS++Wdwgz5vCaQmDUinNMk= X-Received: by 2002:a67:ba0a:0:b0:464:77f2:55f with SMTP id l10-20020a67ba0a000000b0046477f2055fmr2286225vsn.49.1702256857438; Sun, 10 Dec 2023 17:07:37 -0800 (PST) MIME-Version: 1.0 References: <5351f56289add68eee2aa5288f82a313c2b9f664.1701993656.git.jim.cromie@gmail.com> In-Reply-To: From: jim.cromie@gmail.com Date: Sun, 10 Dec 2023 18:07:11 -0700 Message-ID: Subject: Re: [re: PATCH v2 00/15 - 08/11] dyndbg: split multi-query strings with % To: =?UTF-8?Q?=C5=81ukasz_Bartosik?= Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, bleung@google.com, contact@emersion.fr, daniel@ffwll.ch, dianders@chromium.org, groeck@google.com, jbaron@akamai.com, john.ogness@linutronix.de, keescook@chromium.org, pmladek@suse.com, ppaalanen@gmail.com, rostedt@goodmis.org, seanpaul@chromium.org, sergey.senozhatsky@gmail.com, upstream@semihalf.com, vincent.whitchurch@axis.com, yanivt@google.com, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Sun, 10 Dec 2023 17:17:23 -0800 (PST) On Fri, Dec 8, 2023 at 5:32=E2=80=AFPM =C5=81ukasz Bartosik wrote: > > pt., 8 gru 2023 o 01:15 Jim Cromie napisa=C5=82(a)= : > > > > vng -v --user root -p 4 \ > > -a dynamic_debug.verbose=3D3 \ > > -a \*.dyndbg=3Dclass,DRM_UT_CORE,+pfmlt_%class,DRM_UT_KMS,+pfm%cl= ass,DRM_UT_ATOMIC,+pf > > > > ':' would be a more natural multi-cmd separator, but is reserved > > for +T: to designate separate tracebuf instances. > > > > If '%' is distasteful, the backup plan is ",_,", since that would > > never appear in a useful cmd. > > > > What if we use a different character for passing trace instance name > to the T flag, for example "-", +T-trace_buf > and then use ":" instead of "%" as a separator ? > *** entering the Bikeshed *** One of the nice constraints of the flags-val is that it always starts with = +/-/=3D the 1st char of flags is the only place they would appear unquoted. using '-' again dilutes that specialness. the whole +T:named_stream. syntax has a mnemonic value, it seems to explain itself (but I'm weird) WRT to ':' vs '%' as multi-cmd separator, what do we lose in each trade ? ultimately it invalidates a query containing those chars. IOW # impossible query when cmd-splitting on % echo format "search for %s because %d" +p > /proc/dynamic_debug/control # impossible when splitting on : echo format "my_label: " +p > /proc/dynamic_debug/control NB: only format would see an arg with either : or %, since theyre *never* in filenames, functions or module (or class) names. Of the 2, % is even more unlikely to wind up in a name, colon already appears in host:path and urls, and in some class-name systems (tho not planned for "class" keyword) the ability to search for colon-terminated labels seems more useful than searching for a particular set of printf format specifiers, which btw cant have colons between them.