Since mmaped pages will be accounted by the PSS, memtrack needs a way
to differentiate the total memory that hasn't been accounted for.
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
Signed-off-by: Greg Hackmann <ghackm...@google.com>
---
drivers/misc/memtrack.c
Since mmaped pages will be accounted by the PSS, memtrack needs a way
to differentiate the total memory that hasn't been accounted for.
Signed-off-by: Ruchi Kandoi
Signed-off-by: Greg Hackmann
---
drivers/misc/memtrack.c | 175 --
drivers/staging
Signed-off-by: Greg Hackmann <ghackm...@google.com>
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
drivers/dma-buf/dma-buf.c | 37 ++
drivers/staging/android/ion/ion.c | 14 +
drivers/staging/android/ion/ion
s intended for debugging memory leaks rather than
production use.
Signed-off-by: Greg Hackmann <ghackm...@google.com>
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
drivers/misc/Kconfig | 16 +++
drivers/misc/Makefile| 1 +
drivers/
Signed-off-by: Greg Hackmann
Signed-off-by: Ruchi Kandoi
---
drivers/dma-buf/dma-buf.c | 37 ++
drivers/staging/android/ion/ion.c | 14 +
drivers/staging/android/ion/ion_priv.h | 2 ++
include/linux/dma-buf.h| 5
s intended for debugging memory leaks rather than
production use.
Signed-off-by: Greg Hackmann
Signed-off-by: Ruchi Kandoi
---
drivers/misc/Kconfig | 16 +++
drivers/misc/Makefile| 1 +
drivers/misc/memtrack.c | 360 +++
fs/p
to the
child process instead of the parent.
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
drivers/misc/memtrack.c | 45 +++
drivers/staging/android/ion/ion.c | 45 +--
include/linux/memtrack.h
to the
child process instead of the parent.
Signed-off-by: Ruchi Kandoi
---
drivers/misc/memtrack.c | 45 +++
drivers/staging/android/ion/ion.c | 45 +--
include/linux/memtrack.h | 19 +++--
include
From: Greg Hackmann <ghackm...@google.com>
ION_IOC_TAG provides a userspace interface for tagging buffers with
their memtrack usage after allocation.
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
drivers/staging/android/ion/ion-ioctl.c | 17 +
drivers/sta
From: Greg Hackmann
ION_IOC_TAG provides a userspace interface for tagging buffers with
their memtrack usage after allocation.
Signed-off-by: Ruchi Kandoi
---
drivers/staging/android/ion/ion-ioctl.c | 17 +
drivers/staging/android/uapi/ion.h | 25
plementations.
Greg Hackmann (1):
drivers: staging: ion: add ION_IOC_TAG ioctl
Ruchi Kandoi (5):
fs: add installed and uninstalled file_operations
drivers: misc: add memtrack
dma-buf: add memtrack support
memtrack: Adds the accounting to keep track of all mmaped/unmapped
pages.
me
the responsible task_struct. These are low-level
APIs with only two in-tree callers, both adjusted in this patch.
Signed-off-by: Greg Hackmann <ghackm...@google.com>
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
drivers/android/binder.c | 4 ++--
fs/file.c
plementations.
Greg Hackmann (1):
drivers: staging: ion: add ION_IOC_TAG ioctl
Ruchi Kandoi (5):
fs: add installed and uninstalled file_operations
drivers: misc: add memtrack
dma-buf: add memtrack support
memtrack: Adds the accounting to keep track of all mmaped/unmapped
pages.
me
the responsible task_struct. These are low-level
APIs with only two in-tree callers, both adjusted in this patch.
Signed-off-by: Greg Hackmann
Signed-off-by: Ruchi Kandoi
---
drivers/android/binder.c | 4 ++--
fs/file.c| 38 +-
fs/open.c
This helps to keep track of real time while debugging using kernel logs.
Cc: John Stultz <john.stu...@linaro.org>
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
Changelog since v1:
- removed cross platform warnings.
kernel/time/timekeeping_debug.c | 2 ++
1 file changed,
This helps to keep track of real time while debugging using kernel logs.
Cc: John Stultz
Signed-off-by: Ruchi Kandoi
---
Changelog since v1:
- removed cross platform warnings.
kernel/time/timekeeping_debug.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/time/timekeeping_debug.c
This helps to keep track of real time while debugging using kernel logs.
Cc: John Stultz <john.stu...@linaro.org>
Signed-off-by: Ruchi Kandoi <kandoiru...@google.com>
---
kernel/time/timekeeping_debug.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/time/timekeepi
This helps to keep track of real time while debugging using kernel logs.
Cc: John Stultz
Signed-off-by: Ruchi Kandoi
---
kernel/time/timekeeping_debug.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/time/timekeeping_debug.c b/kernel/time/timekeeping_debug.c
index f6bd652
On Thu, May 21, 2015 at 7:34 AM, Daniel Lezcano
wrote:
> Hi Ruchi,
>
> On 05/15/2015 02:12 AM, Ruchi Kandoi wrote:
>>
>> These patches add a mechanism which will accurately caculate the CPU power
>> used by all the processes in the system. In order to account f
On Thu, May 21, 2015 at 7:34 AM, Daniel Lezcano
daniel.lezc...@linaro.org wrote:
Hi Ruchi,
On 05/15/2015 02:12 AM, Ruchi Kandoi wrote:
These patches add a mechanism which will accurately caculate the CPU power
used by all the processes in the system. In order to account for the power
used
On Fri, May 15, 2015 at 9:07 AM, Peter Zijlstra wrote:
>
> On Thu, May 14, 2015 at 04:55:48PM -0700, Ruchi Kandoi wrote:
> > cpu_power has been added to keep track of amount of power each task is
> > consuming. cpu_power is updated whenever stime and utime are updated for
On Thu, May 14, 2015 at 11:34 PM, Heinrich Schuchardt
wrote:
>
> On 15.05.2015 02:12, Ruchi Kandoi wrote:
> > These patches add a mechanism which will accurately caculate the CPU power
> > used by all the processes in the system. In order to account for the power
> > u
On Thu, May 14, 2015 at 11:34 PM, Heinrich Schuchardt
xypron.g...@gmx.de wrote:
On 15.05.2015 02:12, Ruchi Kandoi wrote:
These patches add a mechanism which will accurately caculate the CPU power
used by all the processes in the system. In order to account for the power
used by all
On Fri, May 15, 2015 at 9:07 AM, Peter Zijlstra pet...@infradead.org wrote:
On Thu, May 14, 2015 at 04:55:48PM -0700, Ruchi Kandoi wrote:
cpu_power has been added to keep track of amount of power each task is
consuming. cpu_power is updated whenever stime and utime are updated for
a task
On Thu, May 14, 2015 at 7:48 PM, Viresh Kumar wrote:
> I am not replying for concept here, as sched maintainers are in a
> better position for that, but a nit below..
>
> On 14-05-15, 17:12, Ruchi Kandoi wrote:
>> Adds the sysfs file for userspace to initialize the active
On Thu, May 14, 2015 at 7:48 PM, Viresh Kumar viresh.ku...@linaro.org wrote:
I am not replying for concept here, as sched maintainers are in a
better position for that, but a nit below..
On 14-05-15, 17:12, Ruchi Kandoi wrote:
Adds the sysfs file for userspace to initialize the active current
Adds the sysfs file for userspace to initialize the active current
values for all the cores at each of the frequencies.
The format for storing the values is as follows:
echo "CPU:= =,CPU:
..." > /sys/devices/system/cpu/cpufreq/current_in_state
Signed-off-by: Ruchi Kandoi
---
dr
frequency.
Signed-off-by: Ruchi Kandoi
---
drivers/cpufreq/cpufreq_stats.c | 28
include/linux/cpufreq.h | 8
include/linux/sched.h | 2 ++
kernel/fork.c | 1 +
kernel/sched/cputime.c | 7 +++
5 files changed
he current numbers for each of the CPU core at each frequency. This will
be initialized during init time.
Ruchi Kandoi (2):
cpufreq_stats: Adds sysfs file
/sys/devices/system/cpu/cpufreq/current_in_state
sched: cpufreq: Adds a field cpu_power in the task_struct
drivers/cpufreq/cpufr
frequency.
Signed-off-by: Ruchi Kandoi
---
drivers/cpufreq/cpufreq_stats.c | 23 +++
include/linux/cpufreq.h | 8
include/linux/sched.h | 2 ++
kernel/fork.c | 1 +
kernel/sched/cputime.c | 7 +++
5 files changed, 41
Adds the sysfs file for userspace to initialize the active current
values for all the cores at each of the frequencies.
The format for storing the values is as follows:
echo "CPU:= =,CPU:
..." > /sys/devices/system/cpu/cpufreq/current_in_state
Signed-off-by: Ruchi Kandoi
---
dr
he current numbers for each of the CPU core at each frequency. This will
be initialized during init time.
Ruchi Kandoi (2):
cpufreq_stats: Adds sysfs file
/sys/devices/system/cpu/cpufreq/current_in_state
sched: cpufreq: Adds a field cpu_power in the task_struct
drivers/cpufreq/cpufr
-by: Ruchi Kandoi kandoiru...@google.com
---
drivers/cpufreq/cpufreq_stats.c | 163 +++-
1 file changed, 161 insertions(+), 2 deletions(-)
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index 5e370a3..6f0b562 100644
--- a/drivers/cpufreq
numbers for each of the CPU core at each frequency. This will
be initialized during init time.
Ruchi Kandoi (2):
cpufreq_stats: Adds sysfs file
/sys/devices/system/cpu/cpufreq/current_in_state
sched: cpufreq: Adds a field cpu_power in the task_struct
drivers/cpufreq/cpufreq_stats.c | 186
frequency.
Signed-off-by: Ruchi Kandoi kandoiru...@google.com
---
drivers/cpufreq/cpufreq_stats.c | 28
include/linux/cpufreq.h | 8
include/linux/sched.h | 2 ++
kernel/fork.c | 1 +
kernel/sched/cputime.c | 7
numbers for each of the CPU core at each frequency. This will
be initialized during init time.
Ruchi Kandoi (2):
cpufreq_stats: Adds sysfs file
/sys/devices/system/cpu/cpufreq/current_in_state
sched: cpufreq: Adds a field cpu_power in the task_struct
drivers/cpufreq/cpufreq_stats.c | 191
frequency.
Signed-off-by: Ruchi Kandoi kandoiru...@google.com
---
drivers/cpufreq/cpufreq_stats.c | 23 +++
include/linux/cpufreq.h | 8
include/linux/sched.h | 2 ++
kernel/fork.c | 1 +
kernel/sched/cputime.c | 7 +++
5
-by: Ruchi Kandoi kandoiru...@google.com
---
drivers/cpufreq/cpufreq_stats.c | 163 +++-
1 file changed, 161 insertions(+), 2 deletions(-)
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index 5e370a3..6f0b562 100644
--- a/drivers/cpufreq
If a wakeup source is found to be pending in the last stage of suspend
after syscore suspend then the device doesn't suspend but the error is
not propogated which causes an error in the accounting for the number
of suspend aborts and successful suspends.
Signed-off-by: Ruchi Kandoi
---
kernel
If a wakeup source is found to be pending in the last stage of suspend
after syscore suspend then the device doesn't suspend but the error is
not propogated which causes an error in the accounting for the number
of suspend aborts and successful suspends.
Signed-off-by: Ruchi Kandoi kandoiru
logging for debugging purposes.
On Thu, Mar 13, 2014 at 6:06 PM, Rafael J. Wysocki wrote:
> On Thursday, March 13, 2014 05:43:20 PM Ruchi Kandoi wrote:
>> This should be true most of the times.
>>
>> But there might be cases otherwise too.
>>
>> For instance, t
only because the system was up and did not cause the
wake up to happen.
Regards,
Ruchi Kandoi
On Thu, Mar 13, 2014 at 3:18 PM, Rafael J. Wysocki wrote:
> Hi,
>
> I saw the v4, but I don't have it handy, so replying here.
>
> On Wednesday, March 12, 2014 12:46:38 PM Ruc
of the accounting
kept on power consumption.
Signed-off-by: Ruchi Kandoi
Signed-off-by: Greg Hackmann
---
space added after prefix in the pr_fmt()
---
include/linux/wakeup_reason.h | 23 +++
kernel/power/Makefile | 2 +-
kernel/power/wakeup_reason.c | 141
of the accounting
kept on power consumption.
Signed-off-by: Ruchi Kandoi kandoiru...@google.com
Signed-off-by: Greg Hackmann ghackm...@google.com
---
space added after prefix in the pr_fmt()
---
include/linux/wakeup_reason.h | 23 +++
kernel/power/Makefile | 2 +-
kernel/power
only because the system was up and did not cause the
wake up to happen.
Regards,
Ruchi Kandoi
On Thu, Mar 13, 2014 at 3:18 PM, Rafael J. Wysocki r...@rjwysocki.net wrote:
Hi,
I saw the v4, but I don't have it handy, so replying here.
On Wednesday, March 12, 2014 12:46:38 PM Ruchi Kandoi wrote
logging for debugging purposes.
On Thu, Mar 13, 2014 at 6:06 PM, Rafael J. Wysocki r...@rjwysocki.net wrote:
On Thursday, March 13, 2014 05:43:20 PM Ruchi Kandoi wrote:
This should be true most of the times.
But there might be cases otherwise too.
For instance, there was a bug earlier
of the accounting
kept on power consumption.
Signed-off-by: Ruchi Kandoi
Signed-off-by: Greg Hackmann
---
commit message changed for clarity
---
include/linux/wakeup_reason.h | 23 +++
kernel/power/Makefile | 2 +-
kernel/power/wakeup_reason.c | 141
of the accounting
kept on power consumption.
Signed-off-by: Ruchi Kandoi kandoiru...@google.com
Signed-off-by: Greg Hackmann ghackm...@google.com
---
commit message changed for clarity
---
include/linux/wakeup_reason.h | 23 +++
kernel/power/Makefile | 2 +-
kernel/power
you,
Ruchi Kandoi
On Tue, Mar 11, 2014 at 12:32 PM, Rafael J. Wysocki wrote:
> On Monday, March 10, 2014 07:02:02 PM Ruchi Kandoi wrote:
>> Add API log_wakeup_reason() and expose it to userspace via sysfs path
>> /sys/kernel/wakeup_reasons/last_resume_reason
>> This is useful
you,
Ruchi Kandoi
On Tue, Mar 11, 2014 at 12:32 PM, Rafael J. Wysocki r...@rjwysocki.net wrote:
On Monday, March 10, 2014 07:02:02 PM Ruchi Kandoi wrote:
Add API log_wakeup_reason() and expose it to userspace via sysfs path
/sys/kernel/wakeup_reasons/last_resume_reason
This is useful for power
Add API log_wakeup_reason() and expose it to userspace via sysfs path
/sys/kernel/wakeup_reasons/last_resume_reason
This is useful for power management diagnostic purposes.
Signed-off-by: Ruchi Kandoi
Signed-off-by: Greg Hackmann
---
include/linux/wakeup_reason.h | 23 +++
kernel/power
Add API log_wakeup_reason() and expose it to userspace via sysfs path
/sys/kernel/wakeup_reasons/last_resume_reason
This is useful for power management diagnostic purposes.
Signed-off-by: Ruchi Kandoi kandoiru...@google.com
Signed-off-by: Greg Hackmann ghackm...@google.com
---
include/linux
52 matches
Mail list logo