From nobody Mon Feb 9 16:45:35 2026 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (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 8D210207A08 for ; Sat, 25 Jan 2025 06:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737787602; cv=none; b=CiVp/Qn3hnu3/vBt/Bz9CJ2lNAe1zmrqMac21XA2J055D25OHQfjhs7b2up8FCYlSdo36IFz3JTLTXbKeD14oXuTTdzTa9r+qBaxV5AqIorPvGV1pd6rKBBVSBOfT6/Gn1j5YG/142oU+WDrZtyIDeSSuUBCKWNfB2FNik0Veyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737787602; c=relaxed/simple; bh=nWgPi3L5Ju6RPUAPjOidsUriqNoQ0PTJ9Qx1+By8rf0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UxBkfrTCwfllawVLYu+DePcb3/rQfRpY/koI+LuI1ZrB0bM8E6OOA8PaZQmNRRjWgHR7DDZQc5PHe1b6j1tUC/4hxmymQxeS+/vj0lOQngbdXBZVdX7w1goIeMwxB70oqA4wPD2ehynp5e6Gz9u4hHUpV3NdV/qumJqjUiQrDXw= 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=XxoEt6Fi; arc=none smtp.client-ip=209.85.166.43 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="XxoEt6Fi" Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-851c4ee2a37so198172939f.3 for ; Fri, 24 Jan 2025 22:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737787599; x=1738392399; 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=lC0bEfQkqUFUX2DEnhyRE7tZ3eJxkUlfRX/DOTIhCKw=; b=XxoEt6FitcFxmFDzkysiJaAyZMwSF0+uN0BvZAj6WTXEdPIpa2wfhpti0m+l9JNzO9 ryajozYNOv4XwB12CWRyQx/kThnhZDdpvz5/9xJBGQPw53ILR59xT9n7HH1LOJTpKQ89 ONy87qNmhdS55gJ2bI/Iho9CyaPOOl+vedzpwAGNcv5IPeVRp96rVEaMx9pL7XTMMAUn e1wmZhyyjEjM6oJBexho3VGijMTRQX+4AsmSZXPKlZCHF5RgTCcTvJ3jumGEa9TuayIz M7Sc3p6NgNH2gFol2mlVBeeQ/+g8Bgi+KU+4zcFGCTBYV8jUIRiFui2X1yuiqiDYFKri NyEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737787599; x=1738392399; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lC0bEfQkqUFUX2DEnhyRE7tZ3eJxkUlfRX/DOTIhCKw=; b=tho0Qy4QGQI8wcOnQdpzSPZUcDK5uVDfWBIqhqIQfnM9gI6TW9LIIilrWlD+ATTTmw c3LaI+XFxgbtg62x+RfYBD7cMS76ien6LUENL42XRCbr2ZlWmUa1hYhblGb+hVVlOtHv lKb8S174u93z8moZitDZRrci+pObNInaUfC377gltbCoVGAt8spcc5keEZQUFKZdRNfP UcNEL2ESdiSoo/k4rvlPI7xd1/NsltebxwajXPwE0iusf8EZxCdFVUbuHNWuZ5D9ZYIS mg66+sSmDJ/kYSNAThBjG70ycewPDaVYHhmWrZAML9IGwidnnaJFL/C0d89umqFCmoHN Z1tA== X-Gm-Message-State: AOJu0YyTUtXJyK4YSuDrcAhdJ3j9j88dZRMX4qIn+TaZ8Rc5lRPF7/NT tRdlmDmB6bDc+20iLYcEp1B58EsSPtCrscB8ajyuIR1O5gIgN+MkJaj8QQ== X-Gm-Gg: ASbGncuMYU3mxShy1vLLWAxIc3Vr8uTHTDAU+01vkDnEDwQhNsIJHVVXItH2JKfbZNA jqxFkRILwBmvjgoIHbAXMpQ+jfhpBdLd5U7DhS0H7T4vHttKSWmIpJsukPTOq3LhZXLwyg7ybHv eFoDtyrU0iOVjuZ9A/f2SmnbzYARkoKgiwDhYISxfcXWMgawD3hgAqaR106ELgyQZPg5Xr0vuNL 4Al0jLPJ0435MhKGzSlfKlCHt6ogXhzlwc6+mxfuISyEb08WwRIKUuNq6OTy0LzoFBN8FMHasZc 4aQyiYE7NCOnV/ltunfKwahpo5EAKKLzteYnnQ== X-Google-Smtp-Source: AGHT+IGCJkMDi6QJz04QzrJP+6InsJu9u2vONXpHhIfvz9GYsm9WZO74SuyY8vqfLEAfr6A647uPAQ== X-Received: by 2002:a05:6602:488d:b0:849:a2bb:ffdd with SMTP id ca18e2360f4ac-851b618abd4mr3617977939f.4.1737787599462; Fri, 24 Jan 2025 22:46:39 -0800 (PST) Received: from gandalf.. (c-67-165-245-5.hsd1.co.comcast.net. [67.165.245.5]) by smtp.googlemail.com with ESMTPSA id 8926c6da1cb9f-4ec1da476fesm1174144173.58.2025.01.24.22.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 22:46:39 -0800 (PST) From: Jim Cromie To: linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, ukaszb@chromium.org Cc: intel-gfx-trybot@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, Jim Cromie Subject: [PATCH 03/63] dyndbg: reword "class unknown," to "class:_UNKNOWN_" Date: Fri, 24 Jan 2025 23:45:17 -0700 Message-ID: <20250125064619.8305-4-jim.cromie@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250125064619.8305-1-jim.cromie@gmail.com> References: <20250125064619.8305-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 a dyndbg classname is unknown to a kernel module (as before previous patch), the callsite is un-addressable via >control queries. The control-file displays this condition as "class unknown," currently. That spelling is sub-optimal/too-generic, so change it to "class:_UNKNOWN_" to loudly announce the erroneous situation, and to make it exceedingly greppable. NB: pr_debugs are only alterable via >control, and to protect class'd debug's from unintended alteration, "class name" must be given to change them. Classmaps map known classes to reserved .class_ids (the 1..64 val range per module). 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 5a007952f7f2..147540c57154 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1154,7 +1154,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'); =20 --=20 2.48.1