Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp883172rdf; Fri, 3 Nov 2023 20:07:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEu0bCBkGl8cFgs+fH44gTq2L6q5IV/X+nHm2OL5qWCNBp2Wf3wehFjImYOVYeUDc0Nlwl7 X-Received: by 2002:a17:902:e545:b0:1cc:6fdb:b639 with SMTP id n5-20020a170902e54500b001cc6fdbb639mr10546214plf.13.1699067270505; Fri, 03 Nov 2023 20:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699067270; cv=none; d=google.com; s=arc-20160816; b=ROu4A3QAeNuAMeZRVIHE3RU8rwMZd69QU8YxziRVeqbXZxrb/Wo561anmrGcbnAviR C+FVbWMbJexg381G70YcZImjj+CK9XyaX6UpfxkUDsOdDYpRyevD+7YgvKMQJob9GnUz okR9Kaap0lCUFyagac15gQlredelAGlGLGA7B5vJKrGFlhQBDT6vHeviKb22Ql0DYLFD U1UZ9OjK1WQX+ipX7IU4uYtkzMpIIwiqtBaCzmvmqS/AbKgf2m1jMTxfnouhmfGg4+hP QCJtBHjFauwIn2Lrc3Q8mBEEwEm68RQW3KMEytKuqIwXHPyO3hO7WJm3VxVImF6GWDf4 C/JQ== 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=JZ25dqMfmLYeg2Fl8aZNdg/aSqPTkJPsImAT7P2Xhqo=; fh=hm8KtcG5XFjVZPkNvVhFffx0LGsjfjp8SyUB/UtwLxA=; b=xhTmfZUHlCpH7OHw1soUPCv4+7MojLQ7k5SBqb9LeiBjn8ZvJe+Fb5FbnKwDHtvMkO vvf494H++6XmaRysXI58x5VlFUoAQfbXKSGZW73QlSP1fszYJN9xnl3D/CMIgfZwECiM ZkQjjokpnOghPm8bEzqzdlW1PwJXD3ocMh0vsC6MOXRZr0YR0+CdS5lhRRdAca1IciUo TEqmkXC3Jj3MrD2gOhYRqdNGEqB3FxCPzpbI7yErI3UIVSjO0eyZCzg2e9DtaDxn73yu 0+Od2fdV2anYkguNQE5LRsoHCtnVSWtTxTq2tBGh/PqyoRe+P9CXFl9JDb/uGuKHwGON lAew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a1Mw9g2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v3-20020a170902ca8300b001ca7308e442si2591628pld.639.2023.11.03.20.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 20:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a1Mw9g2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id F3E1A802A3D4; Fri, 3 Nov 2023 20:06:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233372AbjKDDG2 (ORCPT + 99 others); Fri, 3 Nov 2023 23:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbjKDDGZ (ORCPT ); Fri, 3 Nov 2023 23:06:25 -0400 Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61500D49 for ; Fri, 3 Nov 2023 20:06:22 -0700 (PDT) Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-4abf80eab14so542541e0c.2 for ; Fri, 03 Nov 2023 20:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699067181; x=1699671981; 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=JZ25dqMfmLYeg2Fl8aZNdg/aSqPTkJPsImAT7P2Xhqo=; b=a1Mw9g2VQFvIjnopXpw1PQAztY6LIBdbtVqupuE9dH45RYfrI2wk+992OpemS4G+sm Oyw2ZwDgEEaV37bs45uTLhunjDiIM/kLWP03Xj9ZOWkKDzJYkAwbS5/m7azWQ9Bhl5Cv IGwZ9gD/SMWESecLmwj/JNa9StbQRsZjdr9xhWGEUqdcckT/LLHAH8DCDvVFARFHxOWM Q+PBnRiOtg+vQWZg8+GhdTrPwmF+L/7WQZMZv70IfPhSvqiuZ1SHXvM6ubunCdSNuD3N +EE6fRnS6rLr9GzRfLH/ZmUaAffN3yUsgD/HGgtN1IgwF1iIQg2BzbnFl24Idn5egfBw yGJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699067181; x=1699671981; 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=JZ25dqMfmLYeg2Fl8aZNdg/aSqPTkJPsImAT7P2Xhqo=; b=MvopffiNuj9yuXAxdedw1EgyrO/X0NlbYAfAjr5DekjZHZT5ifJegoxDrJ8OSp2djl Q7VnaNbzQslsvNizvNcNd04gnofUzkhXbpspEkNa5XOoVeg+zrVKF3bGUwhAO92hlNQ/ RWyDh7AAhfyAD6p35E5k2mIzlL9o22jdhJv7dBhU2xoOwKX5Bn4NrPTsDY4NvLCV1NLJ tD26GwAW9q/OnNZ2kH4m8+dqj81ffDMza6jnDu461XSy56MBOamoNXvEITwHAYqgC/z6 RYlJ2s2WzhXV+1aqmwQLz/Uj9dITan8eulrNux1IvmOkXP+dd/FMZlJDAKFuaEqjDCHS mPLg== X-Gm-Message-State: AOJu0YwX6v0gB5y85x+h/3YkERUzkrJDAkxWQg7aVkF7lf+eadycvYQ5 y62wKWzDgLwLJDDi1hyYAJDEAJV51eVc+GB94VU= X-Received: by 2002:a1f:b695:0:b0:49c:b45:6cba with SMTP id g143-20020a1fb695000000b0049c0b456cbamr21886032vkf.12.1699067181386; Fri, 03 Nov 2023 20:06:21 -0700 (PDT) MIME-Version: 1.0 References: <20231103131011.1316396-1-lb@semihalf.com> <20231103131011.1316396-11-lb@semihalf.com> In-Reply-To: <20231103131011.1316396-11-lb@semihalf.com> From: jim.cromie@gmail.com Date: Fri, 3 Nov 2023 21:05:55 -0600 Message-ID: Subject: Re: [PATCH v1 10/12] dyndbg: add processing of T(race) flag argument To: =?UTF-8?Q?=C5=81ukasz_Bartosik?= Cc: Jason Baron , Andrew Morton , Kees Cook , Douglas Anderson , Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , linux-kernel@vger.kernel.org, upstream@semihalf.com 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 20:06:37 -0700 (PDT) On Fri, Nov 3, 2023 at 7:10=E2=80=AFAM =C5=81ukasz Bartosik wrote: > > Add processing of argument provided to T(race) flag. > The argument value determines destination of debug logs: > > 0 - debug logs will be written to prdbg and devdbg trace events > [1..255] - debug logs will be written to trace instance > > A user can provide trace destination by folowing T flag with > ":" and trace destination value in range [0..255], for example: > > echo "module thunderbolt =3DpT:7" > /sys/kernel/debug/dynamic_debug/contr= ol > echo "module thunderbolt =3DlT:7,p" > /sys/kernel/debug/dynamic_debug/con= trol > > When T flag with argument is followed by other flags then the next flag h= as > to be preceded with ",". > the trailing , seems punctuation heavy. Could we just stipulate that any :string (leading : trailing anything) be the last flag in the spec ? bare T flags are not constrained otherwise. seems fine as API-spec-by-error-codes. > When no value is provided trace destination defaults to 0, for example: > > echo "module thunderbolt =3DT" > /sys/kernel/debug/dynamic_debug/control > echo "module thunderbolt =3DlTp" > /sys/kernel/debug/dynamic_debug/contro= l no colon after T means p is a flag, not a destination name