[PATCH V2 idlestat 09/12] Improve the output

2014-08-02 Thread Daniel Lezcano
The output is now in the form of: | P-state | min| max| avg| total | hits | | cpu0 |

[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/idlestat.

[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 04/12] Add 'patches' directory to the ignored list of files in .gitignore

2014-08-02 Thread Daniel Lezcano
The quilt tool is still widely used in conjunction with git, it needs a specific directory, by convention 'patches' to store the patches for the serie. Add this directory in the .gitignore file, so we are no longer annoyed by this directory when we check the status of git reporting it as an untrac

[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
From: Patrick Bellasi To properly identify the initial PState of each CPU, the idlestat_wake_all function is used to force an idle state exit on all CPUs by pinning idlestat on each CPUs. However, this routine forgets to recover the original mask at the end of the pinning process. This patch sol

[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..fc

[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 05/12] Add incremental verbose option

2014-08-02 Thread Daniel Lezcano
This patch adds the '-v' option in the command line. The level of verbosity is choosen by the number of time the -v occurs. no -v option : verbosity 0 -v : verbosity 1 -vv : verbosity 2 -vvv : verbosity 3 etc ... Note this option is not yet used in the code. Signed-of

[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(-) diff --g

[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 del