selftests/resctrl: Clean up resctrl features check
Checking resctrl features call strcmp() to compare feature strings (e.g. "mba", "cat" etc). The checkings are error prone and don't have good coding style. Define the constant strings in macros and call strncmp() to solve the potential issues. Suggested-by: NShuah Khan <skhan@linuxfoundation.org> Tested-by: NBabu Moger <babu.moger@amd.com> Signed-off-by: NFenghua Yu <fenghua.yu@intel.com> Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
Showing
想要评论请 注册 或 登录