summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2012-04-27 14:30:36 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-30 16:24:34 -0400
commitf0b919d967284313be4a767ba92ab5a88cb27410 (patch)
tree2b6491553abf9bad7aac976f7b08f060cd4e20d5
parentb48420c1d3019ce8d84fb8e58f4ca86b8e3655b8 (diff)
downloadop-kernel-dev-f0b919d967284313be4a767ba92ab5a88cb27410.zip
op-kernel-dev-f0b919d967284313be4a767ba92ab5a88cb27410.tar.gz
dynamic_debug: deprecate ddebug_query, suggest dyndbg instead
With ddebug_dyndbg_boot_params_cb() handling bare dyndbg params, we dont need ddebug_query param anymore. Add a warning when processing ddebug_query= param that it is deprecated, and to change it to dyndbg= Add a deprecation notice for v3.8 to feature-removal-schedule.txt, and add a suggested deprecation period of 3 releases to the header. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Acked-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/feature-removal-schedule.txt9
-rw-r--r--lib/dynamic_debug.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 709e08e..e458d2b 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -2,7 +2,14 @@ The following is a list of files and features that are going to be
removed in the kernel source tree. Every entry should contain what
exactly is going away, why it is happening, and who is going to be doing
the work. When the feature is removed from the kernel, it should also
-be removed from this file.
+be removed from this file. The suggested deprecation period is 3 releases.
+
+---------------------------
+
+What: ddebug_query="query" boot cmdline param
+When: v3.8
+Why: obsoleted by dyndbg="query" and module.dyndbg="query"
+Who: Jim Cromie <jim.cromie@gmail.com>, Jason Baron <jbaron@redhat.com>
---------------------------
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 8fba401..09f2cda 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -993,6 +993,8 @@ static int __init dynamic_debug_init(void)
/* ddebug_query boot param got passed -> set it up */
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);
if (ret < 0)
pr_warn("Invalid ddebug boot param %s",
OpenPOWER on IntegriCloud