Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp741748pxp; Fri, 11 Mar 2022 13:56:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA71KJITKdyTcEsSbJebP5i5r3jUXOYvU5zr8J6pXSlAEVUaUfUQ8nb+89DZSal0igJCFt X-Received: by 2002:a17:902:ab8d:b0:153:2e8:d363 with SMTP id f13-20020a170902ab8d00b0015302e8d363mr12278072plr.93.1647035763609; Fri, 11 Mar 2022 13:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647035763; cv=none; d=google.com; s=arc-20160816; b=amTaH+b9lE9oSGPbyzmsskoqxMDkhXbIo1IezMrs/Ftr3GWnqpB77wGlEF0yg+Bkaz fpF9sDZRF61xCV5dfam4K2mUy6bf6DokL8aw7dBneHQeJF7MKOgSs+cZ4gW58+SU2CPU xJQV/n9AsjwWyLTPzmAwXk3TReZAxkMPVyv5J0iOYyNGQG1vVTvE/6HQHnXeBBhfB9GO bUpiqf/2r8TMFjDpVy8FD7XmpJ7tW/3Iefkoyf5vkyGZmpg7CzQBQ8HJmh7iIdyJTelH IOUVkhtfe0IuV1iFIPrpOXTO62EH8Z3kWCsi2y+4R9pnaCwBrUqmjsKkXEzUbafp/U6t oJKA== 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=OBRXqLWuyBojQser+FbveA33IOgP8H/VueHlz3pP7BU=; b=UlIuh6fj7dfSW1oecuiDjjGmuEMK/u3K1lESk4qqnTEEW8jScRM7gpwIJXkUIvaE+x ifRT9c59yRs6ZrgqFCRhiYCdSgZs98zFCP0YHa3/V/lsDvS+xpaAZRJXZVXFuwMzsxzv uFZyQ5z98Ymslla+oe+tSjzszCF6n3Sn9vg8qS3ZBMYbCsiZQy70bCsOKnfTHNF1vch2 PqMIPi47fZeLL5fwLYU2y7mlkz2TeTUtj+CbrtIlq8af/lM2FUtaww2ZxaAQTXoxqsKA mxuye4PD88LlzaM+nA094jIIqCjvtdHW8q++2GdtzsbWdvQMYQvdD+ndvF2cc2kQHjRk 6Yvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Dyxrf9L3; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e18-20020a170902ed9200b0015183f9d3c1si9770651plj.334.2022.03.11.13.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:56:03 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Dyxrf9L3; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C22231F1D30; Fri, 11 Mar 2022 13:14:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346434AbiCKEtl (ORCPT + 99 others); Thu, 10 Mar 2022 23:49:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346357AbiCKEtW (ORCPT ); Thu, 10 Mar 2022 23:49:22 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC57B0EBF for ; Thu, 10 Mar 2022 20:48:20 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id r2so296857ilh.0 for ; Thu, 10 Mar 2022 20:48:20 -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=OBRXqLWuyBojQser+FbveA33IOgP8H/VueHlz3pP7BU=; b=Dyxrf9L35Hr+o6Rm/FEKjC+JQ97HPxYkwKzea8dMbY2oborFn0jItr+z4C7tIGKC97 8CTghaUFfyVolu/8SQcbgXHPRbOQmxXT2ukp7wit0PME42zZ0LDpu5Y6PvMe6BtiPWp2 3cEDeZCu8FaaXKll6oe67z4fOGMc7dx1mDtWbpssZseAEqblBKdkJfMuaQ6AyVYbdjcL +ZVZHqKsDL4/ypd8F/RCAVTmLiZ8m493W9XdltdXs4JDb6MH+YOg5OjHhSaZK9kQahIm bIvpqdAjCHCEwQfHGz4fLPTwo0UfpgOUXu6y0+tbuz5pW4PXETXeTy7a/bk0DayQSzFo 7Efg== 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=OBRXqLWuyBojQser+FbveA33IOgP8H/VueHlz3pP7BU=; b=fGR1Z7cEMtjkzeKk/uoPtRfDoTvq5KNyQGwbrQWG/yBHG/tfhqJOPdgWbfZaig82E6 ZC3bUpl6WdD/Y9xk1ChV1w4+CAMwati/fwQOTj8jF8/DAynyqQjPN1MySDoUxasMuKAe ynFiN8y5NM8R1iaROyxwcCsSPg4TiMlChjxyo4gkyPBKLWNBElCYX69ZVx4a204j5gH6 PPcImALWAdMcNazaLh67sUzPPY1Tf7ZovlExR3jFAfAesLJE0CEaAUKYF0t/m73pnXZW gag5Qx4Fn8BzfssU9zD5/diKvhRv+mInCrnvck86T/9ZnPlG7/GFbws7JtNAoWxrqFpS Fn5Q== X-Gm-Message-State: AOAM5305mf4ED00CmbrI8rrP3/rQJj75bQNN3FZj0SfE6fS9aqcl3uV+ CAehfN6O8+YR0uiXdHst1jI= X-Received: by 2002:a05:6e02:11a4:b0:2c6:40dc:d30 with SMTP id 4-20020a056e0211a400b002c640dc0d30mr6420886ilj.283.1646974099505; Thu, 10 Mar 2022 20:48:19 -0800 (PST) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:2010::f10e]) by smtp.googlemail.com with ESMTPSA id q9-20020a5edb09000000b00645c7a00cbbsm3529834iop.20.2022.03.10.20.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 20:48:19 -0800 (PST) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, linux@rasmusvillemoes.dk, joe@perches.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Jim Cromie Subject: [PATCH 5/5] dyndbg: show both old and new in change-info Date: Thu, 10 Mar 2022 21:47:56 -0700 Message-Id: <20220311044756.425777-6-jim.cromie@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220311044756.425777-1-jim.cromie@gmail.com> References: <20220311044756.425777-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 print old -> new flag values in the info("change") message. 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 b15a9c715e5b..cceac8ebbacd 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