From: Nicholas Nethercote Date: Fri, 21 Apr 2023 05:59:39 +0000 (+1000) Subject: Reorder options in Cachegrind's `-h` output. X-Git-Tag: VALGRIND_3_21_0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=307f96a519d458818d32d8c63eb3628c25db97e4;p=thirdparty%2Fvalgrind.git Reorder options in Cachegrind's `-h` output. Put the commonly used ones first. --- 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=,, set I1 cache manually\n" " --D1=,, set D1 cache manually\n" " --LL=,, 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= 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= output file name [cachegrind.out.%%p]\n" ); + VG_(print_cache_clo_opts)(); } static void cg_print_debug_usage(void)