From nobody Thu Apr 2 20:20:23 2026 Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (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 149B53A7582 for ; Thu, 26 Mar 2026 18:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774551284; cv=none; b=YCwin2biba0QtxHeKSUxSUOqe8pn/FWHeZ03v0S0AAHJUaG8CXqaII6OhjniN0jFWQtmknJdPxzUF6Y4NRUYpCeuGox9zb9M4/LGJAMywwFOjY76DFqLra7MNIPhPbLNZgyGgDaak1FVm4DdotKMTw5I3ylI0qQiSkGvSGfc/UM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774551284; c=relaxed/simple; bh=E1VF4T7M7c35q9Qypwa46ANAajyN9sx88/WRdouByGg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WE9uz/xXs4C6map0oc1h7GolmgKf4+Q1isjEtu+qQEJP1NEQ6vH1aAWdudVbHdXTpOwFtKqR/shGu6ZfVI7rJrHTU32pImsTTRAWJmxb5PCPXHgiNNoIpb9PUVG35deRTSmxBpiEfWMyF8hg9jstM4TXag7aiy9gWrMOo8dk86Q= 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=XD6MAfku; arc=none smtp.client-ip=209.85.161.53 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="XD6MAfku" Received: by mail-oo1-f53.google.com with SMTP id 006d021491bc7-66f3e7d9eccso778706eaf.1 for ; Thu, 26 Mar 2026 11:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774551282; x=1775156082; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4wIIBK2xLHmy9ZZczWpP2RzFmOx4bELZz7aMw+RGO2w=; b=XD6MAfkuFGX+r6gi9KDzBjorR9+yatBNuBBp8//2Kl758ErMCwSme8Vw97j4m2J1TW VqSCbxkF5V7ejKQjEpmtmBsLsRc4elw1hoLYFI5G7b1WA9l0vtT5fiqqhCB600VifB+c 68cBwFzzVBg1dgSLJqq3gsutZR2ogLIMPM0NZURgerBrdZPyLODUbKJM6HR0kX/tFO8c Jmfo99I60AtfhoxZrSCxTNkiFPCnHrsY/98+AWyCv9cimUPuMryG1n1Pi1+qYzzrYVf9 N0hI7W67KBaaA2eg9iTSGZEH+334nJagp2Y2A4Gx4+BGMPi6d0xdVwuO3AZHTgq9g44g 24Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774551282; x=1775156082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4wIIBK2xLHmy9ZZczWpP2RzFmOx4bELZz7aMw+RGO2w=; b=Q97wl7MShFE79Kfutx17r1nQylN+traxL+3CXxq6XTWQNESQtreH0QOLxKYSqif2t/ 5KnLUVI/2NwUOLZ5v0h5WbavFI4oco1THODSr0hpBeR1gLnCi958eX4ppHY6Y7j2FkrY MF9Y4Cqifm1RZu5bylULwQizSQDDGyrsvnGaqD6lwuAmC2r5LHZRzUcfn0kSKiI+RxTQ V1ELMBVjr5q+lcoN/DumsHr2yHEiTOwUMk7tURN8o1vXuZDSbIufdzum9gbNfW6/KuUW aIa95Cobt3WkqIoRhYSE0Sh7LDotb3mOuPhPAoQ1hSMTewbXfj8iVZZ1wPh6MHoXdCKz N68w== X-Gm-Message-State: AOJu0Yy/c1CYRPX5UsfTN5SkWOsc4V3Iy1i8ecNu7Yp1+mqpun5KlAVk hxhAuuis+Ms/K8G2eQm8gIMR7OgaYVK4NZ54AKBaq03pNdLCrZ0jvaMcuRl4ig== X-Gm-Gg: ATEYQzx4xWtT6MVYrbt9RUKHp5UJihO51Z3c4olzgmqKLK3/odm6oa2QMo/rue0ahHR vzN+gzKsNpzPLjpKhrm9q+rvIMvj2qr6IYACDC/9F+ZnbFJBCzprRc3N6C3Rpc7kLmyUo4ghzHJ 5XsSmvmu4spiNtaAZ2xiucBuua9/nWuYsnSRVLyoIMWtj0KkPwU66bX+rorFYVINl+BPjAW+cr8 W3lMV2VsYmltvmgrDD8HYVHpTsLa9TCHxLzcdffOpzHAoO981EnvfHCtgPKuaCCSV27duYFRx3l Hta1zK3+3iN4A2sqZ+gVqGcPepTRiv2+EspnPOEKx+2P80xPqSyLknhmkCyaq7okQH9igU0J+bG X/Wf30ReqWdKUiDSgrVDzWlZ6z35jlgCyPbEbf4XduCxRgnL62BJR9QB+NVPsrc0FF6e5byJY6q ou/2rQrOYaWGXIuzWvSmx7UXKVpJmt0oQAbCVW9Z9OgpK/Q9m7 X-Received: by 2002:a05:6820:174b:b0:67c:2af2:a66a with SMTP id 006d021491bc7-67dff37caf7mr4976746eaf.11.1774551281759; Thu, 26 Mar 2026 11:54:41 -0700 (PDT) Received: from frodo (c-98-38-17-99.hsd1.co.comcast.net. [98.38.17.99]) by smtp.googlemail.com with ESMTPSA id 586e51a60fabf-41cc7760c08sm3075171fac.4.2026.03.26.11.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 11:54:41 -0700 (PDT) From: Jim Cromie To: linux-kernel@vger.kernel.org, airlied@gmail.com, simona@ffwll.ch, jbaron@akamai.com, gregkh@linuxfoundation.org Cc: jim.cromie@gmail.com, mripard@kernel.org, tzimmermann@suse.de, maarten.lankhorst@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, christian.koenig@amd.com, matthew.auld@intel.com, arunpravin.paneerselvam@amd.com, louis.chauvet@bootlin.com, skhan@linuxfoundation.org, pmladek@suse.com, ukaszb@chromium.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH v12 08/69] docs/dyndbg: explain flags parse 1st Date: Thu, 26 Mar 2026 12:53:12 -0600 Message-ID: <20260326185413.1205870-9-jim.cromie@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260326185413.1205870-1-jim.cromie@gmail.com> References: <20260326185413.1205870-1-jim.cromie@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- .../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/Documentat= ion/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, up= on which to apply the flags-spec, all constraints are ANDed together. An absent keyword is the same as keyword "*". =20 - -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:: =20 match-spec ::=3D 'func' string | 'file' string | --=20 2.53.0