From patchwork Sat Feb 10 23:49:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Bartosik?= X-Patchwork-Id: 199353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1704867dyd; Sat, 10 Feb 2024 16:06:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwV/lyU3jdzNz2clKN4F00763C8LXGSfi1yJG3ctD3JFklGaBaGxz93Ks3kITEBDpekGTUwhesvAypFpyofNDssGMlHw== X-Google-Smtp-Source: AGHT+IEs7DWezA49T+84WNYRKtrOKAeDB6ZZJWEfORISYbieut62n142dqKNf87jnu5Ou4h8FtrD X-Received: by 2002:a17:906:27cd:b0:a3c:660:6a4a with SMTP id k13-20020a17090627cd00b00a3c06606a4amr2041511ejc.49.1707609981128; Sat, 10 Feb 2024 16:06:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707609981; cv=pass; d=google.com; s=arc-20160816; b=qMmIRr4sv4n6LRd2ZL+JqX6wHc7IPjcFdIJm8MmX8JQsnLRJLFh4o7pm71O2iLlcFv YCfs+uyxlWgR2hUKcW3loF+Ly0GfDG4/gVCXLlY5U6cxKDv0e0YxRxWFVSMuAZKDyzIJ 0kyODrGJLE1Nr22C17Kd+h5eLLo07v3Ky+0pOc5urF9ts/q+3POVZB+0F8+PdZ1voMph rMt+w11GhfChnH6pFKEmEgNBFYCV2rEMaiDn0iFmkgoDCVO40EuE6LjB+g8Ie4H4nTnh qsHXohY909ubzG+hXVRQnmwePQUTDUdNZeCgnvtsoqOAQblSNhZVwx2AB6X0oFpEgt3o +DIg== 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=Ns2ZlXdsr7Utv/ToBSlS0u0tX/sChblP3BD9+95vrrw=; fh=BE7PLtJq/kgSGHgHaTV7YvLnVII4KZDowZR2s1+GBGM=; b=aztUsnLoSw/t4jxnulT0/VbsGOO/C9WFm0D19+DV+pRj6pbyiSJZ0+85KbVdWIPFUM 2elEwF/R/fHSZ+/9lYGT+s50+lpfxNurC8uJW44m2UN4cUC/OE5b8e1xxjTLx6m1Koxo 91fgx4JKgsd0xY+FKXOys2rJzWhvI3Vh0ENMurzrRWMm+jcvXc0DA6oJOh5EbxuyDySp BhDzysb07M0MZT1R194iCFP8sPVk+EYLjjA2etC4NE4pc/aJbF8fP85uUhXz2O0cWT3A 5OXudxr7Zfimmdgvji/amlUgQoXb83T+hqzdIbkEwVMTnr2xvSi18wrx03zkt71YjDie 0oJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="F0yf/GS5"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60605-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60605-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCVjO/GRcgnVSusIdRCHs50Bd/l1iScPD59OiY4bXl/cXdt3V3l0dDYmSHDatZ3xc31W6g4OGKAbK84TmkVnfprFw1bDKg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lj14-20020a170906f9ce00b00a3c4d999fa1si579351ejb.92.2024.02.10.16.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 16:06:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60605-ouuuleilei=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=@chromium.org header.s=google header.b="F0yf/GS5"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60605-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60605-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 D57221F26087 for ; Sat, 10 Feb 2024 23:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 244B262A00; Sat, 10 Feb 2024 23:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="F0yf/GS5" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 4669E627E7 for ; Sat, 10 Feb 2024 23:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609070; cv=none; b=h0wK5FHbEJuwDy7YmegulSgv80yef4STdCE3eiN/YeRepBYAVo/5NgExaoIJX2z5mRw5K+wCEuqL8iC9aovxgUZJpd1ieGZNbOuYhKVm83Lf/S7J0ttaEn0CUI1Tdogj8+c+zUsnzOrA2q1u/l/0hd+sorRbDLcehMl0NxEA9ow= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609070; c=relaxed/simple; bh=e2HkgHzrnxkaozeso9X8OpimgMJwsOA48wio9rSEU5g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=erG+UoVW7c7v3FiAyAjCnjIhg5Sa31w4rugMFNTSBliAzA/WEXb6GtyxMVvOe6XH1aYqFzjVP1FftickXKUgn1mgWTLMBDfj7EqAej0Hd+M/sbTqQ4PYrlJ/CYckFcNpQ2yXRDM5G06bBBn1a8nZrXFAyVGmE29F9GjQWmRtbos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=F0yf/GS5; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5116bf4dcf4so2602396e87.0 for ; Sat, 10 Feb 2024 15:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707609066; x=1708213866; 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=Ns2ZlXdsr7Utv/ToBSlS0u0tX/sChblP3BD9+95vrrw=; b=F0yf/GS5FIAwigHoSFmBwrq9a76GZT5vN2oWhFmpTJnsnHO+LVXK2pSQmWoaJ6/Uh6 xZzaL2fqJUTDN4szltM4ruZIkAMNJ65NHc7CQjyMqXP3PM8qqh0GVkBqpVDkvtQFeBw7 ISuLWsRBeZ5s/PHz6CXHAby7dvdjkWtXr9VwY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707609066; x=1708213866; 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=Ns2ZlXdsr7Utv/ToBSlS0u0tX/sChblP3BD9+95vrrw=; b=BLMbA/tT0wJd/PCvunEheVFjEfTsVnNEYurMoEOpVdF+FVajpn4RzXSfaFyznv0hq3 Gy+den/nRYYY9fNDrGAh8CLzNr1X9kQTlvxqS7xr7Ix0bNsaGl3xggarWznXS472ZdVj mzD3Kp0E5DOiC7Lgp5BeVDRonqpj9vCaOBWf9ydzcVvOKxKgzPB0U1eTFOW3pup3gSna NM+eKRRV60let9Wj6DsfWKTV2ABfv55tROPPI/5xNiSXHPgtSP3+wisZKT8yjsAVEDMk OKCQAc5HBpascViJqWEULVUIIfFMEGd+16g5sfg7AJyvV0PYWTeTSfPR4ptouqStaXlr tICQ== X-Forwarded-Encrypted: i=1; AJvYcCXrPaO4z/xqcg6lWyH9mepWyyvFcZsfXeo57Swh2p2L2JTnlz6HNTTUGHkuXNGzmLvNCQSLzBtHpmJabf5SPLG9Q5YLgt81IVsDgDVv X-Gm-Message-State: AOJu0YzAlrPmiImDBDR2E8R1eAcG6bwxr4Ghl0lAd4zqnEZea6iVFECT Ansrfc3F2v7XkOKRn8vKIFttJpd7pQvicIyQuqCQ2EueAyIpFLHwp2zAmB0l X-Received: by 2002:ac2:5924:0:b0:511:312d:6761 with SMTP id v4-20020ac25924000000b00511312d6761mr1882020lfi.47.1707609066447; Sat, 10 Feb 2024 15:51:06 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWz2FwLx9omz+tWms88s4OYHo/O8PSui851Mih+LNW5OyhYTV3MwgvMWwjdnA96xAXAB2gx7x0KPy/06Kd90Q3zQcy09AzjVPmihWjg6EcM9SMPoWdTxQZz3YrudbSkYPmtG1KzqpRJy3T/wuXP3UaNMPaMBhtkUpPo1hAWmKxdb7vJgKD7quoqRycte4VTZOAmbLseN4WwBNNgQHD1Dsizj7h3Zmc6+CHu81p0eoBgztQ9sbofkspX4g4OTo0h0x2zHyoHHwilz3yPmiiuImi9qYaKl0V/JcEt8z5NJVrPDCOvCuNhwg08svpNp4e1gmVkxtFpq7Jv5xPkc0t8zaNFIlUDfr/ELTBVMZ57fxKg5vNX5h252eXes9r9GeLN47tkfsOTtPwx4dpJrR64+esSytnY4w7ydjHpDKaFe0azEWHxMqYwSdKi0gDoJ2WPufrLTuE87tQTXNsf7OFRiHt9IBYCgL7JBMGLqI9BzP+dprkcQcLU9Eqa4yo/J7KtWhdTSVfZVAob9fMJPvmiyWAomKm3L3lW6se3lCf+hT1uF9vaB7OkpWXsimpK4PCgBHWFqnSoVZ83xb7xqJFu749k7dXzT5MsywJKu+29rmVBh6C2LA== Received: from ukaszb-l.roam.corp.google.com (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id o27-20020a056512051b00b0051179ae1846sm365561lfb.280.2024.02.10.15.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:51:06 -0800 (PST) From: =?utf-8?q?=C5=81ukasz_Bartosik?= To: Jason Baron , Jim Cromie , Greg Kroah-Hartman , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v4 22/39] dyndbg: reduce verbose/debug clutter Date: Sun, 11 Feb 2024 00:49:52 +0100 Message-ID: <20240210235009.2405808-23-ukaszb@chromium.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240210235009.2405808-1-ukaszb@chromium.org> References: <20240210235009.2405808-1-ukaszb@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790558843563177274 X-GMAIL-MSGID: 1790558843563177274 From: Jim Cromie currently, for verbose=3, these are logged for each query dyndbg: query 0: 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 it to 4 lines: dyndbg: query 0: on module: <*> dyndbg: split into words: "class" "D2_CORE" "+T:foo" dyndbg: op='+' flags=0x40 maskp=0xffffffff trace_dest=0x0 dyndbg: applied: func="" file="" module="" format="" lineno=0-0 class=... Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index a6c6392cde3e..4954d3e5be5b 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -871,7 +871,6 @@ static int ddebug_parse_query(char *words[], int nwords, */ query->module = modname; - vpr_info_dq(query, "parsed"); return 0; } @@ -896,7 +895,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--) { @@ -916,7 +914,6 @@ static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers) return -EINVAL; } } - v3pr_info("flags=0x%x, trace_dest=0x%x\n", modifiers->flags, modifiers->trace_dst); /* calculate final flags, mask based upon op */ switch (op) { @@ -933,8 +930,8 @@ static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers) break; } - v3pr_info("flags=0x%x mask=0x%x, trace_dest=0x%x\n", - modifiers->flags, modifiers->mask, modifiers->trace_dst); + v3pr_info("op='%c' flags=0x%x mask=0x%x trace_dest=0x%x\n", + op, modifiers->flags, modifiers->mask, modifiers->trace_dst); return 0; }