Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1582248lqa; Mon, 29 Apr 2024 12:34:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSxM4wlN+Fo/L+FavbbvOHnMBhj4l7YBc624PuvEGL3obNMdd/a74eWJnOxASATtiLgcZCoskO7WsGvzuU67FN6Fhb78JQUaBUqmdvjQ== X-Google-Smtp-Source: AGHT+IFsVmqjwfFjGaRl42y2yWftJHC9yZ/BKOezYrj9mcaAqbyoquvH7oyjn+X9+qd8d1SiS6s6 X-Received: by 2002:a50:8e5e:0:b0:565:6c72:40a9 with SMTP id 30-20020a508e5e000000b005656c7240a9mr8465549edx.28.1714419249522; Mon, 29 Apr 2024 12:34:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419249; cv=pass; d=google.com; s=arc-20160816; b=WdaeSdAu3R8o56ndIGfktxsDM9GQcaY2lWrCFmsz9qpnD2oxdWuXd43vnPACVUeO57 sFC3ORsKioHthXG7MLFIdC9zJoy6VC0oTroSdBncWKfRBNYidR179ZTH+ykBBcp4ec2t FeUc8lkTGua5Y/2Eyjod8SpzumlB7DFoDmODKBGVzUeGq2gzW2RYg99Fe01sTw3+LEz9 Cj7/yj9owWRlCD1ZvbtyBeFDsHV9EdLL6k1U9QJJHV7TzEZs65R8gJNTAtVDOM+MFaKJ flqOCG2sRmKOlwzvP74ygHEvx/CxJewyEFkO+JXL4ejnWcCB8+hdhGvSPTRjHdJXj6pp J41A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=NMzYxLrk1uqdLdUeUsWli3XNHzvndTERg2zJwX54xCw=; fh=QLJPwvRZ2fW0t180fguenMhAUWi4E8Ojwg5xDqFq6vo=; b=cmAI8kUOJNDnto68HgDQfvZ7EuGsjZFZYiwWrZRcX4zMOPIFSVg+LrHkmyN8ev9+T/ d3uCV6rrAgvr7zw6/tEKLd0PZyasH9AtldgRx1KAlgTPahXl/EWvnobV8HJOuMHdln/i pS5GYSD9X4WT23SbwIwgMlefG19NQ5CSpqDA2+V+uPKg8Aa8wr81S+C2ZGNWxPRyozkz XBmHcYfD8HU6DrZ0ZIBmLjG0+KqcIxcbMC9M0OjHYf34Sq8z7kAffGBf6AQ/Ke6P22rz aStD/pjt58TgRgsDoYLW5eGnB3hgLqoeoQTcM/kYGyL4WbbvMsH/Kf8w+zKuw04ZrM/B Qh4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="K/eFqaCk"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl21-20020a056402211500b005726e7558e6si3150855edb.406.2024.04.29.12.34.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="K/eFqaCk"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 19F8E1F24B3F for ; Mon, 29 Apr 2024 19:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9500213D614; Mon, 29 Apr 2024 19:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K/eFqaCk" Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (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 3EEDB13D25F; Mon, 29 Apr 2024 19:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419146; cv=none; b=Rj7JsnYrd3mtACmRc7uKDyWqNrf58VqCjbuJtY1KxENhfcyaiS7VL2Gvrxk1YtXwY9eldzzNT8j6RqcgXEnPmFTWZQldv9EyHAFRLBUvCOXDbNkCdJxevMYAzT5PwAiNiv+n1ZGMv98gXyH71XtqFZfWtnpyuieI28w0KhwCu/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419146; c=relaxed/simple; bh=KYV1o4Fl2vjpH7kTazPcNAEuCJiqPiwXlYmjhO4dm7c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jZTVj+hk3LawA3Szd1rSqizXQRRGX0zX+yER2a53eE0W6lMLwg5euLjvrcPfMUhaUme6eovmGjXedtkoLgqlzvZNwdHF7i9M3wtVhpAc4vbNuEXM8CTUyGseaXTrVvS/iSUvNICkO4j63UjJ2IALlTEMDr29GKYZSGXhwcJ4f88= 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=K/eFqaCk; arc=none smtp.client-ip=209.85.166.54 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 Received: by mail-io1-f54.google.com with SMTP id ca18e2360f4ac-7deb424da41so138371339f.1; Mon, 29 Apr 2024 12:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419144; x=1715023944; 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=NMzYxLrk1uqdLdUeUsWli3XNHzvndTERg2zJwX54xCw=; b=K/eFqaCk9JDNKmhv/lG2aERxNHVKotu0fRvcgFLLGRxnGJUkbRYt6fkE9frM0f+vu+ u0L7dftOCFJ3VYm5Uy50NIQRTiNoamgQgDebAwXwD4O8Vfcj5J/8zvCT/rZ3FSh2n2HY d9RGBS2+1dW3nRbmf1CjW6dbAXfPWCqPgUJp6U0DwNmlLQDHhAtmpYATZ9MqtIKK7kCk YLFIYIDiahLkSgoK+buH5JqHoyyjlGQxzv6aJQAjrxG/KEpvQ+40wmTIk1mtCjtsiIP+ 3lv6OFqDuVO1FwLqA33IMQJKlD3iIx6IEYS1xe/pfsnKIbNaGvIjgVescCjXaeEydPv3 9itA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419144; x=1715023944; 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=NMzYxLrk1uqdLdUeUsWli3XNHzvndTERg2zJwX54xCw=; b=orIfOcRt+ipqrXoM1BDdqtGgyeVDjjJZFVn86bdlA2ZVQWyX2aA7W1SSEkLPUasmSE gyb2c9z5Bwu241oB3fHXYlcRS2e0+9gEnfVe68QEHo/Sus9yV2pXn3y7Kbii+RawfA5I 2wfvoIUBpoWADhC6tJ3zfl1pI1giR2I+JKLc3aZtTjVXeQUmy8OXSS+SQK+reUEO+mWU p6RyMmwEMDQvZ+ourKOCnkB/omYa6tkAUt+B59uHHpMc7OqdStgky1N8gkJTRYsBVT+J j2YJTIO8SZzS4DnoXj0+epE3Rs8YCI/d+Z7IfgRkoOiI6RZ0R5jf/Dw0VNKxE+kmGUTh zmdw== X-Forwarded-Encrypted: i=1; AJvYcCWhl4BTr8B+daqCuXSH8jlU/GEj4bnmlzsw3IxNjecccCm/1rsw8JAL1MD1LB64YKJZIcQP2y037VXLww+M6So1cXI9M/WPOwBkfZiXdirHvlGM0R3/ILInWKr+VSetVLWlAbzl6SlU X-Gm-Message-State: AOJu0Yzpzw7eCvkfE1BrkTO0EuDWs9S4YKimcrZTM7/8HXisR/6tde4e z+eU+DUH5M+WuqRScasiP5DSnPORRfihgz0YAwIFG6nGTm9HZycG X-Received: by 2002:a05:6602:275a:b0:7de:d935:de0a with SMTP id b26-20020a056602275a00b007ded935de0amr1619647ioe.0.1714419144239; Mon, 29 Apr 2024 12:32: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 dq18-20020a0566021b9200b007d5ec9b77aesm5988402iob.51.2024.04.29.12.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:32:23 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, 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: ukaszb@chromium.org, linux-doc@vger.kernel.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, Jim Cromie Subject: [PATCH v8 10/35] dyndbg: reduce verbose/debug clutter Date: Mon, 29 Apr 2024 13:31:20 -0600 Message-ID: <20240429193145.66543-11-jim.cromie@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429193145.66543-1-jim.cromie@gmail.com> References: <20240429193145.66543-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: 8bit currently, for verbose=3, these are logged (blank lines for clarity): dyndbg: query 0: "class DRM_UT_CORE +p" mod:* dyndbg: split into words: "class" "DRM_UT_CORE" "+p" dyndbg: op='+' dyndbg: flags=0x1 dyndbg: *flagsp=0x1 *maskp=0xffffffff dyndbg: parsed: func="" file="" module="" format="" lineno=0-0 class=... dyndbg: no matches for query dyndbg: no-match: func="" file="" module="" format="" lineno=0-0 class=... dyndbg: processed 1 queries, with 0 matches, 0 errs That is excessive, so this patch: - shrinks 3 lines of 2nd stanza to single line - drops 1st 2 lines of 3rd stanza 3rd line is like 1st, with result, not procedure. 2nd line is just status, retold in 4th, with more info. New output: dyndbg: query 0: "class DRM_UT_CORE +p" mod:* dyndbg: split into words: "class" "DRM_UT_CORE" "+p" dyndbg: op='+' flags=0x1 *flagsp=0x1 *maskp=0xffffffff dyndbg: no-match: func="" file="" module="" format="" lineno=0-0 class=... dyndbg: processed 1 queries, with 0 matches, 0 errs no functional change. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 4a48f830507f..368381dbd266 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -266,9 +266,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; } @@ -501,7 +498,6 @@ static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers) pr_err("bad flag-op %c, at start of %s\n", *str, str); return -EINVAL; } - v3pr_info("op='%c'\n", op); for (; *str ; ++str) { for (i = ARRAY_SIZE(opt_array) - 1; i >= 0; i--) { @@ -515,7 +511,6 @@ static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers) return -EINVAL; } } - v3pr_info("flags=0x%x\n", modifiers->flags); /* calculate final flags, mask based upon op */ switch (op) { @@ -531,7 +526,7 @@ static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers) modifiers->flags = 0; break; } - v3pr_info("*flagsp=0x%x *maskp=0x%x\n", modifiers->flags, modifiers->mask); + v3pr_info("op='%c' flags=0x%x maskp=0x%x\n", op, modifiers->flags, modifiers->mask); return 0; } @@ -541,7 +536,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); @@ -559,10 +554,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.44.0