Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1257828rdg; Fri, 13 Oct 2023 15:52:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFt1G547UdV3OupDH95SGutyTYkj7dfbriYB5JPEOX8RkUWf0MsvfmgPf33YE4D1eHQMY6w X-Received: by 2002:a05:6a20:a11f:b0:15d:d250:d240 with SMTP id q31-20020a056a20a11f00b0015dd250d240mr30267395pzk.50.1697237540478; Fri, 13 Oct 2023 15:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697237540; cv=none; d=google.com; s=arc-20160816; b=k4kX3DTSrOSQTgIm7ax1m7nspyaiymf4pBpJn9lPlGtjSAWEwoCI7WGJu8AgNoHvUT hvYEuSGcQnGqE+IqQ6h7onf92/BXEadpCK8xWPF9yqV+UQN/T4putR44NYEmXlUtZwgw UwirKl+3RkV/5nqQ7afMTbWNmPf2uHg8nLfGGsrIV/2YjW/ie44j+092usouaR6nl6JD 3w6Xovp7UMaMH1Tau79T99KmSEZeCCc0MiqBBuA1d9SvFqtEivN8iPO+H9cISo714ddW gPdAt//9+EYziptLDAVUqsCV2SUpO3kVPhdyESmD4f7UozJw2NxvZcfWPllo36kWUmp6 ySBA== 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=wnBLKUk9O3xETUCsilAg0vyOCJCY1VGcTM3FhTYpKWY=; fh=z8A2UgI9Ozi/zM+meU3S7fSTeKB52ixSkA1q1cGr6xs=; b=avTPttf0KnAwT1ooZx+YBKpzXFojdHkQ5JpRiKlNifo8jRf2BJdXVZ8T0/fE0fNkIQ lKZLHl6x7/5ZvJ4V3g7OdQfjH5VZMlM5bA2vr0Ug9tqYtuqvVDbAKY6kaxH4ikWieeYE KW8ocOkxIwYdUjgrVw1n8zgA4FwCBhtcP0RTyJCjN3D65NPleAkk54DahlCJjLRzytNW 8Mw6D536Mv6piIfyLVbEOiT8Ut+L/WXBqT8kfCEy6AlU2bPZ8NJnCJ78LshBT4UXQngR ez0+sFhD4oT6vhUWRDhQ701Wk9vr0vLpDPn+oP0v581jVmPTFEgy8JEOlT0F0v+W7haL VsJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YlOmx/Io"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id f38-20020a635566000000b005a0193c9328si5224549pgm.839.2023.10.13.15.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:52:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YlOmx/Io"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9F7F2806BE30; Fri, 13 Oct 2023 15:51:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232636AbjJMWt6 (ORCPT + 99 others); Fri, 13 Oct 2023 18:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbjJMWtb (ORCPT ); Fri, 13 Oct 2023 18:49:31 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C75C8E1; Fri, 13 Oct 2023 15:48:55 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-351208d0d6cso9742015ab.1; Fri, 13 Oct 2023 15:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697237333; x=1697842133; 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=wnBLKUk9O3xETUCsilAg0vyOCJCY1VGcTM3FhTYpKWY=; b=YlOmx/IozpyFmqd1RSFX3kEdAGMlliZDwHs856e1l0lNFNz27tDfgNhNlcQghn9StU BI5/6ian6YEDn1VF6OvrYvGFjP0rpyhC4IeYTskgIpUA0nixDR5ha5m37FHLZmnbqixo orfPyBv3gUwPfpI9aUrrPbMbGKveQ7CT5LvWLm5pBL03pvdkOBfRhLPIB2gn+xAvxiFe uMHL9ehBiizQKkNV+6FqWuxky2xn579KD/+1vuSaMxqtLYMWq/jncNDKoXfW5X+Z7dq+ gjFZsnze5NrpXv82N6c0OWgwSkSa3DnU/rzPDj7qr9FTdKZAglFdjuhc+iZ+FeLbcbG0 itxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697237333; x=1697842133; 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=wnBLKUk9O3xETUCsilAg0vyOCJCY1VGcTM3FhTYpKWY=; b=NuhyTnuU1nq5Q06fPv9b4l7JocnSzqq7hy+qTbCZKDqdTiOZNxegMrz9jtQftQA1XF GjE7SkeBZVnDmyLQ6P9J2ySJpaRrjQKQgBjB9N7tMJn0fnRz6Z77+cPg+R8VulK2AunJ f8j0jUfuYDfJLi4yM5yekswzxvnxflTy+r/9KRRbAen7aDSVNV65m1HE6/Scff8JQdWp punNyu6VaiyagEYNZlbjhi4BTuvmMapjVr+jnBIicfimETULC95VfI+QKWkEMxTSpA6P 0iTK/PecrF1zH6KJbEGSnM8EEyDC4+4aY60Q6KhZxpiOT9kaHs/ccM/Zc1cevOLrzAeo R6VA== X-Gm-Message-State: AOJu0Ywqiwoti1GRaYJWGDOmX4FzOQxG+Dt7XtTb628qUCvZN7igihE/ u71jRxECMEz8A2lkwwab4p+BtAUGJfadkw== X-Received: by 2002:a92:da83:0:b0:357:6e14:835f with SMTP id u3-20020a92da83000000b003576e14835fmr1403410iln.15.1697237333447; Fri, 13 Oct 2023 15:48:53 -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 t10-20020a92dc0a000000b003512c3e8809sm1683071iln.71.2023.10.13.15.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:48:52 -0700 (PDT) From: Jim Cromie To: linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: lb@semihalf.com, linux@rasmusvillemoes.dk, joe@perches.com, mcgrof@kernel.org, daniel.vetter@ffwll.ch, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, linux-doc@vger.kernel.org, Jim Cromie Subject: [PATCH v7b 19/25] dyndbg: reserve flag bit _DPRINTK_FLAGS_PREFIX_CACHED Date: Fri, 13 Oct 2023 16:48:11 -0600 Message-ID: <20231013224818.3456409-20-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231013224818.3456409-1-jim.cromie@gmail.com> References: <20231013224818.3456409-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 13 Oct 2023 15:51:30 -0700 (PDT) Reserve bit 7 to remember that a pr-debug callsite is/was: - enabled, with +p - wants a dynamic-prefix, with one+ of module:function:sourcfile - was previously called - was thus saved in the cache. NOT YET. Its unclear whether any cache fetch would be faster than 2-3 field fetches, but theres another factor; the 3 columns in the __dyndbg section are highly redundant and compressible, but to get the compression, we need field accessors, which will rebalance the tradeoff. So, for now, its just the bit reservation. Signed-off-by: Jim Cromie --- include/linux/dynamic_debug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index f182f95caabb..927cb14f24e0 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -38,6 +38,7 @@ struct _ddebug { #define _DPRINTK_FLAGS_INCL_LINENO (1<<3) #define _DPRINTK_FLAGS_INCL_TID (1<<4) #define _DPRINTK_FLAGS_INCL_SOURCENAME (1<<5) +#define _DPRINTK_FLAGS_PREFIX_CACHED (1<<7) #define _DPRINTK_FLAGS_INCL_ANY \ (_DPRINTK_FLAGS_INCL_MODNAME | _DPRINTK_FLAGS_INCL_FUNCNAME |\ -- 2.41.0