[Announce] PowerTOP v2.8-rc4
by Alexandra Yates
This contains the accepted patches from mailing list. Some bug fixes,
and version string changes. Please give it a test.
--
Thank you,
<Alexandra>
6 years, 7 months
[PATCH] Additional message printed to the powertop output
by Nivedita Swaminathan
Adding an additional message to the powertop output to let the
users know that the saved_parameters.powertop file gets generated
only when minimum number of measurements are taken when connected
to the battery.
Signed-off-by: Nivedita Swaminathan <nivedita.swaminathan(a)intel.com>
---
src/parameters/persistent.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/parameters/persistent.cpp b/src/parameters/persistent.cpp
index 9a5688a..0711b4d 100644
--- a/src/parameters/persistent.cpp
+++ b/src/parameters/persistent.cpp
@@ -178,6 +178,7 @@ void load_parameters(const char *filename)
file.open(pathname, ios::in);
if (!file) {
cout << _("Cannot load from file") << " " << pathname << "\n";
+ cout << _("File will be loaded after taking minimum number of measurement(s) with battery only \n");
return;
}
--
2.1.4
6 years, 7 months
[Installation] Powertop on Nexus 7 Problem
by Antonio
Hi all, i'm trying to install PowerTop on my nexus 7 but i have some problems with Android.mk. Can anyone tell me how run this file? I'm trying to use ndk-build but i have some problem. First of all how should i run the Android.mk with this command?
Thank you,
Antonio.
6 years, 8 months
Segmentation fault with powertop --html option
by Swaminathan, Nivedita
When you run powertop with the '--html' option, it fails to produce powertop.html. The commit that causes this issue is: commit 0b9387287fd0055f29786d17ba61f8a5c6099bea
$sudo powertop -html
Loaded 0 prior measurements
Cannot load from file /var/cache/powertop/saved_parameters.powertop
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
Cannot load from file /var/cache/powertop/saved_parameters.powertop
Preparing to take measurements
unknown op '{'
nswamina@nswamina-desktop:~/powertop/test-powertop/powertop/src$
Further debugging using gdb shows the cause to be a segmentation fault:
nswamina@nswamina-desktop:~/powertop/test-powertop/powertop/src$ sudo gdb powertop
(gdb) r --html
Starting program: /home/nswamina/powertop/test-powertop/powertop/src/powertop --html
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Loaded 0 prior measurements
Cannot load from file /var/cache/powertop/saved_parameters.powertop
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
Cannot load from file /var/cache/powertop/saved_parameters.powertop
Preparing to take measurements
unknown op '{'
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff72e3b63 in std::string::swap(std::string&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) backtrace
#0 0x00007ffff72e3b63 in std::string::swap(std::string&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x0000000000415675 in operator= (__str=<unknown type in /home/nswamina/powertop/test-powertop/powertop/src/powertop, CU 0x72c3a, DIE 0x86efe>, this=0x941998)
at /usr/include/c++/4.9/bits/basic_string.h:592
#2 report_display_cpu_cstates () at cpu/cpu.cpp:573
#3 0x000000000040fe92 in one_measurement (seconds=seconds@entry=1, workload=workload@entry=0x0) at main.cpp:232
#4 0x00000000004100e2 in make_report (time=20, workload=workload@entry=0x7fffffffd550 "", iterations=iterations@entry=1, file=file@entry=0x7fffffffc550 "powertop.html") at main.cpp:267
#5 0x0000000000406e0e in main (argc=2, argv=0x7fffffffe678) at main.cpp:476
6 years, 8 months