瀏覽代碼

perf stat: Fix tool option consistency: rename -S/--scale to -c/--scale

We want to use a coherent flag for -S/--stat across all tools,
so free up -S in perf stat.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus@samba.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Brice Goglin 16 年之前
父節點
當前提交
b26bc5a7f8
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      tools/perf/Documentation/perf-stat.txt
  2. 1 1
      tools/perf/builtin-stat.c

+ 1 - 1
tools/perf/Documentation/perf-stat.txt

@@ -40,7 +40,7 @@ OPTIONS
 -a::
 -a::
         system-wide collection
         system-wide collection
 
 
--S::
+-c::
         scale counter values
         scale counter values
 
 
 EXAMPLES
 EXAMPLES

+ 1 - 1
tools/perf/builtin-stat.c

@@ -496,7 +496,7 @@ static const struct option options[] = {
 		    "stat events on existing pid"),
 		    "stat events on existing pid"),
 	OPT_BOOLEAN('a', "all-cpus", &system_wide,
 	OPT_BOOLEAN('a', "all-cpus", &system_wide,
 		    "system-wide collection from all CPUs"),
 		    "system-wide collection from all CPUs"),
-	OPT_BOOLEAN('S', "scale", &scale,
+	OPT_BOOLEAN('c', "scale", &scale,
 		    "scale/normalize counters"),
 		    "scale/normalize counters"),
 	OPT_BOOLEAN('v', "verbose", &verbose,
 	OPT_BOOLEAN('v', "verbose", &verbose,
 		    "be more verbose (show counter open errors, etc)"),
 		    "be more verbose (show counter open errors, etc)"),