The output is now in the form of:
| P-state | min| max| avg| total | hits |
| cpu0 |
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.
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
---
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
--
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
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(+),
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
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
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 |
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
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
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
12 matches
Mail list logo