Skip to content

Commit bcfab87

Browse files
Patryk Wlazlynlenb
authored andcommitted
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>
1 parent 03109e2 commit bcfab87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9897,6 +9897,12 @@ void cmdline(int argc, char **argv)
98979897
break;
98989898
case 'D':
98999899
dump_only++;
9900+
/*
9901+
* Force the no_perf early to prevent using it as a source.
9902+
* User asks for raw values, but perf returns them relative
9903+
* to the opening of the file descriptor.
9904+
*/
9905+
no_perf = 1;
99009906
break;
99019907
case 'e':
99029908
/* --enable specified counter */

0 commit comments

Comments
 (0)