Skip to content
Snippets Groups Projects
Commit bcfab871 authored by Patryk Wlazlyn's avatar Patryk Wlazlyn Committed by Len Brown
Browse files

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: default avatarPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 03109e2f
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment