Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp466024rdf; Fri, 3 Nov 2023 06:10:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdHsZ7i4w+wIs6Ckt2+F1brGLavt0gk+sC4hZuqx70IxfbW7yQMnQMJJIAQMxH5cfHIoSh X-Received: by 2002:a05:6a21:7983:b0:181:5f5:11a4 with SMTP id bh3-20020a056a21798300b0018105f511a4mr10948339pzc.36.1699017036994; Fri, 03 Nov 2023 06:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699017036; cv=none; d=google.com; s=arc-20160816; b=Yj87HqRJCZQLmyyd3yjs4azN/Cyf+liDkWhKrbns9QxEhYalUj2ITiRboW5gMDdxWs lqaNs68Jl1ZhwgGV15Ur4/H2R0CxGIC5pn7Ekprj1+ypje570aPU1m0CkqKB/IXYj9wU wyW5qybJubaSZ6ao0csWjMrycd+1+F+u3qGG1Hg7JnP95ouoOX3l1YkxJhgxxiikuIsC cjceMqCKIXn2A1o/cul+SYURMXFOc5zvvuqnjzRtbW2B7J2omItp1UOt64bg9/uH+COC ElYJSu0hDVy6+FPLPsMod/sYzd1FiET4KcOFg457zSuPjOPzZ0NdkbvTJwQUygIXbFMU mRvA== 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=uhWtxM0qS6kRyTFS+yHc5Oehyo7Hed75UZyn2RY1SHs=; fh=Xr9EZaLbYspLudo3lCz3I6iQD6BKril0MIzT5DobTXc=; b=uMl3VtfBJymN+m/7cEIogsFY+Z5cM+TOJlvhrsb9qA/e8eLQlQYruHz59Rdi/5Zldz uiMN1ZpXRCZxh1Oo5TdyNc7NuYCXsOgpLyO8jqBy2UpLEIXRDlRI3JoEAwE0HE/sWM12 mgm43mkULcEhaiRY2t6M1vTN1nYgq8rfzVFSiO7gc8EiuWyGTrzK+EMzdHaLZ5ddqcjz hLgLhE3T963KRck9UUVZLFDa0CfHoQKi1ym83+JsnvPUE/DvRlG9p5x9gzOC4d5XWkOj rbbHbhQZBkp2NmqtSCWv4ANpgCIcQ0Vd73bvAEaZvvsEPt+tmqwW7aL4WhhUWk/0Lssv ZJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CzmZz9a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u130-20020a637988000000b0059cdf90b9b2si1421193pgc.685.2023.11.03.06.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:10:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CzmZz9a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AFB0580A919D; Fri, 3 Nov 2023 06:10:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346524AbjKCNKc (ORCPT + 99 others); Fri, 3 Nov 2023 09:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376706AbjKCNK1 (ORCPT ); Fri, 3 Nov 2023 09:10:27 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2443C1A8 for ; Fri, 3 Nov 2023 06:10:19 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507be298d2aso2552420e87.1 for ; Fri, 03 Nov 2023 06:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1699017017; x=1699621817; 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=uhWtxM0qS6kRyTFS+yHc5Oehyo7Hed75UZyn2RY1SHs=; b=CzmZz9a238rOXfNbgg2ABmsVemX8oNTwFrVYX+ARpKYJeob2f5vXQZ2w/0X/hganWQ tugNcztMK0f6fkwMQUjAojB/LbAYBftge7yJYeaf3kEhGIwGfg0hSOn72roT6MeK3JUa 6QSrYiFJ6VF+PiTL9DhHHOhldOiPXGzFfgowMp2Agkoy6vX0FCj3gZpOeOe7WgAXE9CY JV1+h7SivlaFiHvZmQJIyZNo2r/LB2RLMm2oYdr/yzccu7C0U54x22c+WI7nDhq73k0I f0rO9WDNoymLq2V43coY9gG0cBbwbeX9z/+GL7oE1bdjX6c9xfN3TDxWCtTZMLV7qPxJ dncw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699017017; x=1699621817; 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=uhWtxM0qS6kRyTFS+yHc5Oehyo7Hed75UZyn2RY1SHs=; b=kQ3KlVYUB02cakuk5fGxZBFwRUXkmXr+vZwvRisxT5OX4+gQZDh6lMbv24ZWYnHWI5 jIQCOSFMNqFcIeCPeYFroVnMx85TpwECwKT2jg/ikBwxIUA7lT4/M5YpC8QWMiBtq4zK vSuAd2wJjcFUdzL0YPT0nt20bY8fLFz/AEwr2E5GQOU9LfJ4WlNj40EoAovS/PPAJip4 0/cnIKDzN1XjlEhiDvrjo/74ZaTFpXDpxoYliJKbt68arJU62WaX0dkQfUIEvqdLgews ZQkhHy9dImxGLeAH+VZ+z3VXtq6MePxkL0CSSPbLTn0y8LKwQhfY8ggm3GaZTx8l3rjA 865Q== X-Gm-Message-State: AOJu0Yxt6tQgrYnEQ/o7lEDoi1tbke3knT47j+pvLmKo08yoZccNhw2b th6EdpAiH/MJkZHOdBuKI5wxprPX79Qy20M+Fe/f X-Received: by 2002:ac2:446e:0:b0:4fe:2f8a:457e with SMTP id y14-20020ac2446e000000b004fe2f8a457emr16338767lfl.43.1699017017298; Fri, 03 Nov 2023 06:10:17 -0700 (PDT) Received: from ukaszb-l.wifi.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id f21-20020ac25335000000b00507a69a4799sm216336lfh.270.2023.11.03.06.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:10:17 -0700 (PDT) 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 v1 02/12] dyndbg: add _DPRINTK_FLAGS_TRACE Date: Fri, 3 Nov 2023 14:10:01 +0100 Message-Id: <20231103131011.1316396-3-lb@semihalf.com> X-Mailer: git-send-email 2.38.3 In-Reply-To: <20231103131011.1316396-1-lb@semihalf.com> References: <20231103131011.1316396-1-lb@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 06:10:35 -0700 (PDT) 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.42.0.869.gea05f2083d-goog