Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp347026pxb; Thu, 17 Feb 2022 05:33:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf6M8K+f2+gGUxmoca5UIr8OkMqzgaXZvSOy/8HDIyhukMWRrAYdl0OkOvT+7FntSHx5jl X-Received: by 2002:a17:902:db07:b0:14f:3f88:1b96 with SMTP id m7-20020a170902db0700b0014f3f881b96mr2865905plx.123.1645104838525; Thu, 17 Feb 2022 05:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645104838; cv=none; d=google.com; s=arc-20160816; b=OlM+CphZbDsuLeepTmSzFv7S8hZg5rS+Qqjx46Mw7cQImmjKohOFNYbFIP+MEi9SN9 J0zDwbbgfTHGg6ytVkbAF9tI+hGsFSgfrnioeHmmyMI6YfjVMVPOe24I6F+G+WR6KsKZ N0NUQREIR2JL1t3XQJ57NH0jv3l96bzYgAs28DDV2ukUCsT+/f840k8LvpFG7Ydhglxq 9F+dwgtZnYa6E96dVktg1GQsqRoNHHMQtnQxnLoPfuDiZaWaVHl6iBmKE5jzVKHmG+X5 N50I+xJ6nCXoagSh7T4Vm4Z41Ex03VrCrOxZaShUK+Cdn0fTmwF/M7aKENNnTo7vCvCo crrw== 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=losT24laQK9QPGecBoWrVc+10iJJY8vD90LsvY3Cts8=; b=OYtWE7A1uFoPhUQ0zkeNeTQ8+pP7ZdwcEvWzDNUZol66wguTd3MNv6v7CcrKcXil6J gSHNIujlFmjNVIdj/wK70lmEMLgBkETW5HtlHjyXO82oHd+f6OQFwzjZ0HRXcA/GDNHo vwnvhjD/d+V5seFg3q2owk5UhBaOYcBV9VYXgLxVu/I/PlaLxyA1t4fhsxkSDKCr49/t e+uj6FePDfUJ4VVP71i7gmWERvwhux/s7Z5ZrPFQUz0W+h8gGjzI0SW1qM8+okgNg/aH YPIpYLfeoCKd6VswFe3yBDUbC9IuZJdxp4ScZOSl5ZJWwIAFjJLY8RyNx8z4UdLw9jLH kn8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YDLt3Q4X; 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 c8si775701pjv.158.2022.02.17.05.33.42; Thu, 17 Feb 2022 05:33:58 -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=YDLt3Q4X; 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 S233142AbiBQDtH (ORCPT + 99 others); Wed, 16 Feb 2022 22:49:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233061AbiBQDtB (ORCPT ); Wed, 16 Feb 2022 22:49:01 -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 4EA1BC0506 for ; Wed, 16 Feb 2022 19:48:47 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id t6so2173756ioj.12 for ; Wed, 16 Feb 2022 19:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=losT24laQK9QPGecBoWrVc+10iJJY8vD90LsvY3Cts8=; b=YDLt3Q4XVCU3SNY6uD7/FtoBt1YQ4vttc8gh9hCegP9KTPTewYcgxbnMNm35qs3sAN 83UuPyJiUycHSA5bqOW/TvnLpQ8ZL3hOV9hye+FMmwPZAsKyYaddsz4SNiz5qTk7zw+B V3zhfseOndqMAok28xM0o/fGD/E3AZIxhNC/DXcYBPUGtMnP1DEgi34hn45krZaAVCYh A0krsFznnlGBVOsrhLynW7/WtLAXCEiEqme6dgmGmAzf2kxKEThugOK0qfV1r2FpW2mD r8HYUa4v0OFsi6wanQA50eghIq6p284MDyFzJ4I76OeLxkDX1pmk806sJvl9H4j4X1Ln gf1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=losT24laQK9QPGecBoWrVc+10iJJY8vD90LsvY3Cts8=; b=z5L2Cm7JJYyRpXtzS01KdXoFt+UeNhtOMQnQxwtPJi3ZRtB8Eho2MgpQltm5N70jH1 IIx4eON4H0GgTY9kQXJemggYHl5QG3mMfT7hu59Fv0tBBuP9ZYsTLfSV/Swyk+u70vHE ndH4UMbSlbYLM9QxJM9o/2FXPi8UDZAFz39cOtUxRd+EnZLM4dwljcQILYl+kisfmEd5 EzOyCY+78APS2Ow7o3dQh7kVCCLthWI/MES69NjHeTCfyXi6SuCXUULo7eCefynlfy3q Gno2oLBq+4j49w1cfN8ymPvBuAV6c6GXkUEC59KO8jAdqKuauPMNtnwLIDfcR/U/6tlQ I++g== X-Gm-Message-State: AOAM5324oEehOx36d/uXv1BDsBhBZD/X2+Ltc/EPeEU6XKLEoFomSTw7 rDVGhUHsDdTnFkO8pSI0Jfk= X-Received: by 2002:a05:6638:2387:b0:314:7ce4:1be8 with SMTP id q7-20020a056638238700b003147ce41be8mr745234jat.286.1645069726592; Wed, 16 Feb 2022 19:48:46 -0800 (PST) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:2010::1b19]) by smtp.googlemail.com with ESMTPSA id l16sm1127874ilc.54.2022.02.16.19.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 19:48:46 -0800 (PST) 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: daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, linux@rasmusvillemoes.dk, joe@perches.com, Jim Cromie Subject: [PATCH 05/13] dyndbg: improve change-info to have old and new Date: Wed, 16 Feb 2022 20:48:21 -0700 Message-Id: <20220217034829.64395-6-jim.cromie@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220217034829.64395-1-jim.cromie@gmail.com> References: <20220217034829.64395-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,T_SCC_BODY_TEXT_LINE 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 move site.flag update after the v4pr_info("change") message, and improve the message to print both old and new flag values. Heres new form: dyndbg: changed net/ipv4/tcp.c:2424 [tcp]tcp_recvmsg_locked pT -> _ Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index b72632212a65..77db640396a8 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -158,7 +158,7 @@ static int ddebug_change(const struct ddebug_query *query, struct ddebug_table *dt; unsigned int newflags; unsigned int nfound = 0; - struct flagsbuf fbuf; + struct flagsbuf fbuf, nbuf; /* search for matching ddebugs */ mutex_lock(&ddebug_lock); @@ -223,11 +223,12 @@ static int ddebug_change(const struct ddebug_query *query, static_branch_enable(&dp->key.dd_key_true); } #endif + v4pr_info("changed %s:%d [%s]%s %s -> %s\n", + trim_prefix(dp->filename), dp->lineno, + dt->mod_name, dp->function, + ddebug_describe_flags(dp->flags, &fbuf), + ddebug_describe_flags(newflags, &nbuf)); dp->flags = newflags; - v4pr_info("changed %s:%d [%s]%s =%s\n", - trim_prefix(dp->filename), dp->lineno, - dt->mod_name, dp->function, - ddebug_describe_flags(dp->flags, &fbuf)); } } mutex_unlock(&ddebug_lock); -- 2.35.1