selftests/resctrl: Simplify span lifetime
stable inclusion from stable-v6.6.3 commit ef8454af673735ec44b851d6f78e6f6f3bcba30b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8LBQP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ef8454af673735ec44b851d6f78e6f6f3bcba30b -------------------------------- [ Upstream commit b1a901e078c4ee4a6fe13021c4577ef5f3155251 ] struct resctrl_val_param contains span member. resctrl_val(), however, never uses it because the value of span is embedded into the default benchmark command and parsed from it by run_benchmark(). Remove span from resctrl_val_param. Provide DEFAULT_SPAN for the code that needs it. CMT and CAT tests communicate span that is different from the DEFAULT_SPAN between their internal functions which is converted into passing it directly as a parameter. Signed-off-by:Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Tested-by:
Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Reviewed-by:
Reinette Chatre <reinette.chatre@intel.com> Reviewed-by:
Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Reviewed-by:
"Wieczor-Retman, Maciej" <maciej.wieczor-retman@intel.com> Signed-off-by:
Shuah Khan <skhan@linuxfoundation.org> Stable-dep-of: 3aff51464455 ("selftests/resctrl: Extend signal handler coverage to unmount on receiving signal") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment