Commit f0b919d967284313be4a767ba92ab5a88cb27410
Committed by
Greg Kroah-Hartman
1 parent
b48420c1d3
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 2 changed files with 10 additions and 1 deletions Side-by-side Diff
Documentation/feature-removal-schedule.txt
... | ... | @@ -2,7 +2,14 @@ |
2 | 2 | removed in the kernel source tree. Every entry should contain what |
3 | 3 | exactly is going away, why it is happening, and who is going to be doing |
4 | 4 | the work. When the feature is removed from the kernel, it should also |
5 | -be removed from this file. | |
5 | +be removed from this file. The suggested deprecation period is 3 releases. | |
6 | + | |
7 | +--------------------------- | |
8 | + | |
9 | +What: ddebug_query="query" boot cmdline param | |
10 | +When: v3.8 | |
11 | +Why: obsoleted by dyndbg="query" and module.dyndbg="query" | |
12 | +Who: Jim Cromie <jim.cromie@gmail.com>, Jason Baron <jbaron@redhat.com> | |
6 | 13 | |
7 | 14 | --------------------------- |
8 | 15 |
lib/dynamic_debug.c
... | ... | @@ -993,6 +993,8 @@ |
993 | 993 | |
994 | 994 | /* ddebug_query boot param got passed -> set it up */ |
995 | 995 | if (ddebug_setup_string[0] != '\0') { |
996 | + pr_warn("ddebug_query param name is deprecated," | |
997 | + " change it to dyndbg\n"); | |
996 | 998 | ret = ddebug_exec_queries(ddebug_setup_string); |
997 | 999 | if (ret < 0) |
998 | 1000 | pr_warn("Invalid ddebug boot param %s", |