From patchwork Mon May 2 04:10:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8989741 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 943ECBF29F for ; Mon, 2 May 2016 04:13:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7DAEA201D3 for ; Mon, 2 May 2016 04:13:36 +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 8B25A201C7 for ; Mon, 2 May 2016 04:13:35 +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 1ax5CN-0002Ds-7i; Mon, 02 May 2016 04:11:07 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ax5CL-0002DI-9P for xen-devel@lists.xen.org; Mon, 02 May 2016 04:11:05 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 7C/AF-07120-953D6275; Mon, 02 May 2016 04:11:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRWlGSWpSXmKPExsVyMXThId2Iy2r hBvf/S1gs+biYxYHR4+ju30wBjFGsmXlJ+RUJrBm3+vYyFWzmq3i48BlrA+Nsni5GLg4hgUmM EsdaHjKDOCwC85glri9+DeZICPSzSiyZ1ADkcAI5MRINH34xQtg1EtcX9oPFhQQUJH5POMQEM Woyk8SB/+vBitgENCSe/JrBBmKLCEhLXPt8mRGkiFngGZPE68NdYN3CApYSX7omgxWxCKhKzN 81DczmFXCU+DjxPZDNAbRNTmLBex+QMKeAk0Tf101Qix0lnn64zziBUWABI8MqRvXi1KKy1CJ dQ72kosz0jJLcxMwcXUMDM73c1OLixPTUnMSkYr3k/NxNjMDQYgCCHYw7nzsdYpTkYFIS5Z18 TC1ciC8pP6UyI7E4I76oNCe1+BCjDAeHkgTv8UtAOcGi1PTUirTMHGCQw6QlOHiURHhtzwGle YsLEnOLM9MhUqcYLTm2/L62lonj08Y7QHLb1HtrmYRY8vLzUqXEeZeBzBMAacgozYMbB4vES4 yyUsK8jEAHCvEUpBblZpagyr9iFOdgVBLmbQWZwpOZVwK39RXQQUxAB2WvVwU5qCQRISXVwBg v9EnOs2/FSZ8HBac3HlU0fvzWU3SOuOXy8MU+3w/U2USycJ79rnsqLECGWbPU4bLPN6/U6z3L bmyd7bq+PLH8B2/lnGiNlsbgtIWzPT8/e9Wo2GrKXjWXu7TfZHvA1hXP+MJ/darpTFh20aXt0 E+LpY8PB1mEZ83X//KbL/N+gs2BeImEfCWW4oxEQy3mouJEAOPeqt6/AgAA X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-8.tower-21.messagelabs.com!1462162261!12152428!1 X-Originating-IP: [209.85.161.194] 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 51736 invoked from network); 2 May 2016 04:11:04 -0000 Received: from mail-yw0-f194.google.com (HELO mail-yw0-f194.google.com) (209.85.161.194) by server-8.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 2 May 2016 04:11:04 -0000 Received: by mail-yw0-f194.google.com with SMTP id u62so17836779ywe.3 for ; Sun, 01 May 2016 21:11:02 -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=+IqrCHtln2gv3sY+UeqRb5ebwy/JTjJbHiysSQVXMUQ=; b=GnEiv9m8tOncGH/VXikjdtLhH0Zjub7brwqiXULlkV1D3L0niANb09AVBGApCeKX3R SLX3c+5dSSTLRTq46/D4XHi/1Rl4jY++v/IsrTGc1RLQgyrxjvW9xBmdhupCOMb4pFul t+YOyduBrCnXCOzNrCSjOAhrChogoEilwyp1M= 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=+IqrCHtln2gv3sY+UeqRb5ebwy/JTjJbHiysSQVXMUQ=; b=QDKZMXsf1RnF5WkoY/lYvBFyjUKmxG1qlWe65qdpUcb0PTmZt7qz48mftrepao4s/w +leL1FlOAuDEY/Gs4s1ngfxHY5B0S9GfHrC6akV2CUlsadfA1G5gNrIyHGdzQqWJfESP SAZLW2iLBbC1OSZZ/GhaAd+HQ7BKgTd5GdyRSosHK3UYRlBip+qEmpmawPuqA0TlHsZ5 ho7tJL+cZdz2BMHYRKKEZfVAcUm3sZtDXpMFD9CLy89HbrYg3iCFJLFWfCx3S/+neYDH 0tiS7YjMAooIIydcJJi3LufEuagFpYsxFP5E7vUr+m8aNCXXSXDLvuhUPgPKRla7k+2G XY9w== X-Gm-Message-State: AOPr4FXqT/pOeamEHjRESC1wZ7CscX7GfCeKoFHMurvDViSdoJro3v2EkUdTHWb0NZpZsw== X-Received: by 10.129.104.215 with SMTP id d206mr7835064ywc.142.1462162261179; Sun, 01 May 2016 21:11:01 -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 j3sm14334897ywj.32.2016.05.01.21.10.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 May 2016 21:10:59 -0700 (PDT) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Sun, 1 May 2016 23:10:40 -0500 Message-Id: <1462162246-32413-2-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1462162246-32413-1-git-send-email-cardoe@cardoe.com> References: <1462162246-32413-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] [RFC PATCH 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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID,UNPARSEABLE_RELAY,URIBL_BLACK 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..d14d758 --- /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. This enables additional debugging through Xen + and as a result enabling this option results in no security guarantees. 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__ */