Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1161587rdb; Fri, 22 Dec 2023 17:52:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvZQ6pGthBCVi1odhTpqb7GO+QQOF5jRZ9jvCvE4DRb/VTHJcufT9MAn1cJ3O3sQhj1SHz X-Received: by 2002:a05:622a:1985:b0:425:4043:1d8c with SMTP id u5-20020a05622a198500b0042540431d8cmr109615qtc.95.1703296345415; Fri, 22 Dec 2023 17:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703296345; cv=none; d=google.com; s=arc-20160816; b=UWEcEhSfdp9LHzPozwsTms075fKGvBxfZclIwExXWNcC4SAhby2FRrinVB/LGCGzoH WG0jiKDO9ilPhJSnez1KUBaWvOZSl4E9+RnxG+LpKiJD/ka/hbGv9d2EhJKmkri4w6gA 4rshtNOkjkZipw3lIaczA0TSdeh00KJIcMpsb9o/nGwlkG0DqREwfxfJN8dloNSY3KcQ pmQ3LfwvXY1elV9WjBURzCH9dS6LZ7u7PThYmZUkdIEChyPAaxUn3RGpyK3IfKKtHpXh MUvoaP+tikzsx386rm7pB8DsbqlTo7GGUJXLSwhZCBiXo8ua2MUXVFT/NGkVtEPl4Xc5 0FeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fhZRdKG2SUpkpXn5O3JJ5iAzREJVy70U4FekMjB9iT0=; fh=pC62+Xzu9rWxP3EwkFQHy3M37dHcdVo9RRC56IjE3s4=; b=aZSj/Z94BlLkcxX+Sw0PRgaDRM5k6FMYyWRwmk7wqLaWh49Qo5/ioBcquepIvUOZhV QkBlJmf+jBEMa/9H2Kco4GhW9ZNNPSiqOzJzzuFMzXJ/LvrXst61weDUNPmf+rSPznUi Aw3EbUjVmvaVAYCH8FKGOerbbyw7K/Jw7coMByC0kEBIpQBaYti8FJs5pQX2lFj3OB+g AhKpvnb/qPwyfJYwsfgzNp7ciPWTPkAhrX3c03Jiesf7q2uDq2ilEDIMi1u/pc87YLnx plvAh/LLmZGB/Mss22PT6zCQ6uyW9MdkU40q1En6c1qBYevFU+GDW7tJ6JIL8s6kLGKg c5vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b="d/dEiRp/"; spf=pass (google.com: domain of linux-kernel+bounces-10162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g6-20020ac87d06000000b004278a032a5fsi5748011qtb.692.2023.12.22.17.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b="d/dEiRp/"; spf=pass (google.com: domain of linux-kernel+bounces-10162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 20F231C21D45 for ; Sat, 23 Dec 2023 01:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDCA11FB0; Sat, 23 Dec 2023 01:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=semihalf.com header.i=@semihalf.com header.b="d/dEiRp/" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66FB6814 for ; Sat, 23 Dec 2023 01:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=semihalf.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=semihalf.com Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5545ccc6a11so891849a12.2 for ; Fri, 22 Dec 2023 17:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1703296312; x=1703901112; 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=fhZRdKG2SUpkpXn5O3JJ5iAzREJVy70U4FekMjB9iT0=; b=d/dEiRp/zVzViRLiMIKs2gy0IDa0j//de7igGhfkJ7hsbAUlgJni3blzNmx5fDMP/3 Zg3c0jpyhhPEDgSqt1cPrYw4OL9H3r5T37NPILezjaTF81Opf41hWFGW7pzQMDCaL6uc gqogtcRDJSz+Bmj6sSpAA89dwgIVhxtkIDsX9Bk35KLBUOhc8t7u9bQe1otFLUx4pjEQ jwAl1LkN3lz2AEFOubZwiVHrbr7mPvJzmWp4n0OEiKpBzyXXyWeUAeOHyDZWBApTMpRR W0JOQ1QYwxFKRFEfeOkfJUWwxXqbtR9TkyVE7n3zMf9+8vXeWqGuATV2FU+HU5KLO7bs V29g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703296312; x=1703901112; 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=fhZRdKG2SUpkpXn5O3JJ5iAzREJVy70U4FekMjB9iT0=; b=xUz28xTn3xTPb/WFQslEMbPu/jWMVpQYUDsoM/nQ6CqeHUzBQ5WIgR5cI8MT0j4oB8 1vBg7wk0xKHld0f5yqaMszTtYpCbLaNEFzQT26ap3xzBvoSq6gojHygNYCrV+Lck3s8c EZfLzh4IbCyi+3P+HkBMQZE7ydDo/dqrgKlL0hBlNBv0bhk6Yfzjzo0d/rn+jEg/Y4+X xCoojourUfABllCIxM7s9c9mQJYGIaaoorA2Vy2EySRitGnaBobTzemLfYaQmagrnwYu 0tlHuQhKaDWbuLq/QNN3fx4kDqVdzFjrhB+gcul70woZfpmW5tvxzNkSBNBG7YEu3dT+ yNCg== X-Gm-Message-State: AOJu0YyNmcMuRCTGCtKv5MFAbQ3iOA+5xoIQ9048xLI0WoqYfl9XaxV3 U6RlRux0LgVplYw5/9Qxkc2tr6BUYia9 X-Received: by 2002:a50:c182:0:b0:552:5c49:b58 with SMTP id m2-20020a50c182000000b005525c490b58mr1097109edf.50.1703296312821; Fri, 22 Dec 2023 17:51:52 -0800 (PST) Received: from ukaszb-l.semihalf.net (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id h2-20020a0564020e8200b005532a337d51sm3288494eda.44.2023.12.22.17.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:51:52 -0800 (PST) From: =?UTF-8?q?=C5=81ukasz=20Bartosik?= To: Jason Baron , Jim Cromie , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v3 02/22] dyndbg: add _DPRINTK_FLAGS_TRACE Date: Sat, 23 Dec 2023 02:51:11 +0100 Message-ID: <20231223015131.2836090-3-lb@semihalf.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231223015131.2836090-1-lb@semihalf.com> References: <20231223015131.2836090-1-lb@semihalf.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jim Cromie Add new flag, and OR it into _DPRINTK_FLAGS_ENABLED definition CC: vincent.whitchurch@axis.com Signed-off-by: Jim Cromie --- include/linux/dynamic_debug.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index 7be791af7cf1..497130816e9c 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -33,6 +33,9 @@ struct _ddebug { */ #define _DPRINTK_FLAGS_NONE 0 #define _DPRINTK_FLAGS_PRINTK (1 << 0) /* printk() a message using the format */ +#define _DPRINTK_FLAGS_TRACE (1 << 6) +#define _DPRINTK_FLAGS_ENABLED (_DPRINTK_FLAGS_PRINTK | _DPRINTK_FLAGS_TRACE) + #define _DPRINTK_FLAGS_INCL_MODNAME (1<<1) #define _DPRINTK_FLAGS_INCL_FUNCNAME (1<<2) #define _DPRINTK_FLAGS_INCL_LINENO (1<<3) @@ -44,8 +47,6 @@ struct _ddebug { _DPRINTK_FLAGS_INCL_LINENO | _DPRINTK_FLAGS_INCL_TID |\ _DPRINTK_FLAGS_INCL_SOURCENAME) -#define _DPRINTK_FLAGS_ENABLED _DPRINTK_FLAGS_PRINTK - #if defined DEBUG #define _DPRINTK_FLAGS_DEFAULT _DPRINTK_FLAGS_PRINTK #else -- 2.43.0.472.g3155946c3a-goog