Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp460049rdg; Thu, 12 Oct 2023 10:23:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEklAbjJ7z2+iDae5znbOg0o7pIXp0+Cn9ECxZrV0XboqU/DfJlETjimrLTKGpNCY1Ood2x X-Received: by 2002:a05:6870:2c95:b0:1e9:9a86:2937 with SMTP id oh21-20020a0568702c9500b001e99a862937mr4233592oab.51.1697131406410; Thu, 12 Oct 2023 10:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697131406; cv=none; d=google.com; s=arc-20160816; b=azR8brMJApB/wFtXP60P9jjbsML2qXJzJDr/13vPHD2d6fNNeJJ7/j/hmpfjR291Lr vZ2PN7GP+JPdVV9id+OgH06gjwXhDZ9YOBYVEeRtoybqrS7wh718RbAFUvVajETYzPDO xdBYN6JdsRwRz/go6p251lfTWt8S1Gpo/ZvcxhDfO3xAiHZY8uB//7e54V0/8aJUVvP4 LakBBG9hYm4rJ4VM+/U/9BIqxAicdiNeJGK57Ebk8B7wJ/wJT1/ZD9pSez2uWrzLmtpq UV4uWMHwKhZy6j0bbzka2Z0oicRSVXgV14cPFhZs44ST0D2aAJ6A9JJaYZ/i5PpW5Igw cqaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/hQ8DAFT4FsmbzhSx1IDeWkXEPOHVXkBPwwDIEI4NyY=; fh=iMt9mR7tPHpILUTScbdc/cv5Bu8Y4MLmy8xlWClXVSw=; b=MRs4YqSeizHceuPqZjWjo5Ul8QC61KoPLiQzxMwamYM6tH80Xkd+SErKWFdbd+zUjD cu09eFc7jCmDDMUrGo8FbAUJsBc3qjF3hSS/pgyRAirtvCVgIHATxN+4asxCURRDrWMf M5woZQpltPXfy+A5tN78rvbQDAtZRUewrI88hTSqOpCai1fZ2caQLz5kUY5gMp3SiPgL 80N2Nrup1lGXPDk7TGAdhqQlnuTa0ZBnj6ZpFvdcwUmx77BUa8YB8JyXjhEq74uO28Ec ujEWTdmrGqMrIt9nHvJNYvtW3Cm0VnCD8yjB3RZsJvA1JhsbgE4N1HmTpBSAuw67OjLu kUKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mAHy8ppp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h17-20020a63df51000000b005859bd29c5bsi2697254pgj.723.2023.10.12.10.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mAHy8ppp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DC75C824E7B6; Thu, 12 Oct 2023 10:23:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379651AbjJLRWp (ORCPT + 99 others); Thu, 12 Oct 2023 13:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379591AbjJLRWK (ORCPT ); Thu, 12 Oct 2023 13:22:10 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19311120; Thu, 12 Oct 2023 10:21:57 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-79fca042ec0so46713139f.3; Thu, 12 Oct 2023 10:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697131316; x=1697736116; 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=/hQ8DAFT4FsmbzhSx1IDeWkXEPOHVXkBPwwDIEI4NyY=; b=mAHy8pppX/TyVMvvpx/5ZO50xJiVwT+Cl4Nfw1fqzEiPXh9cmoVCetzpYe757oujhh rzq+OhHz7DL4C6R77L/3eNc6LIocfbDPe9hfEmSGpQpzSX42b84jH18LYR/KIPWiPqtG uoqhZv0Owhgrbn8QPW3JOoOlTebXf4lmCF4keaaxBAcawWBeNrH6qUS+KbUYowUqOS0I C7S1ruBCZaz7M3zBXGUioImkh23wOId25DEZOlv0Y0kgtu7ubSesAbt8TmXcWxGiaU0Y C0r+/eTVG4v0j6XXjC+cezp1s+/AEArwP21Yu7DOj96GgKNf/zhs8Lc6ToOzDvpMd7z2 w3xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697131316; x=1697736116; 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=/hQ8DAFT4FsmbzhSx1IDeWkXEPOHVXkBPwwDIEI4NyY=; b=hsGyFoo9feW59Fn4vWRpRRn5AOZWqW76nrvZcl9I+GGqb68cRmExmauPL90k+MJGeW TW9S3dfwEskPmxfnG/ybZb01AXaFWJOhoZhskRaGauBbWEgsHoWfh9TwaPYb1n0EA6P9 oFJQqCghCz3mzsJ0RWacvEZs6VDCWITJ4fSu/r2mCrAgwMsKWK+3XwS1r5K0tr+KFsVW eOusbhIjwZ7HSyt3xOEmHO5KfZnobrx3m7fGpQ4wfjsOE3tGomLTOC5ssRDpTHZxSgBw a0H5NrxgQUNrfDEBgi0HgodyWDP8HVv1te+x4SIzhfI0Ikkzdb24ZzoomA5vSFRu9ka4 0niw== X-Gm-Message-State: AOJu0YzLkpj2p6Uv3CGRS3YSq/p6evJLNltJ4oT7g6n37KZ/vxyhYZLq dveNB8/dC2i8Dh4nLozCfClRcKXpgH2UuQ== X-Received: by 2002:a5e:8810:0:b0:799:2163:418a with SMTP id l16-20020a5e8810000000b007992163418amr27533828ioj.13.1697131316146; Thu, 12 Oct 2023 10:21:56 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id r25-20020a028819000000b0043cef0711c1sm3992211jai.158.2023.10.12.10.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:21:55 -0700 (PDT) From: Jim Cromie To: linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: daniel.vetter@ffwll.ch, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, linux-doc@vger.kernel.org, Jim Cromie Subject: [PATCH v7 09/25] dyndbg: silence debugs with no-change updates Date: Thu, 12 Oct 2023 11:21:20 -0600 Message-ID: <20231012172137.3286566-10-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231012172137.3286566-1-jim.cromie@gmail.com> References: <20231012172137.3286566-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 10:23:16 -0700 (PDT) check for actual changes before announcing them, declutter logs. Signed-off-by: Jim Cromie --- 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 b0e11f6bfaa2..b07aab422604 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -591,7 +591,7 @@ static int ddebug_exec_queries(char *query, const char *modname) return nfound; } -/* 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) @@ -602,8 +602,9 @@ static int ddebug_apply_class_bitmap(const struct ddebug_class_param *dcp, int matches = 0; int bi, ct; - v2pr_info("apply bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, *old_bits, - query_modname ?: ""); + if (*new_bits != *old_bits) + v2pr_info("apply bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, + *old_bits, query_modname ?: "'*'"); for (bi = 0; bi < map->length; bi++) { if (test_bit(bi, new_bits) == test_bit(bi, old_bits)) @@ -618,8 +619,9 @@ static int ddebug_apply_class_bitmap(const struct ddebug_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_bits, - query_modname ?: ""); + if (*new_bits != *old_bits) + v2pr_info("applied bitmap: 0x%lx to: 0x%lx for %s\n", *new_bits, + *old_bits, query_modname ?: "'*'"); return matches; } -- 2.41.0