From nobody Tue Feb 10 01:59:50 2026 Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (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 B3534208978 for ; Sat, 25 Jan 2025 06:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737787610; cv=none; b=G32bgLaHUVkEhOknU+uYrMZSGro/dJRFDLke9rvc0MK973zhjckW7fOClTqC/Ju2iV9My7Rw4tq3oSoQrvA8pNZlimDV4cs6pJhaLskXKiJAkyY4Ng7s77VGptTcsVcw/ZwQhrp/NcVT9lb1z6K/GrKeIDgDwt1t+1xAoQGnUM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737787610; c=relaxed/simple; bh=JVuh/MQ7exuYdVaBwTAPV2KisZ9vIJiAbLH8eePrU0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X/t+dEIaqRXFQlFCn0halXVIlK2Z/Ivl5jNIl4c0G2X/NGUTVtyi4ppjv94NHplNjBDfZXYleB5tF3VtP3cWMXQgeZP97EY6AEmtMjf5NWu1rVBCfzdYaMcMtWYIVNumBpivk57lQwssHqTPSWi2784E02N8WIovWcqV2/Ms08Y= 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=QPAh6wjV; arc=none smtp.client-ip=209.85.166.177 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="QPAh6wjV" Received: by mail-il1-f177.google.com with SMTP id e9e14a558f8ab-3cf82bd380bso23194625ab.0 for ; Fri, 24 Jan 2025 22:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737787607; x=1738392407; 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=uX3l/iQikxAaQX2/QdRkr7TBe7St6PLnbGyQCN0qCdQ=; b=QPAh6wjVOkpaHEf2muy+ozFCh9QaBOVyIrjyiIADFCB3NeWkEaQXj2g6EXfmwd6Yqt JLohSpimMJSbryDNI1opieZmYu883pE68ftx8LN8boxR6LqoU9M0BtOwhOmogBpcq3fP h7BZWLOVRBaalRRe/nwO2/WdYM8YqU1Ca9pNu1ANO1okqlk7mf+qgKzFDm3pKH/exwLG Ob5b+ZmoMFInU3hKwyjkyxHdejRlWE9Z3EyWNk76t08KY3MVoI43K7mbAidC1zaotR2H nET4ODBxrPqJTRYp4YPDFlLOpGm1qvXpHhL1/5AdLPQsiqwN9i0lxbJh98j1vutNBHbl tv+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737787607; x=1738392407; 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=uX3l/iQikxAaQX2/QdRkr7TBe7St6PLnbGyQCN0qCdQ=; b=oP40kn9saO5fXYSxL8LzpJ7tXYqpEP7GmKihLSS0p4xz1ykY+3nOyQ1zeYej16pGBy Z42ICDMUSYqDNgeam5yADvYxb/ePi26uFZGNOEiqROG4IlwegigSJH0Llh5bkjlmW76d Oe7tXHbpmVIZY04UFF9/b8nkPf4TQnDOEnHSlUJNFyM8oYjS5qVTQnBYxzJAtBjunVoS ippbI5l/uA+qFHzUKQ/Kv2pEGDo/7xBv/dKe4gOOThIPddD008qPHRBl+oYfBiIyhcyV gsAPyTo46SWjg/2vUtzDROdFBmUv/7O+Z+nLu6Hh7XX7T4yqkG8jqFJk/fWGErYNDxSv SevQ== X-Gm-Message-State: AOJu0Yyluqc4qBQIFo5l3mYm+8vrLw8hFNqLS/Z4PjlwbA54fPXd1C/n 7WtvqsQQAbZSByaJpHhhU3KZYRb3zr91vdM/XqpHqimLFx4V2arc2I4oMQ== X-Gm-Gg: ASbGnctVYNkiCx8KHfLnzFNkpdNn1JZL/gjKNr9KD1MForlxRow9rYXOVkAmQPysQxR W1dvwrpSnTzctO1qDOWaPTGjZO+hzUQP2bRaSQHvwveGyHnd/uHi4deXB+l6L/fA67kFGzBVmz5 N7IDmlfgimThAJo1TvUYnqC5aV5Qy8Pdd+JDiBiMf/POhddDnoeIV8uftaVRrXz7E0RtzziP2LO d73FqXz9QglvNo0hAp3/kmK5m7foUl7m6iJNVd3phpMu+AmO4LfUlQwPsE7ciqx3fD6WsmdFHrN 1zAGVEea5pRYhiC8dNOfRnOAh4DrYzzaY4bZcg== X-Google-Smtp-Source: AGHT+IERZTxhAZxFSe1csHMGwCl8KwsmPfchqC0NaFpULXt8261DlITQ09T7azGi9+ykPl9fw06Y+w== X-Received: by 2002:a05:6e02:1d9c:b0:3cf:bb11:a3a4 with SMTP id e9e14a558f8ab-3cfbb11a52bmr102830845ab.15.1737787607309; Fri, 24 Jan 2025 22:46:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 22:46:46 -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 10/63] dyndbg: silence debugs with no-change updates Date: Fri, 24 Jan 2025 23:45:24 -0700 Message-ID: <20250125064619.8305-11-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" In ddebug_apply_class_bitmap(), check for actual changes to the bits before announcing them, to declutter logs. no functional change. Signed-off-by: Jim Cromie Reviewed-by: Louis Chauvet --- lib/dynamic_debug.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 1b2fb6502e61..c27965180a49 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -595,7 +595,7 @@ static int ddebug_exec_queries(char *query, const char = *modname) return nfound; } =20 -/* apply a new bitmap to the sys-knob's current bit-state */ +/* apply a new class-param setting */ static int ddebug_apply_class_bitmap(const struct ddebug_class_param *dcp, unsigned long *new_bits, unsigned long *old_bits, const char *query_modname) @@ -606,8 +606,9 @@ static int ddebug_apply_class_bitmap(const struct ddebu= g_class_param *dcp, int matches =3D 0; int bi, ct; =20 - v2pr_info("apply bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, *old_bits, - query_modname ?: ""); + if (*new_bits !=3D *old_bits) + v2pr_info("apply bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, + *old_bits, query_modname ?: "'*'"); =20 for (bi =3D 0; bi < map->length; bi++) { if (test_bit(bi, new_bits) =3D=3D test_bit(bi, old_bits)) @@ -622,8 +623,9 @@ static int ddebug_apply_class_bitmap(const struct ddebu= g_class_param *dcp, v2pr_info("bit_%d: %d matches on class: %s -> 0x%lx\n", bi, ct, map->class_names[bi], *new_bits); } - v2pr_info("applied bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, *old_bit= s, - query_modname ?: ""); + if (*new_bits !=3D *old_bits) + v2pr_info("applied bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, + *old_bits, query_modname ?: "'*'"); =20 return matches; } --=20 2.48.1