" key in "global" section.
E.g.
"tasks" : {
"thread0" :
{ "sleep" : 1000, "run" : 100, "mem" : 1000, "sleep" 1, "iorun" : 1000 }
},
"global" : { "io_device" : "/dev/ttyS0" }
Signe
" key in "global" section.
E.g.
"tasks" : {
"thread0" :
{ "sleep" : 1000, "run" : 100, "mem" : 1000, "sleep" 1, "iorun" : 1000 }
},
"global" : { "io_device" : "/dev/ttyS0" }
Signe
Replace asserts with displaying error messages and/or terminating program in a
controlled manner. Also refine some error handling paths.
Signed-off-by: Pi-Cheng Chen
---
energy_model.c | 3 ---
idlestat.c | 62 +++---
topology.c | 12 +
This set adds a script to tune parameters in JSON files and fixes all trailing
commas in example JSON files.
changes v1 to v2: merge example6.json into example2.json
pi-cheng.chen (2):
Add a script to tune parameters in json file.
Fix all trailing commas in /doc/examples/*
doc/examples
This scripts strips all comments in the input JSON file, modifies the
parameters according to commnad line arguments, and write the content to a new
JSON file.
Signed-off-by: Pi-Cheng Chen
---
doc/tune_json.py | 138 +++
1 file changed, 138 ins
Add key "instance" in example2.json so that the file is flexible to generate
workload with multiple small tasks.
Fix all trailing commas in /doc/examples/* so that those JSON file could be
tuned by tune_json.py script. A trailing comma in mp3.json needs to be removed
manually since it's added by w
This scripts strips all comments in the input JSON file, modifies the
parameters according to commnad line arguments, and write the content to a new
JSON file.
Signed-off-by: Pi-Cheng Chen
---
doc/tune_json.py | 138 +++
1 file changed, 138 ins
A JSON file to describe a workload with several 10% loading small tasks.
Signed-off-by: Pi-Cheng Chen
---
doc/examples/example6.json | 14 ++
1 file changed, 14 insertions(+)
create mode 100644 doc/examples/example6.json
diff --git a/doc/examples/example6.json b/doc/examples/exampl
Fix all trailing commas in /doc/examples/* so that those JSON file could be
tuned by tune_json.py script. A trailing comma in mp3.json needs to be removed
manually since it's added by workgen script when adding suspend key.
Signed-off-by: Pi-Cheng Chen
---
doc/examples/browser.json | 36 +++
Some examples to use the script to generate small tasks workloads:
1. to generate a workload with 4 threads, 10% load and 30ms period
$ ./small_task_gen -t 4 -l 10 -p 3
2. to generate a workload with 3 threads, 15% load and random tick-aligned
period
$ ./small_task_gen -t 3 -l 15 -r --aligned
Initialize struct cpufreq_pstates with initial P-state of CPUs and allocate
struct cpufreq_pstate dynamically when parsing trace file to solve the issue
caused by missing "scaling_avaialable_freqs" attr when using intel_pstate
driver.
Changes v2 to v3:
Initialize struct cpufreq_pstates with initia
When using intel_pstate driver, "scaling_available_freqs" attr is not
exported to sysfs. It causes assertion of idlestat due to memory of
struct cpufreq_pstate was not allocated.
Allocate struct cpufreq_pstate dynamically when getting frequency
information from trace file instead of parsing availa
When using intel_pstate driver, "scaling_available_freqs" attr is not
exported to sysfs. It causes assertion of idlestat due to memory of
struct cpufreq_pstate was not allocated.
Allocate struct cpufreq_pstate dynamically when getting frequency
information from trace file instead of parsing avai
Currently the serial terminal connected to the boards running idlestat are
restricted to be at least 80 characters wide to output the report. Otherwise
idlestat quits with message "The terminal must be at least 80 columns wide".
Changes v1 to v2:
* Duplicate opened report file to stdout instead of
Currently the serial terminal connected to the boards running idlestat are
restricted to be at least 80 characters wide to output the report. Otherwise
idlestat quits with message "The terminal must be at least 80 columns wide".
Fix it by adding a "-o" option to save report output to a file.
Si
15 matches
Mail list logo