Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6708395rwb; Mon, 5 Dec 2022 16:51:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fd4KiUoBgNhOEHIeVDJlaZmCaaio2MrBHfMV+WRLUSFo7288/gLSaWrza2zENQaI826Ru X-Received: by 2002:a17:907:8b17:b0:7c0:8e2c:38b8 with SMTP id sz23-20020a1709078b1700b007c08e2c38b8mr24693457ejc.561.1670287878530; Mon, 05 Dec 2022 16:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670287878; cv=none; d=google.com; s=arc-20160816; b=UQdvdoC86qFDY0K64sHjsuHOPJF6PrKuB/vBmXxMqexo/rKdx7/d/nI16ta2iU1BJN 5AF38YY1ITGWJcZ/UVoQJB0kif9Cxrzq/rSGSbwxlQZ0kteOPNW9jvnsS6d0dgcwss7d 7Cd4iuOQ/73giU4q8NUq/UDbONB3e3gUnfE0VJwVi5vifMoma6XStUBjZ4+BulqYb25j WNoZX3WjnBl4bnFEJ9rx3DL+JLATEl2VFHKAjwguolS1Ti6w6vVux/2SsA4Fby8yyJ7j /IK0a6m1uqv7qUgMrjxx+5px/dHdBfmvMPBc8VCGpcyysID4jBN830k8CnKcUTvt6ahf j3Aw== 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=E6tS42wKzHwFWcgmodnkZoyUX7n80tfZY9XLsxmA1Do=; b=e6jnunDV7HSxgtyubQA/zNZ7bqC8rjPqFnE2/zrTG1IHVxuBSNwh/RHtIwFiGNH3v+ k/CLAVGTY+q6gNNGu+jbQHlFYNXKgnUPURxgmiybgO9Bml74UXsfp5Q+WgpSZSzMP/ch 5itm3n+BJwulNeTpen8oHwU3pJjeIVmPPFFvBo/WMMOCgPqznVtFYrO0RXPDI7K9kyAT GbB7j17I1TWTVLdMehjPKp/Z4iPTD9Pp8QfQOYDgY8xcjDzRKXizYNDhpaN1UxRhboN8 bK9rRCoxrkCBsTmQa8N6sx+SH2hlxHXXHV75vuSvV43WbZA9GRI5NEmgUPabCf6pzTnJ xp0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k2iyRQqq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020aa7d283000000b0046329e2724dsi712306edq.86.2022.12.05.16.50.59; Mon, 05 Dec 2022 16:51:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k2iyRQqq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbiLFAfj (ORCPT + 80 others); Mon, 5 Dec 2022 19:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbiLFAfM (ORCPT ); Mon, 5 Dec 2022 19:35:12 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 651361FCC4 for ; Mon, 5 Dec 2022 16:35:06 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id r72so3706060iod.5 for ; Mon, 05 Dec 2022 16:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=E6tS42wKzHwFWcgmodnkZoyUX7n80tfZY9XLsxmA1Do=; b=k2iyRQqqWCIOrdGtkc621KTyw3Yr8i4hemurWthxx+uElc9rkOjhMkhs8AHFngTMCQ DfWICT9igcSRKiks8MRkStVkTnEnGVu8IxKxsxNdkh7fB8EFo0lqFMdEvIYom1OMEEnx X98+fIRvMweLWdzFtpDrqbHud15fbqJi2R5Ci4rcKWQaCrrXzysQ+fuzTLPkR8iP1ml2 SPL/NVz0SSKg07HMy0YXbUs2Depj0h78qD79bjRgnT3SWAMB4HB/PdHCph86NMCeejN0 Ru43E2K5KIKsm228N/Bmu/VimgR5R8oZhSxxyp+ltMAge/2LFzWVG9zNMN8qahivx0js z1Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=E6tS42wKzHwFWcgmodnkZoyUX7n80tfZY9XLsxmA1Do=; b=pEVJd4nybKrT09jR8HGJVtORDhmt2s3wkvYKdiHCmQlK1Bddj9O19NR3TzzwagvtLb eoq04+QXBFv/T28ETGq1Cz5GrrE+/mnxyE1ZEkq2+pwVcjKvIxQMoodV7CLHDPULuOev EE5/gDD9LXHKPBDwSFsFdeSrFFjM5sS/QN7jU50NKCt25DN/i8HjCFUiOoqL28ii4itc lDRMrQaFlepUVSN1nlEB6k2yinahVVsGr1UASnuGxb4ZF3UOFafzyeLfd3Tds5oWeC4e ZJTsu6YTBpcHKXxSApZcMEnELK3ED3KR4NGYsifjJ6cVzSDY2DoS2wS4GuTGoLB4MhtA QL8g== X-Gm-Message-State: ANoB5pnnP0LgqOu0yWu8rW0iuJAF0CQzBrWTjQl27libtQfYF0dH+66v CCI7P+moZtwDtl19VzxC3Uk+suS9jMnVYA== X-Received: by 2002:a05:6638:3e87:b0:363:798f:a924 with SMTP id ch7-20020a0566383e8700b00363798fa924mr39236651jab.172.1670286905378; Mon, 05 Dec 2022 16:35:05 -0800 (PST) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id x3-20020a056602160300b006bba42f7822sm6408213iow.52.2022.12.05.16.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 16:35:05 -0800 (PST) From: Jim Cromie To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: jani.nikula@intel.com, ville.syrjala@linux.intel.com, daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, jbaron@akamai.com, gregkh@linuxfoundation.org, Jim Cromie Subject: [RFC PATCH 08/17] dyndbg: reduce verbose/debug clutter Date: Mon, 5 Dec 2022 17:34:15 -0700 Message-Id: <20221206003424.592078-9-jim.cromie@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206003424.592078-1-jim.cromie@gmail.com> References: <20221206003424.592078-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org currently, for verbose=3, this is logged: [ 3832.333424] dyndbg: parsed: func="" file="" module="amdgpu" format="" lineno=0-0 class=DRM_UT_PRIME [ 3832.333888] dyndbg: no matches for query [ 3832.334093] dyndbg: no-match: func="" file="" module="amdgpu" format="" lineno=0-0 class=DRM_UT_PRIME [ 3832.334570] dyndbg: processed 1 queries, with 0 matches, 0 errs This patch removes 2nd & 3rd lines; 3 differs from 1 only by status 2 is just status, retold in 4, with more info. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index a0dc681cd215..445f25ef2461 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -265,9 +265,6 @@ static int ddebug_change(const struct ddebug_query *query, } mutex_unlock(&ddebug_lock); - if (!nfound && verbose) - pr_info("no matches for query\n"); - return nfound; } @@ -536,7 +533,7 @@ static int ddebug_exec_query(char *query_string, const char *modname) struct flag_settings modifiers = {}; struct ddebug_query query = {}; #define MAXWORDS 9 - int nwords, nfound; + int nwords; char *words[MAXWORDS]; nwords = ddebug_tokenize(query_string, words, MAXWORDS); @@ -554,10 +551,7 @@ static int ddebug_exec_query(char *query_string, const char *modname) return -EINVAL; } /* actually go and implement the change */ - nfound = ddebug_change(&query, &modifiers); - vpr_info_dq(&query, nfound ? "applied" : "no-match"); - - return nfound; + return ddebug_change(&query, &modifiers); } /* handle multiple queries in query string, continue on error, return -- 2.38.1