aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2019-01-28 16:55:22 +0000
committerSudeep Holla <sudeep.holla@arm.com>2019-01-29 15:30:00 +0000
commitcc0dbf43668db407692deaf2023d4adbeeef9633 (patch)
tree459d3366a3d62a422a79350421da4f06e55a10c6 /tools/perf/scripts/python/stackcollapse.py
parentARM: dts: vexpress: use list instead of tuple for mmci interrupts (diff)
downloadlinux-dev-cc0dbf43668db407692deaf2023d4adbeeef9633.tar.xz
linux-dev-cc0dbf43668db407692deaf2023d4adbeeef9633.zip
arm: dts: vexpress-v2p-ca15_a7: Add cpu dynamic-power-coefficient information
A CPUfreq driver, like the ARM big.LITTLE driver used on the TC2 board, which provide the Energy Model with power cost information via the PM_OPP of_dev_pm_opp_get_cpu_power() function, do need the dynamic-power-coefficient (C) in the device tree. Method used to obtain the C value: C is computed by measuring energy (E) consumption of a frequency domain (FD) over a 10s runtime (t) sysbench workload running at each Operating Performance Point (OPP) affine to 1 or 2 CPUs of that FD while the other CPUs of the system are hotplugged out. By definition all CPUs of a FD have the the same micro-architecture. An OPP is characterized by a certain frequency (f) and voltage (V) value. The corresponding power values (P) are calculated by dividing the delta of the E values between the runs with 2 and 1 CPUs by t. With n data tuples (P, f, V), n equal to number of OPPs for this frequency domain, we can solve C by: P = Pstat + Pdyn P = Pstat + CV²f Cx = (Px - P1)/(Vx²fx - V1²f1) with x = {2, ..., n} The C value is the arithmetic mean out of {C2, ..., Cn}. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Signed-off-by: Quentin Perret <quentin.perret@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions