Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp680272rdb; Thu, 30 Nov 2023 15:42:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhYPFC/VBiPsQHEwAv0gv7uBQjw4mqIlZXQaP7i03VjiE5P15lB7nuSFNkm8ff3sxR6Dsh X-Received: by 2002:a17:902:ce84:b0:1cf:b7ea:fea with SMTP id f4-20020a170902ce8400b001cfb7ea0feamr23533234plg.1.1701387721938; Thu, 30 Nov 2023 15:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701387721; cv=none; d=google.com; s=arc-20160816; b=sHmMv/Ua7OkGXs/g2X6svNuoozi4+vQTwMfUyL9L2ZtkcDGVj1g2Y4RtirUfc3OZc+ IyHSJwJp+zngdgOnuAaq4NdZft1Hl3m5qdq8FGakNu33807+TemzSSQre2UCf/RXQGin lT30lz0qLAZdVgssFh37sJKoUovUa0M/nZy5C4T1EX3FiYXqLQK5eieIEJOurQWUV50u SZInhwjkxoxLMZVRVbTIdpJ0qYIprvJwPcOw/gQDIgzxpZmwIc8DdRaypImvonzVAi0c 81qNHxG4YDaXEWKEmVl9qKQcwDjsZjJN6uPxTqfKNC9Zc2h1rI1ilDUxOaCmEL7Dc/4+ 4CuQ== 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=RYdbYF0m94fsC3GTgjOmD6mjqqKWFRCLzjA+YcCvaKs=; fh=Xr9EZaLbYspLudo3lCz3I6iQD6BKril0MIzT5DobTXc=; b=Hg0NN21rb3vB718zPU3JqZR4fblb4XFovWebxontBVbdzFGR8LJBKqof0Tc14vaXT6 jSh8KuBKhpcFo5GAxaZAjI40hsQV4l5ndAxuuHvJtSffp7k1FnJjS4m8SmZAjXJP5vJO jSVpSPSZ4mN2e88NxAjpFNUmXqAcyDtn2cGImH87xL1aCUnaCS6FY+FkzxeOGKdyKlJm rc86h5hwzshVof0WGikz1UoUi+VCXGBhMFBFk1wf00JMLxekoq65h9H8lR+6IJQEsRRk moR+g2uc5R9idGTy/KZ8hgfzjag/EBftWP+nNY4L3X7pXK3421x/BB052hfilr0M238O XvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=cZF7xIF9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d12-20020a170903230c00b001d0087eee04si2214064plh.427.2023.11.30.15.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:42:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=cZF7xIF9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E9A980F6D06; Thu, 30 Nov 2023 15:41:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377366AbjK3XlR (ORCPT + 99 others); Thu, 30 Nov 2023 18:41:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377355AbjK3XlN (ORCPT ); Thu, 30 Nov 2023 18:41:13 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B9B10DC for ; Thu, 30 Nov 2023 15:41:19 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9fa2714e828so214621766b.1 for ; Thu, 30 Nov 2023 15:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1701387678; x=1701992478; 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=RYdbYF0m94fsC3GTgjOmD6mjqqKWFRCLzjA+YcCvaKs=; b=cZF7xIF9GljMKbHz/rGeGQE4VJNRC3iGVNmzxYaJZlrvuaPzCdhYyykqok8RB+/UN0 KlG64NrKA/cWyDSWhCxb8Qayu4afLNLEfcGx2uX4mNzc9y/W5BXM/ti2ciXLTYVkHAdF MPzo83M8Ls/yX8W7JeGPzbXIFjIcGpF7gMPNOHf2CtfBZOFkNu68i2XUCzYwv7s8Aj/G gW2imEd2nbgf7bpXUBHaGF6i0ssoVpbTQKLod24JresUWiM0cxJm3h2zsVRwa/YcqRU7 4+LkQYRWpg1734tGVqgrMUQTJP4dekbDfTZ4G7noYtIe5xUEx1Tqjn83tLOUR9Dh3QOs hXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701387678; x=1701992478; 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=RYdbYF0m94fsC3GTgjOmD6mjqqKWFRCLzjA+YcCvaKs=; b=MHjZJ4brmZz2XbbFFxS9peuohqOQBmLaiQ24KU5oCZIjL3O3+oW2IfcJRYkU2RIzU+ JcIbiYMMb0mqECOag+5jv4QKMAaBxNAHo3h4uKD1PlSQUx/Zpz8h5LgnWi2GCkk6G2f5 MBc2qMGkbIccT0eS0TD4IhyFlpA4bHmzLy6hXAOUba6p8kdvAqFS7FGulidZCmmAL0lJ PnDF61GT4JajaZowu279IekdHeJ4n09kTXDDwVKjYI18YERT68nob40LMHx+EHL4S23f 364nqC9UBu/T/TztJkGUHipL/Qo9OEu2Q4Lwp/WTFtkVvtQQCcrJV/g1gR9g6o6xBd4A 4DSg== X-Gm-Message-State: AOJu0Yycq1ebITC1timhLJi8aQl6ldAqaltPAemyTevib6LHXpHEmpMJ eg1IDHUwR6kNFi2k/UXYh1U4 X-Received: by 2002:a17:907:9009:b0:a19:a19b:55e4 with SMTP id ay9-20020a170907900900b00a19a19b55e4mr199024ejc.116.1701387678210; Thu, 30 Nov 2023 15:41:18 -0800 (PST) Received: from ukaszb-l.semihalf.net (public-gprs368940.centertel.pl. [37.47.72.109]) by smtp.gmail.com with ESMTPSA id 9-20020a170906100900b009ddaf5ebb6fsm1210175ejm.177.2023.11.30.15.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:41:17 -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 , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v2 02/15] dyndbg: add _DPRINTK_FLAGS_TRACE Date: Fri, 1 Dec 2023 00:40:35 +0100 Message-ID: <20231130234048.157509-3-lb@semihalf.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231130234048.157509-1-lb@semihalf.com> References: <20231130234048.157509-1-lb@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 15:41:47 -0800 (PST) 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.rc2.451.g8631bc7472-goog