Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1256961rdg; Fri, 13 Oct 2023 15:49:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuX8oXaTRhxvIG+W3sxm04AA2/rEpmS8nnXsczMkw1wv3q/1j5BZ9+GxTHz7X9/oDq+kr+ X-Received: by 2002:a17:90b:3c42:b0:27d:4f1f:47f6 with SMTP id pm2-20020a17090b3c4200b0027d4f1f47f6mr1794162pjb.32.1697237372094; Fri, 13 Oct 2023 15:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697237372; cv=none; d=google.com; s=arc-20160816; b=OLzyyV1diLQzgIfr4XtdnEppj9bpozVSRyI/uc5gQyppB7F1K0n1epSa+gpCxtXiMc 7EP8Mbw2SVsnwvgHAFWkIEkebZGjNVXRwbx0k80w8FpTWz2uDNSn1iluUs7rcXxUPLQf Ai6m12Rs/xtgtAZRdOdTgRUsRAMAJK8LrtvNul5s3WDJXOg7fsfcljkU90ht/TLnLSN4 fPs1K8QdO8/Y7xJRaAwcMyi284nk9Vrc//yRRG74opOBazcz/Rl69tylk4eeGRRMElld aC784en6CmFlTTF3FATwPKIX7GZEem3ELetUpLBX5GqnV0QVK2IFZN2mNBv/ScIgQKM8 /4ng== 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=z8A2UgI9Ozi/zM+meU3S7fSTeKB52ixSkA1q1cGr6xs=; b=pteLQlPmzp0tUgGIUsHA9mbG6cdpgowB23el/F09o0jf2kb+G+0xfIBzV2KmuDeW09 ZijbKO8zeI/z9jt/9kogAguXICEWtW/ReAeIDTGu67fGr5eLdvSAYdI1+EuwLOfuRQJi eoReoInsM1NxrKiMnwkdd/PgP4JF3nUqLwLT7SeNqG/Z8tqoh5gFINKRVgLkY/+4sBYp V8NedOwgL4fImRbNbARgq2cxPV/z+lTGEDHg+bYCVWQP5MaFJKKCCW4RwEYdvm1pQCyW P3vhAjSH4SmL4txt3oB80p8Zlx9lSoVMcNu4PRcjBV3prLP7TfMk5pm6bVPj7/Gvbs5r NNwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CAVpUL+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id i16-20020a17090332d000b001c9b3c3ce7asi5842581plr.300.2023.10.13.15.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CAVpUL+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 5449C834D75C; Fri, 13 Oct 2023 15:49:26 -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 S232558AbjJMWtH (ORCPT + 99 others); Fri, 13 Oct 2023 18:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232528AbjJMWsu (ORCPT ); Fri, 13 Oct 2023 18:48:50 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 562AAE1; Fri, 13 Oct 2023 15:48:41 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3573fa82923so10019095ab.1; Fri, 13 Oct 2023 15:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697237320; x=1697842120; 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=CAVpUL+TH5pbad6M4LayfU9M6GMW+5aEKfvdkOtUvaV1flgoFoNNyGFJq+nD80c1/0 ouiOlk08wSWU0GOn137awmgc3j853n6Sh7zQfMvg24wElgib/497FeHeSorSxXoMZq07 aAo2sn4jEMOYtbAkuC3Ckfv6CikfjYwKM2uGRpaAaAJzdl4WlhSqIKmnX8huTsXW6WBy O+BYHjRZxXP/iS0hfPxs8zo2z/ZurWCwdDcZp/4XaiDHBzDP08f2LVd32spz7nnbcXIH KjCL0IKPC2vCy+uedgzvyEP5krThQvqt4OIwWlLInYGxsJg4QyA6DdWkO+sK8LDe2hQG 7A7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697237320; x=1697842120; 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=aBsKUIW/7PODU/jgSj4xg1LMrEdA8rIdC5J3oA7lV56srfnwJ4EpyLzGrNq2Z22Ua7 6A/K34OOmRnQL/l1ZiKqgc8AYclaKgLksTYMM5lC1QWH5Wt+DfA5gaYw7VVzMfLDG5AX F1ChnoBXkunQXk7DWyG6aMxkPZhkcmD4WzJ23V/JczsC1d2+BCmd6xO5vMCO/gcnutSW Tjpb4flJaIcjq3gBMLZjedCsgp3mymea8Qu9Jh3diP7LVs2xIEL+AaxDt1fl2xzN96Bc ixnUbCSYeSWxV6iieZKbI0Ti2ZtUvYuwhEVgLt6ez3jjcRiT1b4zuOuUU76dZXT4T6cT DtVg== X-Gm-Message-State: AOJu0YzBxaxT26GjRdJWceTU1vFnOk4+S5NHhuU/1GeOlmY2AxpXsARF lw/kDYzRV5fuhc7FWeHtvnUSCPw+IcEZkQ== X-Received: by 2002:a92:cdac:0:b0:357:4a69:60d8 with SMTP id g12-20020a92cdac000000b003574a6960d8mr10469811ild.4.1697237320251; Fri, 13 Oct 2023 15:48:40 -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 t10-20020a92dc0a000000b003512c3e8809sm1683071iln.71.2023.10.13.15.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:48:39 -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: lb@semihalf.com, linux@rasmusvillemoes.dk, joe@perches.com, mcgrof@kernel.org, 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 v7b 09/25] dyndbg: silence debugs with no-change updates Date: Fri, 13 Oct 2023 16:48:01 -0600 Message-ID: <20231013224818.3456409-10-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231013224818.3456409-1-jim.cromie@gmail.com> References: <20231013224818.3456409-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]); Fri, 13 Oct 2023 15:49:26 -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