aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-19Add support for Genpd.HEADmasterThara Gopinath
This patch adds support to dump/display the powerdomain statistics in powerdebug. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Define file operations.Thara Gopinath
This patch adds functions for file open, file read line and file close. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Redefine the short option for findparents.Thara Gopinath
This patch changes the short option for findparents from -p to -f so that -p can be used for power domains. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Add gpio option in the usage.Thara Gopinath
This patch adds info about -g/--gpio option in the usage section. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Fix the numbering of display options.Thara Gopinath
The ordering of the display options was not matching with the order of the windows defined in display.h causing GPIO and CLOCK display to seg fault/not work. This patch fixes this issue. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Correct the format type for reading in regulator dataThara Gopinath
Some of the regulator info were being read in as an integer to a character buffer which was causing the info to be garbled and wrong. This patch fixes the issue by reading in the info as a string and then converting it into integer. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Check if terminal supports changing color definitions.Thara Gopinath
This patch adds the check whether the terminal supports colors and allows changing color definitions before actually attempting to redifine the color definitions. Without this check, attempting to change color definitions in a color not supported terminal causes a hang. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2017-09-19Initialize tree pointers in the dump only optionThara Gopinath
The regulator, gpio, sensor and clock tree pointers were initialized only during the display option and not during the dump only option. This meant the dump option was not printing any info previously. This patch fixes it by initilaizing the tree pointers during the dump only option. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2016-02-22Fix display error on screenDaniel Lezcano
The previous patch was reverted and is replaced by this one. Instead of dancing around with global flag telling if a subsys succeed or not and write a error, let's try to initialize the subsystem each time a display is requested and output an error occurs. That makes the code a bit nicer and give the opportunity to fix the problem at the system level (eg. mount debugfs) without restarting powerdebug. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-22Revert "display error on module window"Daniel Lezcano
This reverts commit 96f6e050107da5d258280b785e5ed410d534a775. Conflicts: gpio.c regulator.c sensor.c Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-22Fix 'read' symbol shadowed by 'read' variableDaniel Lezcano
Rename variable 'read' by 'nrread'. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-19Move SIGWINCH setup in the display fileDaniel Lezcano
The SIGWINCH signal handler calls a display function. For this we exported the handler in powerdebug.c. That does not make sense, let's move the signal setup in display.c directly. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-19Reduce the default refresh rateDaniel Lezcano
Currently the default refresh rate is 10 secs which is tooo long for data inspection. Let's reduce it to 1 sec. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-19Fix window refresh.Daniel Lezcano
The window refresh does not work at all. When the mainloop exits, nothing is done to refresh the current window. Fix this by sending to ourself a SIGWINCH signal, so the display engine will automatically catch the signal and refresh the current window. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-19Remove the selectedwindow options.Daniel Lezcano
There is no logic behind the default window selection. The last option parsed set the default window. Instead of having a specific boolean set, use the first bit found in the flags for selecting the the windows. eg. powerdebug -s -g => flags = SENSOR_OPTION | GPIO_OPTION; => flags = 0x2 | 0x8 = 0x0a => flags = b01010000 => fsl(flags) = 2 => default window = 1 << fsl(flags) - 1 => default window = 1 << 2 - 1 => default window = 1 << 1 => default window = 2 = SENSOR_OPTION Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Pass options to init functions.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Consolidate the headers into a single one.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Fix license. Linaro switched years ago to GPL.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Prevent to init a subsystem if it is not selected.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Fix compilation warnings.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-02-18Change options to flag approach.Daniel Lezcano
That has the benefit to simplify the code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2015-02-20Make sure powerdebug builds when we build systemimageVishal Bhoj
Signed-off-by: Vishal Bhoj <vishal.bhoj@hackbox.linaro.org>
2014-07-02gpio: fix resource leaksMeraj
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-06-19version 0.7.3powerdebug-0.7.3Sanjay Singh Rawat
- gpio: export free gpios to user - fix minor errors and warnings - display error on module window Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-06-19gpio: expose free gpios to userSanjay Singh Rawat
- GPIOs in the SoC will be free/used state, this patch make free gpios accessible to the user by exporting them. - bug 1229658 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-27fix minor errors and warningsSanjay Singh Rawat
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-26display error on module windowSanjay Singh Rawat
- Currently errors are displayed on stdout. This patch puts the error on subscreens also. - bug 1298171 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-16version 0.7.2powerdebug-0.7.2Sanjay Singh Rawat
gpio: add function to export gpios to user readme update Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-16gpio: add function to export gpiosSanjay Singh Rawat
Many platforms don't have gpio signals available to userspace in gpio class. This function adds support to export gpios. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-04-16readme: update prerequisitesSanjay Singh Rawat
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-09-18version 0.7.1powerdebug-0.7.1Shaojie Sun
fixed error shown clock rates. fixed no refresh of regulator and sensor values after "R" key pressed. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-09-18Read gpio value after gpio direction changed.Shaojie Sun
When gpio direction was changed from IN to OUT though sysfs. gpio value would changed to zero. So after gpio direction changed, we must read gpio value again. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-21The clock rates that are reported are incorrectShaojie Sun
1. check clock rate is reported by hexadecimal or decimal. 2. clock rate is reported with interger instead of radix point, for example 1.1GHz must be shown in 1100MHz. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-21modify clock rate from int to unsigned int.Shaojie Sun
When clock is large than 2GHz, clock rate will overflow for using int type. So change clock rate type to unsigned int. Then clock rate can reach 4GHz. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-20Pressing "R" to refresh does not update regulator and sensor valuesShaojie Sun
Fix this bug, and read regulator and sensor datas again when "R" key pressed. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-14version 0.7.0powerdebug-0.7.0Shaojie Sun
add gpio modification function. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-14Merge branch 'debian'Shaojie Sun
2013-08-08gpio: add modify gpio function in powerdebug tool.Shaojie Sun
For power consumption test, we can change gpio direction and value and check that power consumption is falled or not. use 'D' key to change gpio direction. And when gpio direction is "out", use 'V' key to change gpio value. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-08gpio: show gpio direction and egde in string.Shaojie Sun
In gpio sysfs, direction and egde is shown in string. dierction value is "in" or "out". And egde value is "none", "falling", "rising" or "both". So string must be shown also in powerdebug tool. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-07-22Version 0.6.4Sanjay Singh Rawat
- support for detecting multiple key values which varies for vendors. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22Version 0.6.3Sanjay Singh Rawat
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/1014667 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/827828 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22version 0.6.4powerdebug-0.6.4linaro-2013-07-1Sanjay Singh Rawat
support multiple possible values of ENTER key Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22add "case '\n'" for ENTER key input.Shaojie Sun
Because in some keyboard ENTER key value is '\n', so we must add this value for ENTER key triggled. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-04-17version 0.6.3powerdebug-0.6.3Sanjay Singh Rawat
- hande winch signal - report errors with proper message Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-17display proper error messageSanjay Singh Rawat
- bug : https://bugs.launchpad.net/linaro-powerdebug/+bug/1014667 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-17handle winch signalSanjay Singh Rawat
- handle winch to display window properly - bug: https://bugs.launchpad.net/linaro-powerdebug/+bug/827828 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-02-25Version 0.6.2Sanjay Singh Rawat
- include gpio debug module for android - fix compliation issue and set env variables needed for android Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18Version 0.6.2Sanjay Singh Rawat
- added support for common clock framework - added regulator related information Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18documentation: add regulator related informationSanjay Singh Rawat
Add information about the regulator state and status field. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18clock: support common clock frameworkSanjay Singh Rawat
In common clock framework (merged in 3.8-rc1) the directory and attributes are changed, adapt to the new clock entries in debugfs. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>