From patchwork Sat Feb 10 23:49:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Bartosik?= X-Patchwork-Id: 199326 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1700420dyd; Sat, 10 Feb 2024 15:51:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAvfzf8IVCNjMFbNesoaVuJ5LoH4YzjWJhFD6iEKJTUJ10U+EpphPG9Qic6DVa6YbqKKlgp7uI4KszMK4ucsLmZllzCg== X-Google-Smtp-Source: AGHT+IF7dT2Gm38fFh0HDNz9XEjd+I5aI7iGcAypN4BLuA6Tz5Yg/mSIoZPtudD5qyH516vn7R3M X-Received: by 2002:a05:6808:14c5:b0:3c0:31ab:b945 with SMTP id f5-20020a05680814c500b003c031abb945mr1833805oiw.4.1707609082155; Sat, 10 Feb 2024 15:51:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707609082; cv=pass; d=google.com; s=arc-20160816; b=LWuCOGZD99TjO4xiCHaCSUUwGv26Y9J//MUGmta0SVpD1TrA8fdaLF3PcQBzN81zwf bnEqOQqm60OgI4N0Vn4AYZz4NAhzwvax3Z0zaQjQRpKK3Ijq8Zkdt56a+dU6+ujpBlHB F2rsVJ+/urKIAdg8Tbq2zsTYTqCjFuq/Ia+8tyEjKKjNTWiebRiIA91qXwnzFg9e66yV OLa8a7DciLDODhYN8RBDAU0ttlLA0s5yk9Gx1FX+Fln05IBb4F1aI28s7IlM9iQGwgD3 YkfEEWSQTHyQRSVC2WTW+o3EWVaDEWLjp18G/LgHp46xVhiPzDQhNX1cHG12QSz12oac 7bfg== ARC-Message-Signature: i=2; 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=hiwuT5//sOCIH4TJbmBqDDmgy+L0dj/76G1O/T9yDvA=; fh=5Qx+1MQQbr7INrKANz1kksT+PU/rFGpT9insUoekoPc=; b=hpXaO1/VlA+uOyFhqiCnnCQ2fA1EW0tIejfZX7iIn79RO0dVuODBDfe32v7EY9vU5E ORb5RdFWu7EDbW6ybB1+W7GvedCLmYKjn3vyg1Uj/zBbVKc5QwpnbErVLJDKKva8MDf2 18Ht3USlyhrVmNV7/TNRqp4fWLG0YJGZQfshMVY8OUAlW2BK7jrlvo7rEVpyz8irq+Zn KLC4Wpf/o8GnSotDS9VYGud2LyWsvs45qJZTqKdIXIvYjtKJedvIuSRGxDqjgWAryxVO QNXLW9EfteZAZvzL46DORr98undHnGDpgPmfNz/2B7nPp0RpSxtAebpLuYFksmVS3w40 /zyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=N+15cEnr; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60585-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCURyjZagTkLqm5ITEDpwgDFgKeSt6Ix9BQsOQjKckc1A9pD3Y2FXG9aj8KGkfGyHKBhoqwH4m+Jb1htW4wnZ0wmxK7Gjw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j20-20020a056a00175400b006e086e4c2c9si2682883pfc.22.2024.02.10.15.51.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:51:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=N+15cEnr; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60585-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2F6A7B22B84 for ; Sat, 10 Feb 2024 23:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 881CF604B6; Sat, 10 Feb 2024 23:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="N+15cEnr" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 C3CCA5FF0C for ; Sat, 10 Feb 2024 23:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609036; cv=none; b=R11n0k3igrET7zGAhNBmezplVTFF1HuZB/dGAHZgpxfF2FLHEk36Cqzy4tL5SSpOlQux6y2zYdfDxOhRkg4tV8K51IWm/z9jVXOfoNE4rWPXYYFzZS71lyzndh19Kzi5ptn1eNecUIXFkvMFGYDis5LBVdyxbDInblvXb4q9e/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609036; c=relaxed/simple; bh=cQmyob+SZ2xtIRHDID5i37Q2ZrwCWWtVkuImLDQlG8I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dUvXHbzxsZNzhFxzlGUg0ShckNPjUf6c9MF9fkgKtLLYoxyaojQeJGpOrmL/kRm5Xd7lb8wQND6Uaugr4Xj5TH3X3idsScpNEMMglkIHSpkzS9hLdzYeQPWy4K3olETZ28JQBfiZZSBgVXppu7BOZvXBzZhElVKAVX+duq68g4k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=N+15cEnr; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5116b540163so3090535e87.1 for ; Sat, 10 Feb 2024 15:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707609033; x=1708213833; 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=hiwuT5//sOCIH4TJbmBqDDmgy+L0dj/76G1O/T9yDvA=; b=N+15cEnrjnrGkuG/+gzqPPtnfaYDFcsLqv2DRmf14bpgwzKDbU/KgWDw+JT7kJRM8w nCLqp9l8BMhJuNrPFQZ8SEnyub5I+nqliOriEANIMhv/vYftT8gry+ZI4S4n4M3CisfB wJwPgCi1y/4NomFk6YfqHPov89zstXVcC/bOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707609033; x=1708213833; 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=hiwuT5//sOCIH4TJbmBqDDmgy+L0dj/76G1O/T9yDvA=; b=t0cbvu6f9Th7DLYykTpZD38dFDMWJGaDKcTATwEtKZXDJMu2J+I7I4GP0MKzm/nbB8 pnCwJU+BD4GynlhrykjDKBOW+c3OPu623BSDgHgRb9qNzxVHoAEI7NKKvG95c8MT6MzY tMNNsoh+AYauPPdsD1FetmNHhWY0dwxoGsKs64HTMsmEGnIwKwhEXW+nNvne5N5QOUkz 7Q0k5YKj7PI6OU49B66ZzYM3giwXt1OOEKXEZYQ43gH9gz3MEWhHYYz98so7ufIk71ic 7OzHdBNZ3Knx3b/UqdBlvliHFFG6jo6I6piHHU59L4y/0HIK46+eAnkXskSCarhhZYQX CegQ== X-Forwarded-Encrypted: i=1; AJvYcCWYpWE/VDYDFfenvod1SKX5vc7EKDZD+DwdBkr3hlEj5+EGiiB4UNwGeKZANGvnZBzkBVT/SEy8RfPyBvOFED81bcbYkh0ylZaY6GuB X-Gm-Message-State: AOJu0Yw0V4982hqjIxgUyzE7HTbY1Dr3gJn2DFBLSGt+Sjt/p/8FrbAV O74696UDIQswrDLsb4C7l/58TPhVPwYnheyELMf8OWtVW0Kr8nnAZ2/1ZBuy X-Received: by 2002:a19:7412:0:b0:511:4baa:fda8 with SMTP id v18-20020a197412000000b005114baafda8mr1726910lfe.38.1707609032587; Sat, 10 Feb 2024 15:50:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVutNH7wXArtZPi16MtiRS1ZNDSArgZzaxKHiPK6BMvhOO/SUfoVl9yVPeMxchKHlhQVAOPkiT6h0Xwa7V76mi+ZxC/Lf558xBN0UhCJ/1jEy7uhVNblQFYQslaNsH1LT02l4WEDjUKdSP31a+2bPAB7sGzl2FBnyaRAkGZ1Aipc6xssHYAtMCFr7VCXmXCw7ST25ukym5FoEZfuQH1+GbcKpT619MEaWUN7o0GaHHnRVSDuguc/dmRIzYyGJ0NAXhuoMWTr5iV71XdmMk3dxu0C4cXwVv9PteLj4et9ldixULw7Ow7gZPYEdpZoms/71+I+nschx45i8dvlxBbAyATdJdosk0ObRHZK24LI/LM/60fsIL1TbiQd6C1Ac2m5VxdkmXNIiMCYAG6jXeTzWrsVnFTBWNOeIUdUr5TUz+oBokl5Ql6zi3epSu77XA1IGE9gieNxcvB4lQ79PqSDFsjy17YFXk3wdA5vy9S+ZUzpNVxeXbBI6EQLX9uQaJO/nJw7LNBW/hNEio8TB/sD/zUJw5t8xy7Iv2/BCx6Mrir+qq/PrW2POJM1YGx4kGUp8JAV8wx5bRCR0us+XbUPzTg+vdTpEBgK73wY2GBvJ9SOMCh0g== Received: from ukaszb-l.roam.corp.google.com (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id o27-20020a056512051b00b0051179ae1846sm365561lfb.280.2024.02.10.15.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:50:32 -0800 (PST) From: =?utf-8?q?=C5=81ukasz_Bartosik?= To: Jason Baron , Jim Cromie , Greg Kroah-Hartman , 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 v4 02/39] dyndbg: add _DPRINTK_FLAGS_TRACE Date: Sun, 11 Feb 2024 00:49:32 +0100 Message-ID: <20240210235009.2405808-3-ukaszb@chromium.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240210235009.2405808-1-ukaszb@chromium.org> References: <20240210235009.2405808-1-ukaszb@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790557901122021939 X-GMAIL-MSGID: 1790557901122021939 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