Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3943937rdg; Wed, 18 Oct 2023 10:08:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxrMyQADGviIPxewHe/VfumGspUeAukiszc3YXfVqkQou8NLPHcUxNmYLSXD4K2NbicAk0 X-Received: by 2002:a17:902:fa90:b0:1c7:365a:566d with SMTP id lc16-20020a170902fa9000b001c7365a566dmr4999330plb.66.1697648929937; Wed, 18 Oct 2023 10:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697648929; cv=none; d=google.com; s=arc-20160816; b=Se0zKkAg/L4anwyHG+QIn6yGTNwx0+N9QUT7rMWN7ZHel+bWIMPSRqPA0bcMTrzkdH mY/W97EKlIaGwnxXLr3eKTfwNmulmph5ThoK4ULL9zAnHU27rJUvvcEGRj+4MJ4PVdPP lMAwr24Bq65l5+qZbWQqdhN3dS6xzaMdPxklhi6jYPx+Hqu0aZhlbwwG8KdMkyOJwP18 HBnnCCiUwnKkMjSZfmk6gd95zXmgj6QeNXYrdFCTr6r4tDqDUZyDevGudtI2nBDswn0B eZrUgGwzN3efAmcO8MiWy73uweSZ3flfLDPOuhel/wzpKs9wp5Isp68J7p/bXZ8TTUKO kERA== 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; fh=dD4hpA3+YqlszWEwFTO+ADczjyhU7P27niWnWgZXhCU=; b=jPB75YbamiGqMdWggYzAlwcsTmpGbvfORfuSlW6ThETRr1B/UFiF8M6OniOeCPkMxe KwqkEjYVtPvue5vsJOjmiwbo0wokZuJhSrSRBz3i9LYq/iR2hTuIp5sXHA1JMzIYz8Kw OJ8iblasekSMu7expffszr36WvaqMgVRZUDynABY5wMgI4nBI07ArIPsfaqFvmPUSl5v 3eRW2f+a9fj37RCFB/FsZN43WsuKYmSf2ykg/3HU9+g7pPa1O9F2iE5YhHsP5I7NyRcs g//6wtfv/+ILHPHRV0HLO6WB6S1TCdYfA4oUy+6zIPuJWXmfyy4ma9YPF9Mh1C1h/RhZ kI1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nr6Aq4C3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p12-20020a170902bd0c00b001c9c8c4c6d0si267343pls.26.2023.10.18.10.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Nr6Aq4C3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0ACA580BB5D6; Wed, 18 Oct 2023 10:07:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231670AbjJRRG5 (ORCPT + 99 others); Wed, 18 Oct 2023 13:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbjJRRGc (ORCPT ); Wed, 18 Oct 2023 13:06:32 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4730C185; Wed, 18 Oct 2023 10:06:25 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-77acb04309dso284293239f.2; Wed, 18 Oct 2023 10:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697648784; x=1698253584; 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; b=Nr6Aq4C3SjJiw3qHQe83gCz5GxFbhOuGiKw15Cj4wh819sQdZiUKSYtfEeDRcKTdWD 7J2JeP9m4HihWsOJKExEwy6QGW9DImTxfMAwZnhAmmOmYIq2uOlZByvV4eEnPk6cD1I4 /Rp6ihZHw1ShZ4TSghwj85YeAJHy3s9fOE00MPLxyI7midHYtEMj9OZD2Af7O5JpSeGL +EyT1xtN7zNvkA55nuUfCyOAx7XFVpAnl12bP9HG9jf9FeAWqtACyMTX+aT+7IBd6FdT br4CVguvVggxEJC7tfHTbI3Y9CbXewER09CRu/KV15sBweyUru7CzgA18v4LEy6XKoyX KK0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697648784; x=1698253584; 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; b=Ip7O/bUAwRO/OKRV8fivzQ8A20dynRi+/w6jDrfQKagTXWC4E+WMynN/cTUkykbxxa uX64JN3yGThoZThyCdzt1m//Yefymn2z1diii+XaAn2Wwj46W95Nx3a6YrN9WGP64EA1 B/VW6GsSRYu4xCiqoaeoiZuu3tfaCJr1rqDInveEckJ6mPxdvohpWPHRgdG6DsJY3AU3 rcgdeTtBiK9hhLGkTSayBYeUGkPte5ncWE5EZLMQzrBWE5tqQH8Njon1GPsmUet0suXc +ovhyIk9XNzHZLBX2aN+vB98dDtqIj8FWKI7xxrm8wAqmObaxPQ1dFQuKBiS2RoiX1dG icIw== X-Gm-Message-State: AOJu0YyZcnKMESsYMgWhl1ECcALkNVj3FitsuN+R8ajGjsrM1ZUKCBLY S4qms8fIMWfn8ILzLFRo8GHj8dNLHg1fOw== X-Received: by 2002:a05:6602:1611:b0:791:2db5:c779 with SMTP id x17-20020a056602161100b007912db5c779mr6946727iow.10.1697648784315; Wed, 18 Oct 2023 10:06:24 -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 n4-20020a5d8244000000b0079fa1a7cd36sm1228944ioo.30.2023.10.18.10.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:06:23 -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, rostedt@goodmis.org, linux-doc@vger.kernel.org, Jim Cromie Subject: [PATCH v7c 12/24] dyndbg: reduce verbose=3 messages in ddebug_add_module Date: Wed, 18 Oct 2023 11:05:52 -0600 Message-ID: <20231018170604.569042-13-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231018170604.569042-1-jim.cromie@gmail.com> References: <20231018170604.569042-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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 10:07:48 -0700 (PDT) The fn currently says "add-module", then "skipping" if the module has no prdbgs. Just check 1st and return quietly. no functional change Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 8beb98a831f5..45870a699507 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1242,11 +1242,10 @@ static int ddebug_add_module(struct _ddebug_info *di, const char *modname) { struct ddebug_table *dt; - v3pr_info("add-module: %s.%d sites\n", modname, di->num_descs); - if (!di->num_descs) { - v3pr_info(" skip %s\n", modname); + if (!di->num_descs) return 0; - } + + v3pr_info("add-module: %s %d sites\n", modname, di->num_descs); dt = kzalloc(sizeof(*dt), GFP_KERNEL); if (dt == NULL) { -- 2.41.0