Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp938531pxb; Wed, 6 Apr 2022 04:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjlQffgcwhtCoJjCBsc21bXiYMO7l+cbEYf7G6ZdEFaFSCBWP2WtEUM3BHfrbeB3mZZ59N X-Received: by 2002:a65:5a82:0:b0:386:f95:40fd with SMTP id c2-20020a655a82000000b003860f9540fdmr6888537pgt.256.1649245908922; Wed, 06 Apr 2022 04:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245908; cv=none; d=google.com; s=arc-20160816; b=nmzuVQYkaukcJ5nRgrkUuFl+ceQAaDm8z9hPSngEMBILD1IYUXcS/vdGW+1/J+NC5m Our4OsEiggxF8LT1ktTkU2rCKykMoYcQCi8okWwPgB9heKB6EjrIol4IUSF9bPdCHxzo 87sFLLD4q7RZ8gEK2nG9Qi24ES6EKmjAhuWQh8clPt0zpZQpsYO3cfb6lUkEl8wInEHW U1KiJ4I8vKi4pnd0i5tivO3FZSMX29q/FN60x8BVafC7ahXFcAaGNvA41TDMpIlVj2ar PvgHf1H5lznTO9g1kn2ZP1acZr/HIM6GKtG9AgfqnxBImJsPWFCmIbTdch+MycUE0mW8 UXPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=mEtlfWOGKIQVrZ7nidc8AY49/i8syn1s+vzgKiezmpM=; b=UArG8B0ABqTr6uHG+orx5LWPic9eIwsgl5y11t1hD0gpbRrdm7uinyCq9Eb/N0e7ii aRN277zW16kgjMSWgvH9QJ70nA0R7nZliWMsZJBoMEMhoefGOo/oF4uHOZxnzIoFYWtr FDXB8MoPmaBsLvO89chNTJM3qg6l28ItsfFF5ZW2eGUFMbnyX00laPBkE8jXsSLZL6eY lkQayJop9U+ply5AarOUuFnMQgQH3lql7nec0QXKMT3M13Q/lBO4uAcg4ZA94Z6tSMCY LBpvBVU90aTq5cAwTowm/QXBbumkfkrJ+zQMm9Yn5WmvzwwmJH5niPURJrkvZiwyz7jU yO+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="uP/UqWBC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=YTmJtaUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c1-20020a170902d48100b00153b2d165b8si16042904plg.448.2022.04.06.04.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:51:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="uP/UqWBC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=YTmJtaUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08C0B23149; Wed, 6 Apr 2022 03:11:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1847343AbiDFCRo (ORCPT + 99 others); Tue, 5 Apr 2022 22:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344947AbiDEUVv (ORCPT ); Tue, 5 Apr 2022 16:21:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 450076D3A1; Tue, 5 Apr 2022 13:01:57 -0700 (PDT) Date: Tue, 05 Apr 2022 20:01:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649188916; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mEtlfWOGKIQVrZ7nidc8AY49/i8syn1s+vzgKiezmpM=; b=uP/UqWBCcJPOT9vJhSWPYKELL1mtLfiBiNyg2cvC3O2s6n3eodY7/HA8nAgyh1OfzhkKnj onGWPf69ihrGgYgXuP5C0gEpTbgeqqCCZcJmabVaqKIggTdfhmcW5tbjs5bzy4LUkl5fOg wpLgnGNUXGpC8aQSnJToDDjHL3Zak5x0xcWzcQqmgfWs/JOzFVYAPDlDWlUhzVHV45beJa a/OlX7t24Cq6Ap/T8sUZZrMHM6usi0waY7DJmapnu0l7zEH97hPJ0HPpeDdd438AcEFSDa zAJVDz6cxfxVvwAisbgfvwI0x3c0LGFxYelIrGbuEafB4mNX6O20kzjPikIX0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649188916; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mEtlfWOGKIQVrZ7nidc8AY49/i8syn1s+vzgKiezmpM=; b=YTmJtaUbjkkcdIyLYkFNt/SJHKp0n05jgQZd0qb5tr5TfJVa/xTPtvEQEtWNeFoRDqemxE jLDCITIa1oHKkbDQ== From: "tip-bot2 for Dave Hansen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/build] x86/configs: Add x86 debugging Kconfig fragment plus docs Cc: Dave Hansen , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220331175728.299103A0@davehans-spike.ostc.intel.com> References: <20220331175728.299103A0@davehans-spike.ostc.intel.com> MIME-Version: 1.0 Message-ID: <164918891525.389.9920170532036101413.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The following commit has been merged into the x86/build branch of tip: Commit-ID: 9f61ccc85afb061f65dd8ede7b8d4845b2f2dfce Gitweb: https://git.kernel.org/tip/9f61ccc85afb061f65dd8ede7b8d4845b2f2dfce Author: Dave Hansen AuthorDate: Thu, 31 Mar 2022 10:57:28 -07:00 Committer: Borislav Petkov CommitterDate: Tue, 05 Apr 2022 21:54:04 +02:00 x86/configs: Add x86 debugging Kconfig fragment plus docs The kernel has a wide variety of debugging options to help catch and squash bugs. However, new debugging is added all the time and the existing options can be hard to find. Add a Kconfig fragment with the debugging options which tip maintainers expect to be used to test contributions. This should make it easier for contributors to test their code and find issues before submission. [ bp: Add to "make help" output ] Signed-off-by: Dave Hansen Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220331175728.299103A0@davehans-spike.ostc.intel.com --- Documentation/process/maintainer-tip.rst | 14 ++++++++++++++ arch/x86/Makefile | 1 + kernel/configs/x86_debug.config | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 kernel/configs/x86_debug.config diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst index c74f4a8..572a328 100644 --- a/Documentation/process/maintainer-tip.rst +++ b/Documentation/process/maintainer-tip.rst @@ -437,6 +437,20 @@ in a private repository which allows interested people to easily pull the series for testing. The usual way to offer this is a git URL in the cover letter of the patch series. +Testing +^^^^^^^ + +Code should be tested before submitting to the tip maintainers. Anything +other than minor changes should be built, booted and tested with +comprehensive (and heavyweight) kernel debugging options enabled. + +These debugging options can be found in kernel/configs/x86_debug.config +and can be added to an existing kernel config by running: + + make x86_debug.config + +Some of these options are x86-specific and can be left out when testing +on other architectures. Coding style notes ------------------ diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 63d50f6..1abd7cc 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -313,5 +313,6 @@ define archhelp echo '' echo ' kvm_guest.config - Enable Kconfig items for running this kernel as a KVM guest' echo ' xen.config - Enable Kconfig items for running this kernel as a Xen guest' + echo ' x86_debug.config - Enable tip tree debugging options for testing' endef diff --git a/kernel/configs/x86_debug.config b/kernel/configs/x86_debug.config new file mode 100644 index 0000000..45498c0 --- /dev/null +++ b/kernel/configs/x86_debug.config @@ -0,0 +1,18 @@ +CONFIG_X86_DEBUG_FPU=y +CONFIG_LOCK_STAT=y +CONFIG_DEBUG_VM=y +CONFIG_DEBUG_VM_VMACACHE=y +CONFIG_DEBUG_VM_RB=y +CONFIG_DEBUG_SLAB=y +CONFIG_DEBUG_KMEMLEAK=y +CONFIG_DEBUG_PAGEALLOC=y +CONFIG_SLUB_DEBUG_ON=y +CONFIG_KMEMCHECK=y +CONFIG_DEBUG_OBJECTS=y +CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1 +CONFIG_GCOV_KERNEL=y +CONFIG_LOCKDEP=y +CONFIG_PROVE_LOCKING=y +CONFIG_SCHEDSTATS=y +CONFIG_VMLINUX_VALIDATION=y +CONFIG_DEBUG_INFO=y