Add support for writing into files as part of the executor config
Created by: credp
Hi there,
I wanted to be able to change the values of sched_is_big_little in different sections of tests_conf used with the Executor class in the kernel function profiling workbook. I added a 'files' config section so I could express the file and content I wanted to write. It looks like this in my workbook:
# Platform configurations to test
"confs" : [
{
"tag" : "base",
"flags" : "ftrace",
"sched_features" : "NO_ENERGY_AWARE",
"cpufreq" : {
"governor" : "performance",
},
},
{
"tag" : "eas",
"flags" : "ftrace",
"sched_features" : "ENERGY_AWARE",
"cpufreq" : {
"governor" : "performance",
},
"files" : {
'/proc/sys/kernel/sched_is_big_little' : '1',
},
},
{
"tag" : "eas_SMP",
"flags" : "ftrace",
"sched_features" : "ENERGY_AWARE",
"cpufreq" : {
"governor" : "performance",
},
"files" : {
'/proc/sys/kernel/sched_is_big_little' : '0',
},
},
],
What do you guys think?