aboutsummaryrefslogtreecommitdiff
path: root/energy_model.h
AgeCommit message (Collapse)Author
2015-01-22Energy model: Remove unused parameter optionsTuukka Tikkanen
Function calculate_energy_model (no longer) uses the program options structure. It may have been used earlier for the verbosity control in some messages, but that system has been reworked. Remove the unused paramter. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2015-01-05Idlestat: Update copyright boilerplates and bump version to 0.5Tuukka Tikkanen
Many of the source files were missing copyright headers. Headers have been added to all .c and .h files and existing headers were updates with contributor information. The version number was bumped up to 0.5 due to having many new features since last version number update. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2014-12-12topology: Dynamic allocation for topologiesTuukka Tikkanen
Pre-patch the topology is rooted to a global variable g_cpu_topo_list. This prevents loading multiple traces for comparison. This patch makes the allocation dynamic. The root pointer is stored within struct cpuidle_datas, allowing the idlestat_load() to retain its prototype, but most of the functions defined in topology.c have a new parameter for passing the topology root pointer. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org> Reviewed-by: Koan-Sin Tan <freedom.tan@linaro.org>
2014-10-24idlestat: port Patrick's energy model improvementsLarry Bassel
This is a port of Patrick Bellasi's energy model improvements to the current idlestat tip. These are taken from his idlestat tree which is located at git@github.com:scheduler-tools/idlestat.git The commits used are listed below. They were squashed, ported and some cleanup was performed. Some very TC2-specific code (hwmon) was removed -- it may be possible in the future to generalize this to make it useful to all platforms. commit 08b13eecbc1bf9d8514d92bded54f3e9407b39b2 Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Fri Jul 25 14:16:34 2014 +0100 energy_model: fix scaling of wakeup energy components This should fix the scaling of wakeup energy components to match the energy model parameters. Basically, since the scheduler model is normalized to a wake-up rate of 1000 wake-ups per second, the correct conversion is: idlestate_wakeup_energy = sched_wakeup_energy * 47742 / (1000 * 1024) Where: - 47742: Removes wake-up tracking pre-scaling - 1024: Removes << 10 - 1000: Single wake-up instead of 1000/s Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> commit ff949c959ff3cee3df371451b686a11ebafcfe4e Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Thu Jul 24 14:26:06 2014 +0100 energy_model: report per-cluster power breakdown At the end of an experiment, dump energy estimation per each cluster as well as the overall energy. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> commit 9245da1ab0fe23c5a22f30d18350ca2778a13729 Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Wed Jul 23 16:20:16 2014 +0100 energy_model: setup the ground for per-cluster energy measurements This is a dummy renaming patch which prepares the ground to have a per-cluster energy report. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> commit 2f970549d27c2235826cfa0e8e1e305fb56850e0 Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Wed Jul 23 15:31:04 2014 +0100 energy_model: disable by default warning on missing model params This is expected to provide a better readable output table with just the meaningful metrics. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> commit 6e354aa31ba4c65f6ec6970a45faf5f2e7555681 Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Wed Jul 23 15:28:38 2014 +0100 energy_model: switch to tabular output Use by default a tabular output for the computed energy components. This is expected to improve readability and debugging of the energy model computations. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> commit ea32eebf192052938ad9d641350fcaf242640fe2 Author: Patrick Bellasi <patrick.bellasi@arm.com> Date: Wed Jul 23 15:23:22 2014 +0100 energy_model: fix energy model computation This adds the required fixes in the energy model computation to properly match the events parsed by a filtered trace. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com> Signed-off-by: Larry Bassel <larry.bassel@linaro.org> Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2014-10-24idlestat: make energy model template fileLarry Bassel
If the energy model file doesn't exist, instead make an energy model template file (taking the topology and C and P-state names/values into account). This file is similar to an energy model file, except that all of the energy costs are to be filled in (and are shown as "?"). Signed-off-by: Larry Bassel <larry.bassel@linaro.org> Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2014-10-24idlestat: calculate energy consumption using energy modelLarry Bassel
Calculate estimated energy consumption using the specified energy model file. Signed-off-by: Larry Bassel <larry.bassel@linaro.org> Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
2014-10-24idlestat: parse energy model fileLarry Bassel
A sample energy model file is included. Signed-off-by: Larry Bassel <larry.bassel@linaro.org> Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>