From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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 5B3C23B71B5 for ; Wed, 8 Jul 2026 02:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783477124; cv=none; b=D3bRFdLeacQuzWr1Gf5Y45Jfogss25Vgvz3OzjlagOAqsJdncCUnuGsibKB3xikUqhO9Xhls//ixqmi/L27zQymdDU5EIUXPbhu2OfDeDyIn8HtizAHmMXmSFZ+TdSAA05QjL5NGWq3o9xl87pA1M9TbVrSSySSzNLYQ9ov0i24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783477124; c=relaxed/simple; bh=yfxjNCD2FfV6WQ7UCS9hJEIU3/cj9TtYhccgD7F2GOk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cm19v8Aa3opxI+pzCnW05ytW7lYnYgFX0SH2DhTSXay73uxOtoM7EV6pdArB5KpBKJbcdxWOnpzASxm72UZ6n0vPTkBhj37bvyCoHx19YtevTEA9B9bPpGFwJfZCu0XOq/42CvMsqkAnnK+Oqdcckie7BFZQT+vF5hqCIhRKD04= 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=rVmUZcQL; arc=none smtp.client-ip=209.85.167.169 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="rVmUZcQL" Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-49c86d1d21cso75753b6e.3 for ; Tue, 07 Jul 2026 19:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783477119; x=1784081919; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Tkpd6XZrbayv1qGlRLm5NJZ/GcnFTR7uIhPPki4vU/s=; b=rVmUZcQLaFw0aNmApg6noNV43uIbiXNhcrYwmKT2v5ATs44QHqEXN2gl9qBnhTIoKM y11v8/9pWYpjo697LEUyIKhWdQ8CC5KWEpLBJaobQ4xIoUKsk1u9fKCdHgyMzTqhUVGE KCS5iPtB99xFqDak++QSBP8Y82qWcXOYRW+sMWHQj7H59jiMrnnBeRCYdAkQ2mAej+8G k5+rdPsptizeYQZAtHA7PTIQfZqJlf9v4grm+IaUFGHO7ifm0ggyccetlw/oWW5x3S/F xRYCwmJvl5HWyJlcW+y3pxDyM8IZYzTUnUOlbzcF2ADBEuxcyoVlvkEv0ZROmqcOkFAO NJ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783477119; x=1784081919; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Tkpd6XZrbayv1qGlRLm5NJZ/GcnFTR7uIhPPki4vU/s=; b=P9rSylbt2WZn9/eoXaaNiAcPzHdYiEKt0mVKAobuzyN2E3lLaHQEVMNRsW0VlRyM3U Nq5eX3m3V2hR4kO0/TEbnexR9/Q3DMc4+XlsdofFwk33KZCP/fcZOFuLviA6Y9Wjrde6 Qkc0hMbN+tUPs0mAPHlLiHE4hdD15Gh+79hDj+Te6Z824xPwmSF3QfUpHVlxAe0LV7xM kr8Il6BjzFv0Bp3NKqR1PjK1jbAmspMNhTga5DCmucF4ArH+SEtgbcLNZy8R3ErJNc+n QFfAimKUhiVry1DP43eIIyzyY5WofrEWa7lYzuWlQ17rkyFV2KllUDl6h29Bke1Ptsrq iD6Q== X-Forwarded-Encrypted: i=1; AFNElJ+ur5WPaNG5Bn+KxEK9fJFPIu263N53TbzPvpHUg9CXfnHxSgzEWvXSLsXxLkqa5Ho16R1TA8f8Ilg=@vger.kernel.org X-Gm-Message-State: AOJu0YyOgYl4FPXELl89AcBhmpJhk1Jhyu2JmT164iVPrTxxHzDjWQ7P Mmnm0U7k395jGhBntovDk4Rke/B/nIvUp/16uacEuGSL9RVVfgEHpAZd X-Gm-Gg: AfdE7cnHCgKSclhCV85mmKTZAVUzPBvzZSjDhmvH9oecc2lLCbGxRFuxHs/PbbklzGn uR0PNvj7N48gmheqye81s48XktEFokNlEA0n60UxYxl73fUyg1764I1g9yJ23u5MkrkEDOMHAaY OEqALD5gYamk6WY76N/KJJP9UYNT0nYBTdSISnE3Qhv7buRDUzY4jaxlg9QcZb+rz17qsXGMwKR Vrwke37s02iIBh4DVQsvgGauriVEZyadxxCSYBNSTelfrOsjjPPwxj7VHWh4cOFnts1UekMeg3T 6JWTIK3l++E8s6nulobQugO9sscAJNO36g9KZPT5ksk3Wxf9fOfJdGTDJLXv8GiNXhb8jnRct0h dh2006It1Gb/0LYS6yu3E/Y2Sb9Sj9ZwVzQzBfg7cu6VDNCTplynGX3k+B02644AU2f/640sOG1 csoZTORcsOTlHETN8r6ry1nR8CrB49P7U9te4OSGiSvYUKztUCq+I= X-Received: by 2002:a05:6808:1385:b0:496:301:36b9 with SMTP id 5614622812f47-4a1fea2d9fdmr467296b6e.0.1783477119240; Tue, 07 Jul 2026 19:18:39 -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-4a1aa006f74sm799975b6e.0.2026.07.07.19.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 19:18:38 -0700 (PDT) From: Jim Cromie Date: Tue, 07 Jul 2026 20:18:08 -0600 Subject: [PATCH v6 08/24] dyndbg: reword "class unknown," to "class:_UNKNOWN_" Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260707-dd-maint-2-v6-8-381f3edb0045@gmail.com> References: <20260707-dd-maint-2-v6-0-381f3edb0045@gmail.com> In-Reply-To: <20260707-dd-maint-2-v6-0-381f3edb0045@gmail.com> To: Andrew Morton , Jason Baron , Greg Kroah-Hartman , Jonathan Corbet , Shuah Khan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Arnd Bergmann , Luis Chamberlain , Petr Pavlu Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, Jim Cromie , Louis Chauvet X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783477102; l=1375; i=jim.cromie@gmail.com; s=20260203; h=from:subject:message-id; bh=yfxjNCD2FfV6WQ7UCS9hJEIU3/cj9TtYhccgD7F2GOk=; b=BqO4fRVBObl9QNOP0WewNHKxLyFZjbRWwWNClrxuHOAw7XsQmdRiZGqV/r7Wn3OiYiYYQsKGT PfAkGsNm/bUARzjCeCDIMDx56NqFAFY351zybs4JuMgykY0D7McoJD5 X-Developer-Key: i=jim.cromie@gmail.com; a=ed25519; pk=C6E5ODlPQo7ZBynATXH9wg7K6HxP0pIXyf4s38Qw0XE= When a dyndbg classname is unknown to a kernel module, the callsite is un-addressable via >control queries, and therefore uncontrollable. The control-file displays this condition as "class unknown, _id:N" currently. That spelling is sub-optimal/too-generic, so change it to "class:_UNKNOWN_ _id:N" to loudly announce the erroneous situation, and to make it uniquely greppable. NB: while this might be seen as a user-visible change, this shouldn't disqualify the change: a- it reports a classmap coding error condition, which should be detected in (or before) review. b- SHOUTING the error makes it more visible, uniquely greppable. c- the classmap feature is marked BROKEN for its only current user. Signed-off-by: Jim Cromie Reviewed-by: Louis Chauvet --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 577a07916072..a86e1d5845e6 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1170,7 +1170,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p) if (class) seq_printf(m, " class:%s", class); else - seq_printf(m, " class unknown, _id:%d", dp->class_id); + seq_printf(m, " class:_UNKNOWN_ _id:%d", dp->class_id); } seq_putc(m, '\n'); -- 2.55.0