From patchwork Tue May 3 14:29:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 9004321 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B619F9F65D for ; Tue, 3 May 2016 14:31:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7BE3202EC for ; Tue, 3 May 2016 14:31:40 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5B1A20221 for ; Tue, 3 May 2016 14:31:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axbKO-0004Dj-85; Tue, 03 May 2016 14:29:32 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axbKN-0004D9-F7 for xen-devel@lists.xen.org; Tue, 03 May 2016 14:29:31 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 43/FF-09532-AC5B8275; Tue, 03 May 2016 14:29:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRWlGSWpSXmKPExsVyMXThEd1TWzX CDf694rZY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDM2zZ3FXDCTr+LR4fNMDYytPF2MXBxCAhMY Jbp+XGIEcVgE5jFLnF2ynw3EkRDoZ5X4uugoaxcjJ5ATIzFz4Tx2CLtaYsHmRywgtpCAgsTvC YeYIOwpTBJn3xuC2GwCGhJPfs1gA7FFBKQlrn2+DLaBWeAZk8Trw13MIAlhAQuJ7XvOgw1iEV CVuHZmN1icV8BB4vimfUDLOICWyUkseO8DYnIKOEq83pEOscpB4n7TfaYJjAILGBlWMaoXpxa VpRbpGuslFWWmZ5TkJmbm6BoamOnlphYXJ6an5iQmFesl5+duYgSGFQMQ7GDs+Od0iFGSg0lJ lPfHEo1wIb6k/JTKjMTijPii0pzU4kOMMhwcShK8OVuAcoJFqempFWmZOcAAh0lLcPAoifBOB 0nzFhck5hZnpkOkTjFacmz5fW0tE8enjXeA5Lap99YyCbHk5eelSonzRoA0CIA0ZJTmwY2DRe ElRlkpYV5GoAOFeApSi3IzS1DlXzGKczAqCfOWg0zhycwrgdv6CuggJqCDsterghxUkoiQkmp gdNVgWxaRumcDY7nx478/3CceeVLDHdulcDW/pq4pzuz9nmcCS6IO7P7nFpjRxZvz7Mxcn9Mf uXZ88iv52c9VlnWo44AcT/Jtnsgp+7+/0F6aGKl5In336zJ7Iw/BM6aLN6ae9Er50iv24N2ql vSbO+rzNBNX6M7jf1oUfV3h0rfYRZIF8f7/lFiKMxINtZiLihMB9f2HP70CAAA= X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1462285767!12500398!1 X-Originating-IP: [209.85.161.196] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 34557 invoked from network); 3 May 2016 14:29:30 -0000 Received: from mail-yw0-f196.google.com (HELO mail-yw0-f196.google.com) (209.85.161.196) by server-12.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 3 May 2016 14:29:30 -0000 Received: by mail-yw0-f196.google.com with SMTP id y6so1770140ywe.0 for ; Tue, 03 May 2016 07:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j8cNKaoKl5hngzESvU6XuWw7vLfTEhV0+yW0Z80IImk=; b=GNhTpFkQEa+NocGzcCkxkJ8fKa70sqbPVn2JivjCCbE0RKjC8vbJTU/RlaKcTRSKVB 5M9CWoseCk6YqZHAYGBVX9+9ZTTQf8/94vs8ox6oo5BHYd5TXLd+mrbVSnNeJWCZb841 hYIrT5sHZLFmfatuLYORE6wYho6aLZUSmXOV8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j8cNKaoKl5hngzESvU6XuWw7vLfTEhV0+yW0Z80IImk=; b=nEHCQFiDai5xzHmDrQXObHzy0ce5RVfePp+euICQagu2Ork5zBla8VM+NbNXazO/lR bNgX3BxR5u0poZqR5M3D7UbZXpg5Hy4rtTQpqEe6Y3k1QGLCem9RqSHhDc3oi7NBHgCo GG/mOwtw4UJC3b7sl3Qq9vSs1aI5iCmCShBh9PNsuL6St9euYIyqL+6sjHqvp2We0uZH QgffqwC71aDIeoaUQsOXHQnkRPScYQ9R6iGzqUBumQ1jNp34vjNCHMdte/qzA5Iy+MSo OPUq/0b9W8T0KMiJbXmlgIGTsdE1NjwRspXaNuhgkkyBuWP7eBdyTcQVwkzjxnsQoocn 09jQ== X-Gm-Message-State: AOPr4FUvuCFHbiBv1LvxCURicTniQj+hL5UMotLwcaZK/ThB4a3CrHdWRWODymEgy+Ajhg== X-Received: by 10.129.98.139 with SMTP id w133mr1308598ywb.222.1462285766931; Tue, 03 May 2016 07:29:26 -0700 (PDT) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id l132sm1879409ywb.26.2016.05.03.07.29.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 May 2016 07:29:26 -0700 (PDT) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Tue, 3 May 2016 09:29:07 -0500 Message-Id: <1462285753-5588-2-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1462285753-5588-1-git-send-email-cardoe@cardoe.com> References: <1462285753-5588-1-git-send-email-cardoe@cardoe.com> Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Doug Goldstein , Tim Deegan , Jan Beulich , Ian Jackson Subject: [Xen-devel] [PATCH v2 1/7] build: add debug menu to Kconfig X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are a number of debugging options for Xen so the idea is to have a menu to group them all together. Enabling this menu item will also disable NDEBUG which will result in more debug prints. This was previously wired into the 'debug=y' command line option. Signed-off-by: Doug Goldstein --- CC: Andrew Cooper CC: George Dunlap CC: Ian Jackson CC: Jan Beulich CC: Konrad Rzeszutek Wilk CC: Stefano Stabellini CC: Tim Deegan CC: Wei Liu --- xen/Kconfig | 2 ++ xen/Kconfig.debug | 7 +++++++ xen/include/xen/config.h | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 xen/Kconfig.debug diff --git a/xen/Kconfig b/xen/Kconfig index fa8b27c..0fe7a1a 100644 --- a/xen/Kconfig +++ b/xen/Kconfig @@ -26,3 +26,5 @@ config DEFCONFIG_LIST config EXPERT string option env="XEN_CONFIG_EXPERT" + +source "Kconfig.debug" diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug new file mode 100644 index 0000000..e5179f4 --- /dev/null +++ b/xen/Kconfig.debug @@ -0,0 +1,7 @@ + +menuconfig DEBUG + bool "Debugging Options" + ---help--- + If you want to debug Xen say Y and select any additional debugging + support options. Enabling this option is intended for development + purposes only, and not for production use. diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h index ef6e5ee..473c5e8 100644 --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -81,4 +81,8 @@ /* allow existing code to work with Kconfig variable */ #define NR_CPUS CONFIG_NR_CPUS +#ifndef CONFIG_DEBUG +#define NDEBUG +#endif + #endif /* __XEN_CONFIG_H__ */