mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
tools/power turbostat: Force --no-perf in --dump mode
Force the --no-perf early to prevent using it as a source. User asks for raw values, but perf returns them relative to the opening of the file descriptor. Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
03109e2f0d
commit
bcfab87108
1 changed files with 6 additions and 0 deletions
|
|
@ -9897,6 +9897,12 @@ void cmdline(int argc, char **argv)
|
|||
break;
|
||||
case 'D':
|
||||
dump_only++;
|
||||
/*
|
||||
* Force the no_perf early to prevent using it as a source.
|
||||
* User asks for raw values, but perf returns them relative
|
||||
* to the opening of the file descriptor.
|
||||
*/
|
||||
no_perf = 1;
|
||||
break;
|
||||
case 'e':
|
||||
/* --enable specified counter */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue