Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2355965pxb; Mon, 20 Sep 2021 19:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPYiMPBigE/MEKfpHJeLqzqtGkzEqT1lr+aw0nQiI3XzdsA0oWidj5ladUAOqMxV6KPtAZ X-Received: by 2002:a17:907:9854:: with SMTP id jj20mr33529357ejc.133.1632193029768; Mon, 20 Sep 2021 19:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632193029; cv=none; d=google.com; s=arc-20160816; b=uWTCWJ9H4koWGwZCCc3y7OFKxP1022wZ/An03qGDAdXOLHJRjhzRkQ39tF3ZKUfRIi 2rDTyxXptGXDGuh2kEm+ZiW6q0yupbJAhmfrbtqckIutDK5pt6TzH8iBvFyV70LCD/xX 8z5TSPFqX6cCEwXUE0CS0V2Jh09vE8PeBLNk1o7pyNhSUUPhJub7iUlMJLWIZ58O5WW+ vGR7PpWEs+QFjU76fJtcuLBIoj23vUJ8ui7YRcNWff0pW2s8gAOl9DjWj80Sg7biQVwx nREXhB8JdFqjtXhjbmT1SaOiDQiab4EFn63gfX8gRnxgvY8YO3slls6YYgiHGTTdBtTv foCQ== 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=gGG4Fa5Smycs29b77eteLeOLTMiK3YmJo+qPCM0YDLQ=; b=kJqw7bbQ4HPjzMtjjzJ+3wvhIaxQ3cxSreFSHNkoxuA4ZhqddVTZU7yY0uStp/jdk8 InvZEt3K7eZ6cmnS5qABO8jUre2wPy6moBOU/3JIvgueGmoBaQK+I1hS8GxGLM9z/dfM wSqAXFvR7PKFtMqcnZS5+jsZhsjZLp8b36Xbw09zqI6icdSgVOkvep55I9i8iXgPJJDx O3VnKHNUM6pnnFSBK9MMMWqjnOIejJFB+piJ8azbxSW3aA4TjQv0CjZ++nt4EkOMNUeB mgNS1U+lgjt3VBA2BFxtaq6bIQpA73o4nbrNw54BIPkHFcRmbyYAp2/cOkg4lzIZTrzy 6i7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jb6Wm7Kb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si17535810ejk.703.2021.09.20.19.56.42; Mon, 20 Sep 2021 19:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jb6Wm7Kb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236730AbhITU7K (ORCPT + 99 others); Mon, 20 Sep 2021 16:59:10 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22816 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbhITU5J (ORCPT ); Mon, 20 Sep 2021 16:57:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632171342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gGG4Fa5Smycs29b77eteLeOLTMiK3YmJo+qPCM0YDLQ=; b=Jb6Wm7KbqS3HDdV8kRmoFVnUxf6nXAacuVIJOyBzF/wCNZlEuWJm+xDZc8ndeM2lARdJ6m 67RqMtUggRbwzVsx36anh5wObd+dXrsqRFIvim9vtMpfsCUGhRCMs95onUGFEStIjFVL/M bTxXGBOEURV4UN8l+1+NV65Vk59iPkg= Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-176-USRw-uNYME2LVkHC1meR8w-1; Mon, 20 Sep 2021 16:55:41 -0400 X-MC-Unique: USRw-uNYME2LVkHC1meR8w-1 Received: by mail-io1-f69.google.com with SMTP id n8-20020a6b7708000000b005bd491bdb6aso43933393iom.5 for ; Mon, 20 Sep 2021 13:55:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gGG4Fa5Smycs29b77eteLeOLTMiK3YmJo+qPCM0YDLQ=; b=3W6OWkNNj6JIbGpk6Fm09AARptvUOqiFM2mclNK9U0q6et9Q49Q7qhiDuGnlT/++MY kAq2NygLtph1g4T7xWGBqnDh2IXimJXxLprlbJfWbOaaWsteACLHsvSK7laNtcQnzQaU XRypdyvscBpVD+PFgM7k/4u8NdIaulOtG2cmh02jQKeCiu8sGE05hUqzIeIcyD7hR3Ac anol4CZ9If/nzx8TEQo1Q0QyIckKqKfljHELiD9rfjBDolz4HkDDJfUjhvOi83+OaXIp dlcKhwJb6Sdw0sG1/WZjfSJIq65ubhoR/TgsxNnxfXrdE7aSIeCqjt47CQ61CeLh2AXq g0Gg== X-Gm-Message-State: AOAM531slF6VDj1x3D7IfUAbevHda2ttZa/KDMVuwe67uXtPrJXkf9uY ZPvszqx3QMrelN3fr4GfIPg3OKm8x2v0QiF0I+1CjpN0ZM4QFLqrvyYIvZ7a1fNyKST5oco4/3f y46WCwKDlbpe81Pt/inWHgPTU X-Received: by 2002:a05:6e02:1d0c:: with SMTP id i12mr19819226ila.209.1632171340237; Mon, 20 Sep 2021 13:55:40 -0700 (PDT) X-Received: by 2002:a05:6e02:1d0c:: with SMTP id i12mr19819214ila.209.1632171340044; Mon, 20 Sep 2021 13:55:40 -0700 (PDT) Received: from halaneylaptop.redhat.com (068-184-200-203.res.spectrum.com. [68.184.200.203]) by smtp.gmail.com with ESMTPSA id v9sm9268905ilc.16.2021.09.20.13.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 13:55:39 -0700 (PDT) From: Andrew Halaney To: Jason Baron , Jonathan Corbet , Jim Cromie Cc: Andrew Halaney , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dyndbg: Remove support for ddebug_query param Date: Mon, 20 Sep 2021 15:54:43 -0500 Message-Id: <20210920205444.20068-3-ahalaney@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210920205444.20068-1-ahalaney@redhat.com> References: <20210920205444.20068-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This param has been deprecated for a very long time now, let's rip it out. Signed-off-by: Andrew Halaney --- .../admin-guide/dynamic-debug-howto.rst | 6 ++--- .../admin-guide/kernel-parameters.txt | 5 ---- lib/dynamic_debug.c | 25 ------------------- 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst index b119b8277b3e..d0911e7cc271 100644 --- a/Documentation/admin-guide/dynamic-debug-howto.rst +++ b/Documentation/admin-guide/dynamic-debug-howto.rst @@ -249,8 +249,7 @@ Debug messages during Boot Process To activate debug messages for core code and built-in modules during the boot process, even before userspace and debugfs exists, use -``dyndbg="QUERY"``, ``module.dyndbg="QUERY"``, or ``ddebug_query="QUERY"`` -(``ddebug_query`` is obsoleted by ``dyndbg``, and deprecated). QUERY follows +``dyndbg="QUERY"`` or ``module.dyndbg="QUERY"``. QUERY follows the syntax described above, but must not exceed 1023 characters. Your bootloader may impose lower limits. @@ -270,8 +269,7 @@ this boot parameter for debugging purposes. If ``foo`` module is not built-in, ``foo.dyndbg`` will still be processed at boot time, without effect, but will be reprocessed when module is -loaded later. ``ddebug_query=`` and bare ``dyndbg=`` are only processed at -boot. +loaded later. Bare ``dyndbg=`` is only processed at boot. Debug Messages at Module Initialization Time diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 91ba391f9b32..9c0c57d1ca78 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -841,11 +841,6 @@ Format: , See also Documentation/input/devices/joystick-parport.rst - ddebug_query= [KNL,DYNAMIC_DEBUG] Enable debug messages at early boot - time. See - Documentation/admin-guide/dynamic-debug-howto.rst for - details. Deprecated, see dyndbg. - debug [KNL] Enable kernel debugging (events log level). debug_boot_weak_hash diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 84c16309cc63..130ce0eb550d 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -746,21 +746,6 @@ EXPORT_SYMBOL(__dynamic_ibdev_dbg); #endif -#define DDEBUG_STRING_SIZE 1024 -static __initdata char ddebug_setup_string[DDEBUG_STRING_SIZE]; - -static __init int ddebug_setup_query(char *str) -{ - if (strlen(str) >= DDEBUG_STRING_SIZE) { - pr_warn("ddebug boot param string too large\n"); - return 0; - } - strlcpy(ddebug_setup_string, str, DDEBUG_STRING_SIZE); - return 1; -} - -__setup("ddebug_query=", ddebug_setup_query); - /* * Install a noop handler to make dyndbg look like a normal kernel cli param. * This avoids warnings about dyndbg being an unknown cli param when supplied @@ -1133,16 +1118,6 @@ static int __init dynamic_debug_init(void) entries, modct, (int)((modct * sizeof(struct ddebug_table)) >> 10), (int)((entries * sizeof(struct _ddebug)) >> 10)); - /* apply ddebug_query boot param, dont unload tables on err */ - if (ddebug_setup_string[0] != '\0') { - pr_warn("ddebug_query param name is deprecated, change it to dyndbg\n"); - ret = ddebug_exec_queries(ddebug_setup_string, NULL); - if (ret < 0) - pr_warn("Invalid ddebug boot param %s\n", - ddebug_setup_string); - else - pr_info("%d changes by ddebug_query\n", ret); - } /* now that ddebug tables are loaded, process all boot args * again to find and activate queries given in dyndbg params. * While this has already been done for known boot params, it -- 2.31.1