[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241031204041.GA27585@lichtman.org>
Date: Thu, 31 Oct 2024 20:40:41 +0000
From: Nir Lichtman <nir@...htman.org>
To: jason.wessel@...driver.com, daniel.thompson@...aro.org,
dianders@...omium.org, linux-kernel@...r.kernel.org
Subject: [PATCH] kdb: Fix incomplete usage help of md, mds and btc commands
Fix kdb usage help to document some currently missing CLI commands options
Signed-off-by: Nir Lichtman <nir@...htman.org>
---
kernel/debug/kdb/kdb_main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
index f5f7d7fb5936..0bdffb17b163 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
@@ -2667,7 +2667,7 @@ EXPORT_SYMBOL_GPL(kdb_unregister);
static kdbtab_t maintab[] = {
{ .name = "md",
.func = kdb_md,
- .usage = "<vaddr>",
+ .usage = "<vaddr> [lines] [radix]",
.help = "Display Memory Contents, also mdWcN, e.g. md8c1",
.minlen = 1,
.flags = KDB_ENABLE_MEM_READ | KDB_REPEAT_NO_ARGS,
@@ -2686,7 +2686,7 @@ static kdbtab_t maintab[] = {
},
{ .name = "mds",
.func = kdb_md,
- .usage = "<vaddr>",
+ .usage = "<vaddr> [lines] [radix]",
.help = "Display Memory Symbolically",
.flags = KDB_ENABLE_MEM_READ | KDB_REPEAT_NO_ARGS,
},
@@ -2743,8 +2743,8 @@ static kdbtab_t maintab[] = {
},
{ .name = "btc",
.func = kdb_bt,
- .usage = "",
- .help = "Backtrace current process on each cpu",
+ .usage = "[<cpu>]",
+ .help = "Backtrace current process on each cpu, or a specific one if cpu is passed",
.flags = KDB_ENABLE_INSPECT,
},
{ .name = "btt",
--
2.39.2
Powered by blists - more mailing lists