aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2015-07-15 21:49:41 -0400
committerLen Brown <len.brown@intel.com>2015-07-15 21:49:41 -0400
commita01e72fbc41e322ed229465de8b595a7e3ec6549 (patch)
tree76541bcea1acc7ad98d22979b0683f0b810740b0
parent6fb3143b561c4a7865e5513eeb02d42ef38e8173 (diff)
tools/power turbostat: fix parameter passing for forked command
turbostat supports forked command when sampling cpu state. However, the forked command is not allowed to be executed with options, otherwise turbostat might regard these options as invalid turbostat options. For example: ./turbostat stress -c 4 -t 10 ./turbostat: unrecognized option '-t' Reported-by: Chen Yu <yu.c.chen@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--tools/power/x86/turbostat/turbostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 5a793bed453a..915eb2846a2d 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -3118,7 +3118,7 @@ void cmdline(int argc, char **argv)
3118 3118
3119 progname = argv[0]; 3119 progname = argv[0];
3120 3120
3121 while ((opt = getopt_long_only(argc, argv, "C:c:Ddhi:JM:m:PpST:v", 3121 while ((opt = getopt_long_only(argc, argv, "+C:c:Ddhi:JM:m:PpST:v",
3122 long_options, &option_index)) != -1) { 3122 long_options, &option_index)) != -1) {
3123 switch (opt) { 3123 switch (opt) {
3124 case 'C': 3124 case 'C':