Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp665440pxb; Wed, 27 Oct 2021 09:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/Dz0t+lp2GNft/2jOxzj41joZsvd+WcRzWwPNghYSfaBkXHrrGGk4eIr2gRq430B9KfD0 X-Received: by 2002:a50:da0a:: with SMTP id z10mr45936224edj.95.1635353959903; Wed, 27 Oct 2021 09:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635353959; cv=none; d=google.com; s=arc-20160816; b=ZvKfePD/+RbZnNKo7j3GjFqOILu3noajudV5Z/wNEwkFeJUswO/pvDKuZElA+M+A+A xan0GXD7VBXOJ4MgCC4m+vuV56qdAmVGlnPpA5KgjrD+PG4UYnqnQjTLSugOqYNe56Cn if7dsTq8O5NulRETOe35hs/2vl06Oc61Z8kvU7lig59G3bu70DzEEg/H8q6dpw1ofZuu f5xZOhh2bgDomc6OqhoVfGKqvQoIRHEvoEhRxNyX8+oYUNp4m0P+GCXeHj59c7qVLNNK /DvY9sHcxTgdL/JVXkPPghO1H4DpjY/GzNB7HUTazs0RCoqJbixoe1n55+ak6X3W+wBf K7wg== 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=JnEv+1wiw5YTf5b+dk8jhOAFVorOFGekz7eDajaLDB4=; b=aHI6a+Pccf7JazkAxlxDaqlhBEmk63s8s4BoQI9VModiFkv39t2eUUf3nzTDuQQ6Xx gr7kk2Szoto7FQTbVZzdOeIFeqPtz6YASoFz8JvRsJoCgxJQLi0AUYwxeDMAr0y1kbih S3vrKCNmF2uUHybydZ6X3C9zXZ9WagJ0iEM6K2yolfskv+SVBaBPMn5DRt91oJEtpFoP HF67APJDB07TPt/6qT+73eiMJ+9NiUydlojcTov2tBhcc3YssvgNDAuKiprtWXa9Gicr Rc08q8YBTB1AwcTwkEUo9Dlzf3OmP2F8Hzm2Z8BbmhaOdRL7alWtKxQYrafjMzq4AlDc U3fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ljxP0s62; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs5si650500ejc.359.2021.10.27.09.58.54; Wed, 27 Oct 2021 09:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ljxP0s62; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237950AbhJ0Ejv (ORCPT + 99 others); Wed, 27 Oct 2021 00:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236534AbhJ0Ejq (ORCPT ); Wed, 27 Oct 2021 00:39:46 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82A05C061767 for ; Tue, 26 Oct 2021 21:37:21 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id h196so2140256iof.2 for ; Tue, 26 Oct 2021 21:37:21 -0700 (PDT) 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=JnEv+1wiw5YTf5b+dk8jhOAFVorOFGekz7eDajaLDB4=; b=ljxP0s62mYkZ5IrRSrhEo5yUUYFJRSHIcDXt91KWM0roaqyofbb7eNcmIfrHhW5LHc uJqa5YVCTkiSFRWMpALVT8ZjoSRu8IxVkWiCURlRJuNXG9nlw57rho7LxLlR1c9cRvM7 TrwvuxWJMUlnUt1Mj7aycPoOgVEPriELhQxie6wRDwR6lHLpkoMsmRyprk4o7T9OK3x2 MzLptxLB3HPX+GphpsQ0Utf4/KZbnh9Er5BFcsTGN+7I/pQckj47e4tiphP6KgSDl8hC Wx2jZmffRXqQ039ughnGRhxre83eN3kmuwX88dcB91gZ211o95Zjjh1/FnueX+4+UQ2N MD9A== 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=JnEv+1wiw5YTf5b+dk8jhOAFVorOFGekz7eDajaLDB4=; b=k71luH/sf0VdLn88CQxT6Qx1AyUzwj+nCQJwXa/+Eq2gddSwWkp2tg3ux9Uahhp/IB BbyFlSfnGutIzttOqYmWy0fTJ6tERSnBdIvMPY/oNIy5B9g3FuylDUixtpV5Ma0CaGOU 363r07kNAOBxG+3YW/oPV+MnQ8/9lccQljA+A9lUobwyK6MjdHs3ES/nFeOApvV1VPw1 qs7ib35FJ+o4v1Mh5BRV9AcJGYkBZ4ifGUQnU9ONVnQv/J/WZ1iufNfOXLs3tehG4NjZ TVv3IFlMiBuHnxV74enq0Vk8l8qnH7z6GI65bxffPE83Kt2rO6Jtqh7AI2xmRnFplZHO KvQA== X-Gm-Message-State: AOAM531VUs44Gn6eE55RPsT/2hDEg7yqUZLlbm2uU98tQ2/tUq3nZelA ayIZx6nmrapQRID15grCx7Y= X-Received: by 2002:a05:6638:459:: with SMTP id r25mr11720480jap.2.1635309440927; Tue, 26 Oct 2021 21:37:20 -0700 (PDT) Received: from samwise.. (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id a15sm2030404ilj.81.2021.10.26.21.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 21:37:20 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux@rasmusvillemoes.dk, daniel.vetter@ffwll.ch, seanpaul@chromium.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Jim Cromie Subject: [PATCH v9 04/10] i915/gvt: trim spaces from pr_debug "gvt: core:" prefixes Date: Tue, 26 Oct 2021 22:36:39 -0600 Message-Id: <20211027043645.153133-5-jim.cromie@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211027043645.153133-1-jim.cromie@gmail.com> References: <20211027043645.153133-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Taking embedded spaces out of existing prefixes makes them better class-prefixes; simplifying the extra quoting needed otherwise: $> echo format "^gvt: core:" +p >control Dropping the internal spaces means any trailing space in a query will more clearly terminate the prefix being searched for. Consider a generic drm-debug example: # turn off ATOMIC reports echo format "^drm:atomic: " -p > control # turn off all ATOMIC:* reports, including any sub-categories echo format "^drm:atomic:" -p > control # turn on ATOMIC:FAIL: reports echo format "^drm:atomic:fail: " +p > control Removing embedded spaces in the class-prefixes simplifies the corresponding match-prefix. This means that "quoted" match-prefixes are only needed when the trailing space is desired, in order to exclude explicitly sub-categorized pr-debugs; in this example, "drm:atomic:fail:". Signed-off-by: Jim Cromie --- v8: . fix patchwork CI warning --- drivers/gpu/drm/i915/gvt/debug.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/debug.h b/drivers/gpu/drm/i915/gvt/debug.h index c6027125c1ec..bbecc279e077 100644 --- a/drivers/gpu/drm/i915/gvt/debug.h +++ b/drivers/gpu/drm/i915/gvt/debug.h @@ -36,30 +36,30 @@ do { \ } while (0) #define gvt_dbg_core(fmt, args...) \ - pr_debug("gvt: core: "fmt, ##args) + pr_debug("gvt:core: " fmt, ##args) #define gvt_dbg_irq(fmt, args...) \ - pr_debug("gvt: irq: "fmt, ##args) + pr_debug("gvt:irq: " fmt, ##args) #define gvt_dbg_mm(fmt, args...) \ - pr_debug("gvt: mm: "fmt, ##args) + pr_debug("gvt:mm: " fmt, ##args) #define gvt_dbg_mmio(fmt, args...) \ - pr_debug("gvt: mmio: "fmt, ##args) + pr_debug("gvt:mmio: " fmt, ##args) #define gvt_dbg_dpy(fmt, args...) \ - pr_debug("gvt: dpy: "fmt, ##args) + pr_debug("gvt:dpy: " fmt, ##args) #define gvt_dbg_el(fmt, args...) \ - pr_debug("gvt: el: "fmt, ##args) + pr_debug("gvt:el: " fmt, ##args) #define gvt_dbg_sched(fmt, args...) \ - pr_debug("gvt: sched: "fmt, ##args) + pr_debug("gvt:sched: " fmt, ##args) #define gvt_dbg_render(fmt, args...) \ - pr_debug("gvt: render: "fmt, ##args) + pr_debug("gvt:render: " fmt, ##args) #define gvt_dbg_cmd(fmt, args...) \ - pr_debug("gvt: cmd: "fmt, ##args) + pr_debug("gvt:cmd: " fmt, ##args) #endif -- 2.31.1