idlestat: possible bug?

2014-06-02 Thread Mohammad Merajul Islam Molla
Hi I was trying to run idlestat and with the below command output is - # sudo ./idlestat -o /tmp/myoutput fopen: No such file or directory I looked into the source and it looks like its not entering in the if condition in main - 1212 /* Acquisition time specified means we will get the t

Re: idlestat: possible bug?

2014-06-02 Thread Amit Kucheria
Hi Mohammad, Yes, I found and fixed that bug in my local tree. Will push it out later today. In the meanwhile, please use the -t option (it is compulsory) to take traces on the local machine. Regards, Amit On Mon, Jun 2, 2014 at 2:03 PM, Mohammad Merajul Islam Molla wrote: > Hi > > I was tryin

[PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Sanjay 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 --- gpio.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/gpio.c b/gpio.c index 4a

Re: [PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Mohammad Merajul Islam Molla
Hello Sanjay, One point - should powerdebug unexport these free gpios when it exits? Otherwise, all the entries will remain in /sys/class/gpio/* and /sys/kernel/debug/gpio file until next reboot which user may not want. -- Thanks, - Meraj On Mon, Jun 2, 2014 at 2:46 PM, Sanjay Singh Rawat wro

Re: [PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Sanjay Singh Rawat
On Monday 02 June 2014 02:52 PM, Mohammad Merajul Islam Molla wrote: Hello Sanjay, One point - should powerdebug unexport these free gpios when it exits? Otherwise, all the entries will remain in /sys/class/gpio/* and /sys/kernel/debug/gpio file until next reboot which user may not want. I wa

Re: [URGENT] Perf report shared objects showing unknown on ARM

2014-06-02 Thread Prankul Garg
Jean Pihet writes: > > ./perf record -e kmem:kmalloc cal > > [ perf record: Woken up 1 times to write data ] > > [ perf record: Captured and wrote 0.009 MB perf.data (~381 samples) ] > > > > ./perf report > > # Overhead Command Shared Object Symbol > > # .

[idlestat 5/6] Introduce --trace and --import mode

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria --trace will create a local trace and use that for the report --import will import an existing trace Signed-off-by: Amit Kucheria --- README | 10 -- idlestat.c | 36 +++- 2 files changed, 35 insertions(+), 11 deletions(-) diff -

[idlestat 3/6] kick the dump option off to use -z and release -m for later

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria Signed-off-by: Amit Kucheria --- idlestat.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/idlestat.c b/idlestat.c index 998f62d..233d554 100644 --- a/idlestat.c +++ b/idlestat.c @@ -948,7 +948,7 @@ struct cpuidle_cstates *physical_cluster_d

[idlestat 6/6] Lots of changes related to usage, bump the version to 0.3

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria Signed-off-by: Amit Kucheria --- idlestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index a5619a9..787d7b0 100644 --- a/idlestat.c +++ b/idlestat.c @@ -46,7 +46,7 @@ #include "list.h" #include "topology.h" -#define IDLE

[idlestat 4/6] -o stands for output file when idlestat can take an input file as well

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria idlestat can take a pre-created tracefile as input or create one itself. The -o option is confusing for an input file. Change it to -f in preparation for a new option to signify what the file name is to be used for. Signed-off-by: Amit Kucheria --- README | 4 ++-- idl

[idlestat 2/6] Print more details when fopen fails

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria Useful for tracking down why the following command fails: sudo ./idlestat -o /tmp/newfile where, newfile doesn't already exist Signed-off-by: Amit Kucheria --- idlestat.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/idlestat.c b/idlestat.

[idlestat 1/6] Use the correct version in the log file

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria Signed-off-by: Amit Kucheria --- idlestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idlestat.c b/idlestat.c index 9228618..9d88ee9 100644 --- a/idlestat.c +++ b/idlestat.c @@ -1085,7 +1085,7 @@ static int idlestat_store(const char *path)

[idlestat 0/6] More cleanups

2014-06-02 Thread Amit Kucheria
From: Amit Kucheria More cleanups to the command-line options to make idlestat easier to use and separate the two modes: tracing and reporting. Regards, Amit Amit Kucheria (6): Use the correct version in the log file Print more details when fopen fails kick the dump option off to use -z a