Commit 4a1bb4d
tools/power turbostat: Clear added counters when in no-msr mode
If user request --no-msr or is not able to access the MSRs,
turbostat should clear all the counters added with --add.
Because MSR access permission checks are done after the cmdline is
parsed, the decision has to be defered up until the transition into
no-msr mode happen.
Signed-off-by: Len Brown <len.brown@intel.com>1 parent aed48c4 commit 4a1bb4d
1 file changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1163 | 1194 | | |
1164 | 1195 | | |
1165 | 1196 | | |
| |||
1315 | 1346 | | |
1316 | 1347 | | |
1317 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
1318 | 1351 | | |
1319 | 1352 | | |
1320 | 1353 | | |
| |||
6601 | 6634 | | |
6602 | 6635 | | |
6603 | 6636 | | |
| 6637 | + | |
| 6638 | + | |
| 6639 | + | |
| 6640 | + | |
| 6641 | + | |
| 6642 | + | |
| 6643 | + | |
| 6644 | + | |
| 6645 | + | |
| 6646 | + | |
6604 | 6647 | | |
6605 | 6648 | | |
6606 | | - | |
6607 | 6649 | | |
6608 | 6650 | | |
6609 | 6651 | | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
6610 | 6655 | | |
6611 | 6656 | | |
6612 | 6657 | | |
| |||
0 commit comments