* [PATCH] kvm: Improve help message clarity in dirty_log_test
@ 2025-04-20 19:25 Tinu K Cheriya
0 siblings, 0 replies; only message in thread
From: Tinu K Cheriya @ 2025-04-20 19:25 UTC (permalink / raw)
To: linux-kernel; +Cc: tinukcheriya
From: tinukcheriya <tinuk11c@gmail.com>
Signed-off-by: tinukcheriya <tinuk11c@gmail.com>
---
tools/testing/selftests/kvm/dirty_log_test.c | 30 +++++++++++---------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/tools/testing/selftests/kvm/dirty_log_test.c b/tools/testing/selftests/kvm/dirty_log_test.c
index 54da9cc20db4..ac01cf198469 100644
--- a/tools/testing/selftests/kvm/dirty_log_test.c
+++ b/tools/testing/selftests/kvm/dirty_log_test.c
@@ -503,22 +503,24 @@ static void help(char *name)
int i;
puts("");
- printf("usage: %s [-h] [-i iterations] [-I interval] "
- "[-p offset] [-m mode]\n", name);
+ printf("Usage: %s [-h] [-i iterations] [-I interval] [-p offset] [-m mode]\n", name);
puts("");
- printf(" -i: specify iteration counts (default: %"PRIu64")\n",
- TEST_HOST_LOOP_N);
- printf(" -I: specify interval in ms (default: %"PRIu64" ms)\n",
- TEST_HOST_LOOP_INTERVAL);
- printf(" -p: specify guest physical test memory offset\n"
- " Warning: a low offset can conflict with the loaded test code.\n");
- printf(" -M: specify the host logging mode "
- "(default: run all log modes). Supported modes: \n\t");
+ printf(" -i: Specify the number of test iterations (default: %"PRIu64")\n", TEST_HOST_LOOP_N);
+
+ printf(" -p: Specify the guest physical memory offset for the test.\n"
+ " Warning: Low offsets may conflict with test code loaded in memory.\n");
+ printf(" -p: Specify the guest physical memory offset for the test.\n"
+ " Warning: Low offsets may conflict with test code loaded in memory.\n");
+
+ printf(" -M: Specify the host logging mode (default: run all log modes).\n"
+ " Supported modes:\n\t");
+
log_modes_dump();
- printf(" -m: specify the guest mode ID to test "
- "(default: test all supported modes)\n"
- " This option may be used multiple times.\n"
- " Guest mode IDs:\n");
+ printf(" -m: Specify the guest mode ID to test "
+ "(default: test all supported modes).\n"
+ " You may use this option multiple times.\n"
+ " Guest mode IDs:\n");
+
for (i = 0; i < NUM_VM_MODES; ++i) {
printf(" %d: %s%s\n", i, vm_guest_mode_string(i),
guest_modes[i].supported ? " (supported)" : "");
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-20 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-20 19:25 [PATCH] kvm: Improve help message clarity in dirty_log_test Tinu K Cheriya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®