]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/power turbostat: fix parameter passing for forked command
authorLen Brown <len.brown@intel.com>
Thu, 16 Jul 2015 01:49:41 +0000 (21:49 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 16 Jan 2017 20:10:56 +0000 (15:10 -0500)
commit0bbe30317f345c99698b8443e7c214d87115beba
tree4491836bd74cabb0af14268328312ada9b8ef0b9
parentba3c4aa8849cec22f79b8ed3799a66f6a3cccf19
tools/power turbostat: fix parameter passing for forked command

Orabug: 24811361

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>
(cherry picked from commit a01e72fbc41e322ed229465de8b595a7e3ec6549)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
tools/power/x86/turbostat/turbostat.c