From patchwork Wed Nov 1 00:26:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Cromie X-Patchwork-Id: 13442441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBA66C4332F for ; Wed, 1 Nov 2023 00:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jjcnqWhI5zm2OlBM1UAWnLzoIiesxDCnSi6604KHw24=; b=K86Gjr4TRZGoBy fy7w5q7IHLUULWDB2x66jze+nx2Bc1xFAOfBEppE93MGCtgtY94yKxoPIhaZlpM75jGhRe/nr9N76 zk8n4IQaSPZV/e+pHIMYD36WwofStHLVXJE4oxBGXcOvoccXmrqaVhtjQCCaGkfsUiWTQbt8rOktm 3Cx04UgtE+OtR5lMdWNrWlKDGhuy/KCYb4yyElMNiqHY7a0hByCKbNf+0j9UKE5e6Ek5CA7cG9+Bt 4B40P8MOZXKa6YmseyIEk1MxhkKZpezfEVdpS99k2BeCsOW7pVKSt7VuvcinoynPRQHWnJ9QICx4k SZ7N6kn5l+nvSbzEue3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxz4r-006PJL-2B; Wed, 01 Nov 2023 00:27:21 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxz4F-006Ob1-1q for linux-arm-kernel@lists.infradead.org; Wed, 01 Nov 2023 00:26:47 +0000 Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7a66aa8ebb7so230405439f.3 for ; Tue, 31 Oct 2023 17:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698798403; x=1699403203; darn=lists.infradead.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=4XXimEcMUHLKcy89kdpmOcYiRa3Yj2O0YL1kh5UVcGE=; b=FRIbf0eOMQDa+I0Bunk2BuK4/pz8auPigcGvvRRBgy/RzbYIBKNh66tAQ6UmA3SEms 7XXyInX5vYLaZhndZiTl1+2mecMYiU4VSwQnW6TaswlrqY2YJC/lT4Lq0j/2RFrXm7LW /j/ocNFSlSpvz5yQ5wJ0NTuwAqhBV7hqckZm/4xWhTgjsEX7Rj9ED9v3RZSif5LmJubP Qi5dgnXl5c3YSMDVhOEHaTrEvtkW/xt8ejc5AMpyFUttDBP2CSGurpIxNwas8zkS+OBe DKJ8tizqfpRIAKXpMEih+YKimfIm+P2xzSAdx3IET1rTiIPvkLmC3CzPoWCM/kP8CyXz BC0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698798403; x=1699403203; 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=4XXimEcMUHLKcy89kdpmOcYiRa3Yj2O0YL1kh5UVcGE=; b=vbPgSd8HQLtWF76l2CkleJVqe+TsHhVlhAGuWQT5+NNHjJkHu99PsSHAate39avJN3 rD8dE/J7UjD2ejt3s8IRw2HUxmFc13FKlsaIJDiWFmLkN5hodzxJ7rusOlDZla2uUaqF zalxlW105+m5dVWnr4YjOh7PhEcoG3WwFnuMy84dBFfvNBm6bTuy/Rc2YFdqhu4Bk3yP zDK4mrLT1n8l+PTUF2dDqv787itk7+2iMULou47chLzNroIqSYCHO4j9KGW2WIoo8I75 wrH2bUCOWQZ7BPR2bS5lGWJhaXCt3P1DntLxfi72fGoBK7tdMxUjz6BoeYtXxyTz6jdt d8xA== X-Gm-Message-State: AOJu0YxHJb7EX3/43hvVEQa4z5ohGD8t13Bp//KRGyYuamGGHIe9SXH3 q67/JSWlECUuqCX2Y9gts1s= X-Google-Smtp-Source: AGHT+IEuxw5w71K77jdcQFb+x0zSRbj1XYX7dWzhjRL84L4L9BuVeF7Xwp09HkHULcT6OFMfMKAQzw== X-Received: by 2002:a92:c24f:0:b0:350:f352:4853 with SMTP id k15-20020a92c24f000000b00350f3524853mr17133011ilo.25.1698798402979; Tue, 31 Oct 2023 17:26:42 -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 t1-20020a92c901000000b00357cc8df1d5sm141701ilp.68.2023.10.31.17.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 17:26:42 -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, quic_saipraka@quicinc.com, will@kernel.org, catalin.marinas@arm.com, quic_psodagud@quicinc.com, maz@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, mingo@redhat.com, jim.cromie@gmail.com Subject: [PATCH v7d 18/23] dyndbg: reserve flag bit _DPRINTK_FLAGS_PREFIX_CACHED Date: Tue, 31 Oct 2023 18:26:04 -0600 Message-ID: <20231101002609.3533731-19-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231101002609.3533731-1-jim.cromie@gmail.com> References: <20231101002609.3533731-1-jim.cromie@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231031_172643_644833_8272BEC6 X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 2a7832b1ba5b..4ffddf5e9152 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 |\