S0ix Selftest Tool is designed to do the initial debugging for the S2idle path CPU Package C-state and S0ix failures in Linux OS for Intel® Client platforms, it also supports the basic runtime PC10 status check.
Recent versions of turbostat do not output the same variables as before. For example, GFX%Rc6 and Pkg%pc9 cannot be outputted anymore by recent turbostat versions. See: turbostat --list.
Turbostat does not complain about variables that are requested, but not available. It simply outputs the requested variables that are available for output. This issue has been brought up in issue #23.
The script currently uses hardcoded indices to extract the relevant values from the turbostat output. But since the output now has fewer columns, wrong values are extracted (e.g. the PC10 value is extracted as PC8) or when the hardcoded index is higher than the number of available columns a syntax error is printed in the log that the script generates.
This patch creates a function that takes the variable name of the turbostat output as parameter and returns the index of the column in the output. All code related to unavailable turbostat variables is removed.
Recent versions of turbostat do not output the same variables as before. For example, GFX%Rc6 and Pkg%pc9 cannot be outputted anymore by recent turbostat versions. See:
turbostat --list
.Turbostat does not complain about variables that are requested, but not available. It simply outputs the requested variables that are available for output. This issue has been brought up in issue #23.
The script currently uses hardcoded indices to extract the relevant values from the turbostat output. But since the output now has fewer columns, wrong values are extracted (e.g. the PC10 value is extracted as PC8) or when the hardcoded index is higher than the number of available columns a syntax error is printed in the log that the script generates.
This patch creates a function that takes the variable name of the turbostat output as parameter and returns the index of the column in the output. All code related to unavailable turbostat variables is removed.
Fixes #23