|
From: Nicholas N. <nj...@so...> - 2023-04-21 12:44:29
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=307f96a519d458818d32d8c63eb3628c25db97e4 commit 307f96a519d458818d32d8c63eb3628c25db97e4 Author: Nicholas Nethercote <n.n...@gm...> Date: Fri Apr 21 15:59:39 2023 +1000 Reorder options in Cachegrind's `-h` output. Put the commonly used ones first. Diff: --- cachegrind/cg_arch.c | 2 +- cachegrind/cg_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cachegrind/cg_arch.c b/cachegrind/cg_arch.c index 57570dd638..52e8982184 100644 --- a/cachegrind/cg_arch.c +++ b/cachegrind/cg_arch.c @@ -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" - ); + ); } diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index c4e111aa30..c17ab975b0 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -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) |