]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reorder options in Cachegrind's `-h` output.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 21 Apr 2023 05:59:39 +0000 (15:59 +1000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 21 Apr 2023 12:18:09 +0000 (22:18 +1000)
Put the commonly used ones first.

cachegrind/cg_arch.c
cachegrind/cg_main.c

index 57570dd6387c38a40d87b08b3e6d29b41c10cb27..52e8982184f0f5e136df27614478388fa6b53217 100644 (file)
@@ -317,7 +317,7 @@ void VG_(print_cache_clo_opts)()
 "    --I1=<size>,<assoc>,<line_size>  set I1 cache manually\n"
 "    --D1=<size>,<assoc>,<line_size>  set D1 cache manually\n"
 "    --LL=<size>,<assoc>,<line_size>  set LL cache manually\n"
-               );
+   );
 }
 
 
index c4e111aa30671540fa08ec916f9bf650402b9542..c17ab975b03c3b4240dce5e54e2eeead3ac92d07 100644 (file)
@@ -1758,12 +1758,12 @@ static Bool cg_process_cmd_line_option(const HChar* arg)
 
 static void cg_print_usage(void)
 {
-   VG_(print_cache_clo_opts)();
    VG_(printf)(
+"    --cachegrind-out-file=<file>     output file name [cachegrind.out.%%p]\n"
 "    --cache-sim=yes|no               collect cache stats? [yes]\n"
 "    --branch-sim=yes|no              collect branch prediction stats? [no]\n"
-"    --cachegrind-out-file=<file>     output file name [cachegrind.out.%%p]\n"
    );
+   VG_(print_cache_clo_opts)();
 }
 
 static void cg_print_debug_usage(void)