u-boot and dnw

2013-07-17 Thread Daniel Lezcano
Hi, I am using the latest mainstream u-boot but the dnw command is not there. Is there an equivalent to download the kernel from USB (except sending the file through the console) ? Thanks -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: <

Re: Beaglebone Black Core temperature

2013-10-01 Thread Daniel Lezcano
On 10/01/2013 03:50 PM, Sanjay Singh Rawat wrote: On Tuesday 01 October 2013 06:45 PM, Gaurang Shastri wrote: Hi, Do you mean to say something like lm-sensor kind of utility?? May be from this package you will get to know what you want :-) //Gaurang Shastri On Tue, Oct 1, 2013 at 5:32 PM, Da

Re: [tool recommendation] tmate terminal sharing

2013-10-17 Thread Daniel Lezcano
On 10/17/2013 03:09 AM, Christoffer Dall wrote: Hi all, [apologies in advance for the spam nature of this message] I have been using a tool for remote collaboration and problem solving that I find perfect in the context of remote collaboration. It allows you to very easily share a terminal ses

arndale ethernet not working on u-boot

2013-11-08 Thread Daniel Lezcano
Hi all, I have an arndale and I am trying to have the ethernet working in u-boot but without success. (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 0 E

Re: arndale ethernet not working on u-boot

2013-11-08 Thread Daniel Lezcano
: arndale ethernet not working on u-boot On 8 November 2013 13:44, Daniel Lezcano wrote: Hi all, I have an arndale and I am trying to have the ethernet working in u-boot but without success. (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for

[GIT PULL] idlestat: some fixes on error path

2014-02-18 Thread Daniel Lezcano
Hi Zoran, Colin King sent me some patches to fixup memory leaks and some nits in the error code path. Please, pull these changes in your tree. The following changes since commit da6a8c94a8f8124711db0ae84a3ef4e0e186b388: Fixing improperly initialized cstate_max per-CPU. (2014-01-29 15:47:

[PATCH 1/6] Write open failure message to stderr

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King Error message should be written to stderr rather than the failed to open file. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index 3abfaaf..fce6112

[PATCH 3/6] Fix memory leak, result is being leaked on a realloc failure

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King A realloc failure leaks result on the error return path. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |1 + 1 file changed, 1 insertion(+) diff --git a/idlestat.c b/idlestat.c index 41ed3ab..739f6dc 100644 --- a/idlestat.c +++ b

[PATCH 2/6] Free memory on realloc failure.

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King Fix a common coding error where realloc fails and the original allocated data is not free'd. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/idlesta

[PATCH 5/6] Fix file and memory resource leak on error exit in idlestat_load

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King The error returns in idlestat_load fail to close an open file and free allocated memory on the heap. This patch addresses this. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions

[PATCH 6/6] Use the correct format specifier for size_t type

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index 0961463..3f6076e 100644 --- a/idlestat.c +++ b/idlestat.c @@ -447,7 +447,7 @@ static struct

[PATCH 4/6] check s_cpu rather than s_core on memory allocation

2014-02-18 Thread &quot;Daniel Lezcano
From: Colin Ian King s_cpu is not being checked for a memory allocation failure, instead s_core is being checked. Fix this cut-n-paste error. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- topology.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 2/6] Free memory on realloc failure.

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King Fix a common coding error where realloc fails and the original allocated data is not free'd. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/idlesta

[PATCH 4/6] check s_cpu rather than s_core on memory allocation

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King s_cpu is not being checked for a memory allocation failure, instead s_core is being checked. Fix this cut-n-paste error. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- topology.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 6/6] Use the correct format specifier for size_t type

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index 0961463..3f6076e 100644 --- a/idlestat.c +++ b/idlestat.c @@ -447,7 +447,7 @@ static struct

[PATCH 1/6] Write open failure message to stderr

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King Error message should be written to stderr rather than the failed to open file. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index 3abfaaf..fce6112

[PATCH 5/6] Fix file and memory resource leak on error exit in idlestat_load

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King The error returns in idlestat_load fail to close an open file and free allocated memory on the heap. This patch addresses this. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions

[PATCH 3/6] Fix memory leak, result is being leaked on a realloc failure

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King A realloc failure leaks result on the error return path. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c |1 + 1 file changed, 1 insertion(+) diff --git a/idlestat.c b/idlestat.c index 41ed3ab..739f6dc 100644 --- a/idlestat.c +++ b

[PATCH] idlestat: run a command with idlestat

2014-03-28 Thread daniel . lezcano
From: Daniel Lezcano Add the support to run a command line with idlestat: ./idlestat -o out.dat -- /bin/sleep 3 Without the '-t' option, idlestat will blindly use the current buffer size which may not fit with the 'command' duration and lead to a buffer overflow. With t

[PATCH] idlestat: add timeout for the exec'ed command

2014-03-31 Thread daniel . lezcano
From: Daniel Lezcano Add a timeout for the specified command. The timeout option is shared with the -t option. When no command line has to be executed, the timeout becomes the duration of the acquisition, otherwise the command is executed during an amount of time and terminated if the timeout

[PATCH] Produce a situation where L1 cache flush missing vs cpu power down hangs the system

2014-04-08 Thread Daniel Lezcano
issue everytime. Signed-off-by: Daniel Lezcano --- cpuidle/cpuidle-l1.c | 72 cpuidle/cpuidle_05.sh | 42 cpuidle/cpuidle_05.txt |1 + 3 files changed, 115 insertions(+) create mode 100644 cpuidle/cpuidle-l1

Re: [PATCH] Produce a situation where L1 cache flush missing vs cpu power down hangs the system

2014-04-08 Thread Daniel Lezcano
On 04/08/2014 01:07 PM, Amit Kucheria wrote: Hi Daniel, Have you noticed this on any platform yet with this test? I have noticed a very very rare hang on the exynos4 board with this test and the dual cpu support but it is not reproducible enough to check if the cache flush fixes it or not (o

Re: [PATCH] Produce a situation where L1 cache flush missing vs cpu power down hangs the system

2014-04-09 Thread Daniel Lezcano
a way to spot the issue, I will be happy to test it. Thanks -- Daniel On 8 April 2014 17:07, Daniel Lezcano mailto:daniel.lezc...@linaro.org>> wrote: On 04/08/2014 01:07 PM, Amit Kucheria wrote: Hi Daniel, Have you noticed this on any platform yet with this test?

Re: [PATCH] Produce a situation where L1 cache flush missing vs cpu power down hangs the system

2014-04-09 Thread Daniel Lezcano
. The only way to properly handle this is to call always v7_exit_coherency_flush before powering down the cpu. On 9 April 2014 13:24, Daniel Lezcano mailto:daniel.lezc...@linaro.org>> wrote: Hi Sandeep, On 04/09/2014 07:15 AM, Sandeep Tripathy wrote: Hi

Arndale 5250 crash when unplugging CPU1

2014-04-12 Thread Daniel Lezcano
Hi all, I used the image: arndale-saucy_server_20140222-611.img I boots well but when I unplug CPU1, the kernel crashes. It seems related to the AFTR state (an idle state of cpuidle) and the u-boot version which is 2013-rc1. It seems this issue does not happen with a more recent u-b

Re: Arndale 5250 crash when unplugging CPU1

2014-04-13 Thread Daniel Lezcano
your kernel config if THUMB2_KERNEL set the issue is applicable to you. Thanks, Victor On 12 April 2014 14:51, Daniel Lezcano wrote: Hi all, I used the image: arndale-saucy_server_20140222-611.img I boots well but when I unplug CPU1, the kernel crashes. It seems related to the AFTR

Re: Arndale 5250 crash when unplugging CPU1

2014-04-14 Thread Daniel Lezcano
tile says BE image the issue is applicable to LE thumb2 issue. Check your kernel config if THUMB2_KERNEL set the issue is applicable to you. Thanks, Victor On 12 April 2014 14:51, Daniel Lezcano wrote: Hi all, I used the image: arndale-saucy_server_20140222-611.img I boots well but

Re: Arndale 5250 crash when unplugging CPU1

2014-04-14 Thread Daniel Lezcano
On 12 April 2014 14:51, Daniel Lezcano wrote: Hi all, I used the image: arndale-saucy_server_20140222-611.img I boots well but when I unplug CPU1, the kernel crashes. It seems related to the AFTR state (an idle state of cpuidle) and the u-boot version which is 2013-rc1. It seems

Re: [PATCH PMQA] cpuidle_killer: allocate per cpu process array dynamically

2014-05-02 Thread Daniel Lezcano
On 04/30/2014 10:34 AM, Mohammad Merajul Islam Molla wrote: Hello Sanjay, As far I know, if option argument is 0, the parent will wait for specified child pid to terminate, its not for immediate return as in case of WNOHANG. This is probably the intended use of the code (author will be able to co

Re: [PATCH 1/9] 'verbose' option isn't used anywhere, remove it

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- idlestat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/idlestat.c b/idlestat.c index 3b4bd17..27000aa 100644 --- a/idlestat.c +++ b/idlestat.c @@ -960,7

Re: [PATCH 2/9] Sort options in alphabetic order of the single-char options

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg&g

Re: [PATCH 3/9] Adding missing 'duration' option in long_options

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: commit 1e80e5eaf71b606405cbdf6751aa7446533d8b3a (idlestat: get ride of trace-cmd) seems to have missed adding this Signed-off-by: Amit Kucheria Good catch. Acked-by: Daniel Lezcano -- <http://www.linaro.org/> Linaro.org │ Open

Re: [PATCH 4/9] Specify which options need arguments and which don't to help getopt_long()

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/lin

Re: [PATCH 5/9] Stick to -d for debug according to widely used convention

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Switch the dump option (which might be used infrequently) to use -m Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- idlestat.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/idlestat.c b

Re: [PATCH 6/9] Make getopt_long handling more robust

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Adding ':' as first character of optstring to getopt_long allows separating error message for invalid option and invalid option arguments Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- idlestat.c | 15 ++

Re: [PATCH 7/9] struct option long_options doesn't need to be global

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Change the flag field to NULL while we're at it Signed-off-by: Amit Kucheria --- idlestat.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/idlestat.c b/idlestat.c index 96fc1f2..c4a405a 100644 --- a/idl

Re: [PATCH 9/9] idledebug? When did we ever call it that?

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Signed-off-by: Amit Kucheria Yep, powerdebug => idledebug => idlestat :) Legacy copy/paste from powerdebug. Acked-by: Daniel Lezcano --- idlestat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idlest

Re: [PATCH 8/9] improve help - show all available options

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- README | 7 +-- idlestat.c | 11 --- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README b/README index 3a8eb49..24485c5 100644 --- a/README +++ b

Re: idlestat: execute() function problems?

2014-06-03 Thread Daniel Lezcano
On 06/03/2014 11:53 AM, Mohammad Merajul Islam Molla wrote: Hello, I noticed some odd behaviors with idlestate.c/execute() function. 1. I wrote a sample program hello.c with infinite loop - int main() { while(1); } #sudo ../idlestat/idlestat -o /tmp/myoutput ../temp/

Re: [idlestat 0/6] More cleanups

2014-06-03 Thread Daniel Lezcano
+++--- 2 files changed, 54 insertions(+), 27 deletions(-) For the whole series: Acked-by: Daniel Lezcano -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pag

Re: [PATCH IDLESTAT] fix execute() function

2014-06-05 Thread Daniel Lezcano
On 06/04/2014 08:00 AM, Mohammad Merajul Islam Molla wrote: Patch to fix the below two issues - 1. Fix the part where parent waits to fetch child status. In case SIGALRM is received, fetch new status after killing child so that subsequent check for termination status passes. 2. In case of normal

[PATCH idlestat 03/12] Remove the debug and iteration options

2014-07-31 Thread Daniel Lezcano
This function are pointless, remove them. Signed-off-by: Daniel Lezcano --- idlestat.c | 16 ++-- idlestat.h |1 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/idlestat.c b/idlestat.c index 30860db..abbb787 100644 --- a/idlestat.c +++ b/idlestat.c

[PATCH idlestat 04/12] Add 'patches' directory to the ignored list of files in .gitignore

2014-07-31 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 968abde..4ee98b8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ *.orig *~ \#*# +patches # # Top-level files -- 1.7.9.5

[PATCH idlestat 06/12] Remove dump and iterations options

2014-07-31 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- idlestat.c | 72 ++-- idlestat.h |2 -- topology.c | 12 +- topology.h |5 ++--- 4 files changed, 19 insertions(+), 72 deletions(-) diff --git a/idlestat.c b/idlestat.c index 8138e35

[PATCH idlestat 11/12] Split the display to show the wakeup separetely

2014-07-31 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- idlestat.c | 102 ++-- topology.c | 10 +++--- 2 files changed, 70 insertions(+), 42 deletions(-) diff --git a/idlestat.c b/idlestat.c index da1e14b..24248b2 100644 --- a/idlestat.c +++ b/idlestat.c

[PATCH idlestat 08/12] Don't double check with the estimate function

2014-07-31 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- idlestat.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/idlestat.c b/idlestat.c index b084b5d..e5dde8c 100644 --- a/idlestat.c +++ b/idlestat.c @@ -72,15 +72,7 @@ static int display_cstates(struct cpuidle_cstates *cstates

[PATCH idlestat 02/12] Fix some lines to comply with 80 chars length

2014-07-31 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- idlestat.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/idlestat.c b/idlestat.c index 2a0c549..30860db 100644 --- a/idlestat.c +++ b/idlestat.c @@ -1162,7 +1162,8 @@ static int idlestat_file_for_each_line(const char *path

[PATCH idlestat 12/12] Report even if the application returned an error code

2014-07-31 Thread Daniel Lezcano
In case the application is killed by the timeout and it handles the SIGTERM, it may return an error, thus idlestat won't display the result. Ignore the return code of the application. Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH idlestat 09/12] Improve the output

2014-07-31 Thread Daniel Lezcano
| 8.00ms |10 | 0 | 0 | | C7-IVB | 0us | 98.04ms | 6.92ms | 26.99s | 3899 | 0 | 0 | Signed-off-by: Daniel Lezcano --- idlestat.c | 209

[PATCH idlestat 01/12] Fix CPU affinity mask

2014-07-31 Thread Daniel Lezcano
solve this issue, by properly recovering the original CPU affinity mask. Moreover, it avoids to wake up CPUs that will not be used to run the workload. Signed-off-by: Patrick Bellasi Signed-off-by: Daniel Lezcano --- idlestat.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH idlestat 10/12] Add option to choose the data to be displayed

2014-07-31 Thread Daniel Lezcano
Add the options to select c-states, p-states and wakeup output. --idle, -c : show c-states --frequency, -p : show p-states --wakeup, -w: show wakeup sources Signed-off-by: Daniel Lezcano --- idlestat.c | 33 ++--- idlestat.h |4 2 files changed

[PATCH idlestat 07/12] Split display function

2014-07-31 Thread Daniel Lezcano
Make some code separations to prepare the code for cleanup. Signed-off-by: Daniel Lezcano --- idlestat.c | 84 ++-- 1 file changed, 54 insertions(+), 30 deletions(-) diff --git a/idlestat.c b/idlestat.c index e4dbb89..b084b5d 100644

[PATCH idlestat 05/12] Add incremental verbose option

2014-07-31 Thread Daniel Lezcano
e. Signed-off-by: Daniel Lezcano --- idlestat.c |6 +- idlestat.h |1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index abbb787..8138e35 100644 --- a/idlestat.c +++ b/idlestat.c @@ -1070,6 +1070,7 @@ int getoptions(int argc, char *argv

[PATCH V2 idlestat 06/12] Remove dump and iterations options

2014-08-02 Thread Daniel Lezcano
These options are pointless and not interesting. Removing them. Signed-off-by: Daniel Lezcano --- idlestat.c | 72 ++-- idlestat.h |2 -- topology.c | 12 +- topology.h |5 ++--- 4 files changed, 19 insertions(+), 72

[PATCH V2 idlestat 05/12] Add incremental verbose option

2014-08-02 Thread Daniel Lezcano
e. Signed-off-by: Daniel Lezcano --- idlestat.c |6 +- idlestat.h |1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index abbb787..8138e35 100644 --- a/idlestat.c +++ b/idlestat.c @@ -1070,6 +1070,7 @@ int getoptions(int argc, char *argv

[PATCH V2 idlestat 12/12] Report even if the application returned an error code

2014-08-02 Thread Daniel Lezcano
In case the application is killed by the timeout and it handles the SIGTERM, it may return an error, thus idlestat won't display the result. Ignore the return code of the application. Signed-off-by: Daniel Lezcano --- idlestat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH V2 idlestat 11/12] Split the display to show the wakeup separetely

2014-08-02 Thread Daniel Lezcano
The display functions are tied together in the code. Split this, so we can choose each subsystem to display separately. Signed-off-by: Daniel Lezcano --- idlestat.c | 102 ++-- topology.c | 11 --- 2 files changed, 71 insertions

[PATCH V2 idlestat 01/12] Fix CPU affinity mask

2014-08-02 Thread Daniel Lezcano
solve this issue, by properly recovering the original CPU affinity mask. Moreover, it avoids to wake up CPUs that will not be used to run the workload. Signed-off-by: Patrick Bellasi Signed-off-by: Daniel Lezcano --- idlestat.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH V2 idlestat 08/12] Don't double check with the estimate function

2014-08-02 Thread Daniel Lezcano
We want the output to be always the same even if the prediction accuracy is not possible because we are working on an old kernel. Signed-off-by: Daniel Lezcano --- idlestat.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/idlestat.c b/idlestat.c index 83655bd

[PATCH V2 idlestat 10/12] Add option to choose the data to be displayed

2014-08-02 Thread Daniel Lezcano
Add the options to select c-states, p-states and wakeup output. --idle, -c : show c-states --frequency, -p : show p-states --wakeup, -w: show wakeup sources Signed-off-by: Daniel Lezcano --- README |7 ++- idlestat.c | 35 +++ idlestat.h

[PATCH V2 idlestat 04/12] Add 'patches' directory to the ignored list of files in .gitignore

2014-08-02 Thread Daniel Lezcano
g it as an untracked file. Signed-off-by: Daniel Lezcano --- .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 968abde..4ee98b8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ *.orig *~ \#*# +patches # # Top-level files -

[PATCH V2 idlestat 07/12] Split display function

2014-08-02 Thread Daniel Lezcano
Make some code separations to prepare the code for cleanup. Signed-off-by: Daniel Lezcano --- idlestat.c | 84 ++-- 1 file changed, 54 insertions(+), 30 deletions(-) diff --git a/idlestat.c b/idlestat.c index 3e5b4bc..83655bd 100644

[PATCH V2 idlestat 03/12] Remove the debug option

2014-08-02 Thread Daniel Lezcano
This function is pointless. It was added initially for debugging purpose, remove it. Signed-off-by: Daniel Lezcano --- idlestat.c | 16 ++-- idlestat.h |1 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/idlestat.c b/idlestat.c index 30860db..abbb787 100644

[PATCH V2 idlestat 09/12] Improve the output

2014-08-02 Thread Daniel Lezcano
| 8.00ms |10 | 0 | 0 | | C7-IVB | 0us | 98.04ms | 6.92ms | 26.99s | 3899 | 0 | 0 | Signed-off-by: Daniel Lezcano --- idlestat.c | 209

[PATCH V2 idlestat 02/12] Fix some lines to comply with 80 chars length

2014-08-02 Thread Daniel Lezcano
Fix lines exceeding 80 chars, so fulfill the conventional coding style of the opensource projects. Signed-off-by: Daniel Lezcano --- idlestat.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/idlestat.c b/idlestat.c index 2a0c549..30860db 100644 --- a

[PATCH] Check the terminal window size is greater or equal to 80 columns

2014-08-05 Thread Daniel Lezcano
All the output assumes the terminal width is 80 cols min, check the terminal size in order to detect a smaller terminal and prevent to have a nested output. Signed-off-by: Daniel Lezcano --- idlestat.c | 24 1 file changed, 24 insertions(+) diff --git a/idlestat.c b

Re: [GIT PULL] Create a workload generator tool

2014-08-08 Thread Daniel Lezcano
On 08/08/2014 07:27 AM, Amit Kucheria wrote: [ ... ] We also said that the name of the tool could be changed, any opinions on this? Something like workload-gen or wload-gen ? IMHO, the name change is just a nice to have and not critical to the success of this project. Workload Generator is

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

2014-08-20 Thread Daniel Lezcano
On 08/19/2014 09:22 AM, pi-cheng.chen wrote: 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

Re: [PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread Daniel Lezcano
On 09/10/2014 09:33 AM, pi-cheng.chen wrote: 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 inform

Re: [PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread Daniel Lezcano
On 09/10/2014 03:08 PM, Pi-Cheng Chen wrote: On 10 September 2014 17:15, Daniel Lezcano wrote: On 09/10/2014 09:33 AM, pi-cheng.chen wrote: When using intel_pstate driver, "scaling_available_freqs" attr is not exported to sysfs. It causes assertion of idlestat due to memory

Re: [PATCH v3] idlestat: Allocate struct cpufreq_pstate dynamically

2014-10-21 Thread Daniel Lezcano
On 10/04/2014 06:33 AM, pi-cheng.chen wrote: 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

Re: [PATCH v3] idlestat: Allocate struct cpufreq_pstate dynamically

2014-10-21 Thread Daniel Lezcano
On 10/21/2014 03:47 PM, Tuukka Tikkanen wrote: On Tue, Oct 21, 2014 at 3:42 PM, Daniel Lezcano wrote: On 10/04/2014 06:33 AM, pi-cheng.chen wrote: Initialize struct cpufreq_pstates with initial P-state of CPUs and allocate struct cpufreq_pstate dynamically when parsing trace file to solve

[PATCH] arm: fix Kconfig system choice list

2010-09-15 Thread Daniel Lezcano
The item name is too long and bugs the choice list. The items in the list are not displayed correctly. This patch moves the list of supported system in the help instead of the bool choice. Signed-off-by: Daniel Lezcano --- arch/arm/Kconfig | 10 ++ 1 files changed, 6 insertions(+), 4

Re: [PATCH] arm: fix Kconfig system choice list

2010-09-15 Thread Daniel Lezcano
On 09/15/2010 02:14 PM, Nicolas Pitre wrote: > On Wed, 15 Sep 2010, Daniel Lezcano wrote: > > >> The item name is too long and bugs the choice list. The items in the >> list are not displayed correctly. >> >> This patch moves the list of supported system i

Re: [PATCH] arm: fix Kconfig system choice list

2010-09-15 Thread Daniel Lezcano
On 09/15/2010 02:14 PM, Nicolas Pitre wrote: > On Wed, 15 Sep 2010, Daniel Lezcano wrote: > > >> The item name is too long and bugs the choice list. The items in the >> list are not displayed correctly. >> >> This patch moves the list of supported system i

beagleXM, hwpacks : a newbie question

2011-03-17 Thread Daniel Lezcano
Hi all, I am trying to get the network to work with qemu-system-arm -M beaglexm but without success. I followed the instructions at https://wiki.linaro.org/Releases/MilestoneBuilds and booted a virtual machine for a beagle XM. But there is not network interface. After googling it appears t

Re: beagleXM, hwpacks : a newbie question

2011-03-17 Thread Daniel Lezcano
On 03/17/2011 05:46 PM, Matt Waddel wrote: Hi Daniel, On 03/17/2011 10:30 AM, Daniel Lezcano wrote: Hi all, I am trying to get the network to work with qemu-system-arm -M beaglexm but without success. I followed the instructions at https://wiki.linaro.org/Releases/MilestoneBuilds and booted

Re: beagleXM, hwpacks : a newbie question

2011-03-17 Thread Daniel Lezcano
On 03/17/2011 08:42 PM, Michael Hope wrote: On Fri, Mar 18, 2011 at 6:00 AM, Daniel Lezcano wrote: On 03/17/2011 05:46 PM, Matt Waddel wrote: Hi Daniel, On 03/17/2011 10:30 AM, Daniel Lezcano wrote: Hi all, I am trying to get the network to work with qemu-system-arm -M beaglexm but without

[powerdebug 04/14] check the return value of init_regulator_ds and fix prototype

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.c |3 ++- powerdebug.h |2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 44f1f02..f2d02c8 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -185,7 +185,8 @@ int main

[powerdebug 09/14] reduce scope and make win_names static

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- display.c|5 + powerdebug.c |5 - powerdebug.h |1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/display.c b/display.c index 5cdf78a..fbdce80 100644 --- a/display.c +++ b/display.c @@ -31,6 +31,11

[powerdebug 03/14] use an int instead of a double

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 3529459..44f1f02 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -125,7 +125,7 @@ int getoptions(int argc, char *argv

[powerdebug 02/14] save some bytes by allocating dynamically the string option

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 4c2400b..3529459 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -85,7 +85,7 @@ struct powerdebug_options

[powerdebug 05/14] encapsulate the mainloop code

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.c | 48 +--- 1 files changed, 29 insertions(+), 19 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index f2d02c8..12c0c56 100644 --- a/powerdebug.c +++ b/powerdebug.c

[powerdebug 08/14] Remove pointless declarations

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/powerdebug.h b/powerdebug.h index 5bf7084..f23bbba 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -36,9 +36,6 @@ extern int selectedwindow; extern

[powerdebug 11/14] move the 'dump' variable to the options structure

2011-03-22 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 2f3a77d..db19e16 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -18,7 +18,6 @@ #include #include

[powerdebug 01/14] encapsulate the options code

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Create a single structure for powerdebug options. Signed-off-by: Daniel Lezcano --- powerdebug.c | 175 +- 1 files changed, 99 insertions(+), 76 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 197f255

[powerdebug 06/14] encapsulate the keystroke callback

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- powerdebug.c | 161 +++--- 1 files changed, 86 insertions(+), 75 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 12c0c56..b9b1ac5 100644 --- a/powerdebug.c +++ b

[powerdebug 12/14] make 'selectedwindow' variable static

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- clocks.c |6 +++--- display.c|6 +++--- powerdebug.c | 50 ++ powerdebug.h | 10 -- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/clocks.c b

[powerdebug 10/14] make 'dump' variable static

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano Signed-off-by: Daniel Lezcano --- clocks.c | 142 +- clocks.h |1 - powerdebug.c |8 ++-- powerdebug.h |7 +-- 4 files changed, 78 insertions(+), 80 deletions(-) diff --git a/clocks.c b/clocks.c

[powerdebug 14/14] Add configure framework

2011-03-22 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- AUTHORS |1 + ChangeLog|1 + Makefile.am | 13 + NEWS |1 + autogen.sh |9 + configure.ac | 26 ++ 6 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 AUTHORS

[powerdebug 13/14] Remove Makefile

2011-03-22 Thread Daniel Lezcano
Remove the Makefile to put in place the next patch where it is generated Signed-off-by: Daniel Lezcano --- Makefile | 29 - 1 files changed, 0 insertions(+), 29 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644

[powerdebug 07/14] save some bytes by using the 'bool' type

2011-03-22 Thread Daniel Lezcano
From: Daniel Lezcano sizeof(int) : 4 sizeof(bool): 1 Signed-off-by: Daniel Lezcano --- clocks.h |1 - powerdebug.c | 50 ++ powerdebug.h |2 +- regulator.h |1 - 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a

Re: [powerdebug 01/14] encapsulate the options code

2011-03-23 Thread Daniel Lezcano
On 03/23/2011 12:37 PM, Amit Kucheria wrote: On Tue, Mar 22, 2011 at 1:40 PM, Daniel Lezcano wrote: From: Daniel Lezcano Create a single structure for powerdebug options. Signed-off-by: Daniel Lezcano Hi Daniel, Thanks for this work. Much appreciated. Your first patch doesn't

[powerdebug V2: 08/14] Remove pointless declarations

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/powerdebug.h b/powerdebug.h index 4a7c9b0..402145b 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -35,9 +35,6 @@ extern int selectedwindow; extern int numregulators

[powerdebug V2: 13/14] Remove Makefile

2011-03-23 Thread Daniel Lezcano
Remove the Makefile to put in place the next patch where it is generated Signed-off-by: Daniel Lezcano --- Makefile | 26 -- 1 files changed, 0 insertions(+), 26 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index

[powerdebug V2: 11/14] move the 'dump' variable to the options structure

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 7fa7c82..2de4bd4 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -17,7 +17,6 @@ #include #include

[powerdebug V2: 05/14] encapsulate the mainloop code

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.c | 48 +--- 1 files changed, 29 insertions(+), 19 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 8d74538..71efcd1 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -162,32 +162,17 @@ int

[powerdebug V2: 02/14] save some bytes by allocating dynamically the string option

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index efdb1a2..05c0e34 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -85,7 +85,7 @@ struct powerdebug_options { int sensors

[powerdebug V2: 14/14] Add configure framework

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- AUTHORS |1 + ChangeLog|1 + Makefile.am | 13 + NEWS |1 + autogen.sh | 10 ++ configure.ac | 26 ++ 6 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 AUTHORS

[powerdebug V2: 03/14] use an int instead of a double

2011-03-23 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- powerdebug.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/powerdebug.c b/powerdebug.c index 05c0e34..7de6ddd 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -125,7 +125,7 @@ int getoptions(int argc, char *argv[], struct

<    1   2   3   4   5   6   7   8   >