From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BF5335F196 for ; Thu, 23 Apr 2026 20:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776977687; cv=none; b=FUbxxB4JJFdRideQEnU5xTqBXiiKcgqKc0yklMhretQdoprp+MSCf533vxwVL3eBxC4V2Lo9Iv20UOeyC4XaHwqfDSW5WzomGS7BoA+8kOKd46zmSM8LEVHzzasv0P9kSOSoO+yZXRkWTBUEyOCt6iTb13IGDzANwQi6eczziPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776977687; c=relaxed/simple; bh=jPGjXS71/Sd5PdlEbYR5u6p1XmzzkhLL9WEpBvy8svQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rgKKZ6PHhEaHrS9Ot83camUxtgZ64mTePBqaxRw/c/d4fET5VrNx3Em/cV8dKfhQiIO2Fb+LufDPBcxZ47jXxo777vqh/A/i6Apb88paTwq4fuHTmSIn9hy2JVfe+ZJJN12kDheF2p/wq7b6vb7fPRKA+QXYBX6sWxna0CBZw88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=omwwR4kM; arc=none smtp.client-ip=209.85.167.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="omwwR4kM" Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-470145d7df5so4423378b6e.0 for ; Thu, 23 Apr 2026 13:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776977683; x=1777582483; darn=lists.linux.dev; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xAEAq+kQJrWXZQykWzpQy5kgtDlX9Aaw3Ob6jXsM1wQ=; b=omwwR4kMzkg6Xs+S5w9lXQM/ED9mwmStdeDkov4MHy/8N7dyH2BD4I8aR/FI7q5gBI IRyWJ8dSrl8YrRZmpmeAy6Zq1vvgW7jDWa9Xvgyw5q6FaG2FIJEOmYwhvlqEk4TTjl0v Da6+1wL581AlXNM5W3bKpjvCr8gnLTJKca5KB9X5qMum43tin95tYq6dkv+42fFNvaaI D+nPSuUTRB7KynViy5rsxOLK9qZDPYhmcnXk3iYebpQ4O/Rusa/yXoCfKg4WHJw+hXWa X3fQ4tPJg+ICPWsWiUQIfdL0wykfVq5AgcM11mSwRHr0U7gDtv3LnM8Bslg8U/Bxjd+O HBKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776977683; x=1777582483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=xAEAq+kQJrWXZQykWzpQy5kgtDlX9Aaw3Ob6jXsM1wQ=; b=YWSRd8UNdtofyk14q4BQOoZLMY2g5oxhv88J0IrYVXlEOQaDo77kb3cUasbMeTmQ8t pg08v5I7Y3Giga4YGXJlXshJIkTGjLS7tI7E78itZt5CtP60GlQIZXeF/zH6fmk2QaA2 3JXMWnHojTGV9fYpoucEVy0G0SeSv7iB1ezC1VaQ1wtmMBJJ9GURWQH8w4fs2Vdj/fr6 uS05hwqYaHvNepOtjYx+TjWf9ZfvCdxc2HZhETVdTb/iOxlTmZFwshuvaMRSN+jKwnPF hyRlR1skYeksqjzisqaCQujHnfpaTsjqZi1nmK9/TUZ0nhN6J6P3FtEPjnNh0lcYxLLI GdEA== X-Forwarded-Encrypted: i=1; AFNElJ+GgsI+Gslyqy04V+g8b66Ct7LjBs2kJ3Su5ETTIV5f9KIgtQ5aHRKMbThfjKzqT4nU87Hutj3vu4BPoFcGNw==@lists.linux.dev X-Gm-Message-State: AOJu0Ywk1FHMc6uz+INSl66NjA8M7k4cEsSnW5xIA9gdd65fPYXivpMD HSYZS/rkJLCh9BZ1SBiavHGcoGsKE5poiL48qoSJGSSi2RBcxE8/X4YB X-Gm-Gg: AeBDievUMgHrGY7fyIKDBSLIxq1nDEmFqrWt1tF0QmTieB9cwiUY38C+GdMSKae/87c GfSjGOpLAYizq9DQ2Gln4iIZMY/x4NyPf5i0kCeBKq6OVT4vdgyBsxOZQIwDqT/TVufCOBHFnjF Yk2oqKjZzxt/LdxK1D+GOzixN9nCh5628ZOknVStrKn3BuxawGLrGCm0OT/4VtKKTnYnj6KWfPp ZEnlZBxKiXl6cXev3yj4FuA+hTC76Dz5fAZZvpg/llKBuCOmXTEFHA08E30MIerynvXws2ibX9o 1+ToL1qugSCJ3kE7Fl1euIkYr8NQByvpBRSzjoIvef4akkNijoouITk8ZeOZXXWhNkxwvpALCod WMD6TPBHNEBlHf9pNaRWuuRJm3Q+ENMBe3M3SQRf1NnqBbMnU+vIMxVMgCmVkt0eWe1KQfu1/Sa psjeVhNixY5Rx0sRBbsq6q2aFlTuz5ntYxsBY44uJFrcJzZUK9vJyyjfholSjh/c6NYfSX/nQgn nGkO+iVs3c= X-Received: by 2002:a05:6808:d4c:b0:45e:f443:dc3d with SMTP id 5614622812f47-4799c9424e2mr16765336b6e.13.1776977682728; Thu, 23 Apr 2026 13:54:42 -0700 (PDT) Received: from [192.168.0.245] (c-98-38-17-99.hsd1.co.comcast.net. [98.38.17.99]) by smtp.googlemail.com with ESMTPSA id 5614622812f47-4799fead505sm14329744b6e.2.2026.04.23.13.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 13:54:42 -0700 (PDT) From: Jim Cromie Date: Thu, 23 Apr 2026 14:53:49 -0600 Subject: [PATCH v14 08/92] docs/dyndbg: explain flags parse 1st Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260423-submit-dyndbg-classmap-foundation-v14-8-2b809a8019d0@gmail.com> References: <20260423-submit-dyndbg-classmap-foundation-v14-0-2b809a8019d0@gmail.com> In-Reply-To: <20260423-submit-dyndbg-classmap-foundation-v14-0-2b809a8019d0@gmail.com> To: Arnd Bergmann , Jason Baron , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Andrew Morton , Jonathan Corbet , Shuah Khan , Shuah Khan , Greg Kroah-Hartman , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Gerd Hoffmann , Dmitry Osipenko , Gurchetan Singh , Chia-I Wu , Matthew Brost , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , Lyude Paul , Danilo Krummrich , Patrik Jakobsson , Zack Rusin , Broadcom internal kernel review list , Louis Chauvet , Haneen Mohammed , Melissa Wen , Sean Paul , Jocelyn Falempe , Ruben Wauters , Dave Stevenson , =?utf-8?q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , Philipp Zabel , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Chun-Kuang Hu , Matthias Brugger , AngeloGioacchino Del Regno , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Alain Volmat , Raphael Gallais-Pou , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue , Oded Gabbay , Maciej Falkowski , Karol Wachowski , "Rob Herring (Arm)" , Tomeu Vizoso , Liviu Dudau , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Liu Ying , Laurentiu Palcu , Lucas Stach , Paul Kocialkowski , Jianmin Lv , Qianhai Wu , Huacai Chen , Mingcong Bai , Xi Ruoyao , Icenowy Zheng , Laurent Pinchart , Tomi Valkeinen , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Javier Martinez Canillas , Huang Rui , Matthew Auld , Jani Nikula , Luca Coelho , Russell King , Christian Gmeiner Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, virtualization@lists.linux.dev, intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org, spice-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, etnaviv@lists.freedesktop.org, Jim Cromie X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776977636; l=1814; i=jim.cromie@gmail.com; s=20260203; h=from:subject:message-id; bh=jPGjXS71/Sd5PdlEbYR5u6p1XmzzkhLL9WEpBvy8svQ=; b=HMPoys38nD06ZJHUUrHCqtojr3UfS4NPv3Z3vnBVFyI30FyzOStWh/NmjFhaCcjRBJPNZBJ17 GJd8iWMP66nCqhCyzWgR1+dBVaXdJOf5pW87LkLUcDicQIXZDja/brX X-Developer-Key: i=jim.cromie@gmail.com; a=ed25519; pk=C6E5ODlPQo7ZBynATXH9wg7K6HxP0pIXyf4s38Qw0XE= When writing queries to >control, flags are parsed 1st, since they are the only required field, and they require specific compositions. So if the flags draw an error (on those specifics), then keyword errors aren't reported. This can be mildly confusing/annoying, so explain it instead. cc: linux-doc@vger.kernel.org Reviewed-by: Louis Chauvet Signed-off-by: Jim Cromie --- Documentation/admin-guide/dynamic-debug-howto.rst | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst index 4b14d9fd0300..9c2f096ed1d8 100644 --- a/Documentation/admin-guide/dynamic-debug-howto.rst +++ b/Documentation/admin-guide/dynamic-debug-howto.rst @@ -109,10 +109,19 @@ The match-spec's select *prdbgs* from the catalog, upon which to apply the flags-spec, all constraints are ANDed together. An absent keyword is the same as keyword "*". - -A match specification is a keyword, which selects the attribute of -the callsite to be compared, and a value to compare against. Possible -keywords are::: +Note that since the match-spec can be empty, the flags are checked 1st, +then the pairs of keyword and value. Flag errs will hide keyword errs:: + + bash-5.2# ddcmd mod bar +foo + dyndbg: read 13 bytes from userspace + dyndbg: query 0: "mod bar +foo" mod:* + dyndbg: unknown flag 'o' + dyndbg: flags parse failed + dyndbg: processed 1 queries, with 0 matches, 1 errs + +So a match-spec is a keyword, which selects the attribute of the +callsite to be compared, and a value to compare against. Possible +keywords are:: match-spec ::= 'func' string | 'file' string | -- 2.53.0