[PATCH] rt-app: Add IO-bounded and memory-bounded events

2014-12-01 Thread pi-cheng.chen
" key in "global" section. E.g. "tasks" : { "thread0" : { "sleep" : 1000, "run" : 100, "mem" : 1000, "sleep" 1, "iorun" : 1000 } }, "global" : { "io_device" : "/dev/ttyS0" } Signe

[PATCH] Add IO-bounded and memory-bounded events

2014-12-01 Thread pi-cheng.chen
" key in "global" section. E.g. "tasks" : { "thread0" : { "sleep" : 1000, "run" : 100, "mem" : 1000, "sleep" 1, "iorun" : 1000 } }, "global" : { "io_device" : "/dev/ttyS0" } Signe

[PATCH] idlestat: Replace asserts with proper error handlings

2014-11-26 Thread pi-cheng.chen
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 +

[PATCH v2 0/2] Small tasks workload

2014-11-19 Thread pi-cheng.chen
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

[PATCH v2 1/2] rt-app: Add a script to tune parameters in json file

2014-11-19 Thread pi-cheng.chen
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

[PATCH v2 2/2] Fix all trailing commas in /doc/examples/*

2014-11-19 Thread pi-cheng.chen
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

[PATCH 1/3] rt-app: Add a script to tune parameters in json file.

2014-11-11 Thread pi-cheng.chen
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

[PATCH 2/3] rt-app: Add a basic json file for small task workload

2014-11-11 Thread pi-cheng.chen
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

[PATCH 3/3] rt-app: Fix all trailing commas in /doc/examples/*

2014-11-11 Thread pi-cheng.chen
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 +++

[RFC] rt-app: add script to generate small task workloads

2014-10-21 Thread pi-cheng.chen
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

[PATCH v3] idlestat: Allocate struct cpufreq_pstate dynamically

2014-10-03 Thread pi-cheng.chen
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

[PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread pi-cheng.chen
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

[PATCH] idlestate: Allocate struct cpufreq_pstate dynamically

2014-08-26 Thread pi-cheng.chen
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

[PATCH v2] idlestat: Add -o option to save output report to a file

2014-08-22 Thread pi-cheng.chen
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

[PATCH idlestat] Add -o option to save output report to a file

2014-08-19 Thread pi-cheng.chen
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