Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-24 Thread Tri Vo
On Mon, Jun 24, 2019 at 2:55 PM Rafael J. Wysocki wrote: > > On Mon, Jun 24, 2019 at 2:27 PM Joel Fernandes wrote: > > > > On Mon, Jun 24, 2019 at 3:37 AM Greg Kroah-Hartman > > wrote: > > > > > > On Sun, Jun 23, 2019 at 06:48:43PM -0700, Tri Vo wrote: > > > > On Wed, Jun 19, 2019 at 1:35 AM

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-24 Thread Rafael J. Wysocki
On Mon, Jun 24, 2019 at 2:27 PM Joel Fernandes wrote: > > On Mon, Jun 24, 2019 at 3:37 AM Greg Kroah-Hartman > wrote: > > > > On Sun, Jun 23, 2019 at 06:48:43PM -0700, Tri Vo wrote: > > > On Wed, Jun 19, 2019 at 1:35 AM Rafael J. Wysocki > > > wrote: > > > > > > > > On Wed, Jun 19, 2019 at

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-24 Thread Joel Fernandes
On Mon, Jun 24, 2019 at 3:37 AM Greg Kroah-Hartman wrote: > > On Sun, Jun 23, 2019 at 06:48:43PM -0700, Tri Vo wrote: > > On Wed, Jun 19, 2019 at 1:35 AM Rafael J. Wysocki wrote: > > > > > > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > > > > > On Tue, Jun 18, 2019 at 7:15 PM

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-24 Thread Greg Kroah-Hartman
On Sun, Jun 23, 2019 at 06:48:43PM -0700, Tri Vo wrote: > On Wed, Jun 19, 2019 at 1:35 AM Rafael J. Wysocki wrote: > > > > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: > > > [snip] > > > > > > > > > > > > > > > > Android

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-23 Thread Tri Vo
On Wed, Jun 19, 2019 at 1:35 AM Rafael J. Wysocki wrote: > > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: > > [snip] > > > > > > > > > > > > > > Android userspace reading wakeup_sources is not ideal because: > > > > > > > - Debugfs

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 4:41 PM 'Saravana Kannan' via kernel-team wrote: > > > On Wed, Jun 19, 2019, 11:55 AM 'Joel Fernandes' via kernel-team > > > wrote: > > >> > > >> On Wed, Jun 19, 2019 at 2:35 PM Greg Kroah-Hartman > > >> wrote: > > >> > > > >> > On Wed, Jun 19, 2019 at 02:01:36PM -0400,

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Saravana Kannan
On Wed, Jun 19, 2019 at 1:09 PM 'Joel Fernandes' via kernel-team wrote: > > On Wed, Jun 19, 2019 at 3:59 PM 'Saravana Kannan' via kernel-team > wrote: > > > > > > > > On Wed, Jun 19, 2019, 11:55 AM 'Joel Fernandes' via kernel-team > > wrote: > >> > >> On Wed, Jun 19, 2019 at 2:35 PM Greg

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 3:59 PM 'Saravana Kannan' via kernel-team wrote: > > > > On Wed, Jun 19, 2019, 11:55 AM 'Joel Fernandes' via kernel-team > wrote: >> >> On Wed, Jun 19, 2019 at 2:35 PM Greg Kroah-Hartman >> wrote: >> > >> > On Wed, Jun 19, 2019 at 02:01:36PM -0400, Joel Fernandes wrote:

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 2:35 PM Greg Kroah-Hartman wrote: > > On Wed, Jun 19, 2019 at 02:01:36PM -0400, Joel Fernandes wrote: > > On Wed, Jun 19, 2019 at 1:07 PM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Jun 19, 2019 at 12:53:12PM -0400, Joel Fernandes wrote: > > > > > It is conceivable

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Greg Kroah-Hartman
On Wed, Jun 19, 2019 at 02:01:36PM -0400, Joel Fernandes wrote: > On Wed, Jun 19, 2019 at 1:07 PM Greg Kroah-Hartman > wrote: > > > > On Wed, Jun 19, 2019 at 12:53:12PM -0400, Joel Fernandes wrote: > > > > It is conceivable to have a "wakeup_sources" directory under > > > > /sys/power/ and sysfs

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Tri Vo
On Wed, Jun 19, 2019 at 11:01 AM Joel Fernandes wrote: > > On Wed, Jun 19, 2019 at 1:07 PM Greg Kroah-Hartman > wrote: > > > > On Wed, Jun 19, 2019 at 12:53:12PM -0400, Joel Fernandes wrote: > > > > It is conceivable to have a "wakeup_sources" directory under > > > > /sys/power/ and sysfs nodes

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 1:07 PM Greg Kroah-Hartman wrote: > > On Wed, Jun 19, 2019 at 12:53:12PM -0400, Joel Fernandes wrote: > > > It is conceivable to have a "wakeup_sources" directory under > > > /sys/power/ and sysfs nodes for all wakeup sources in there. > > > > One of the "issues" with this

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Greg Kroah-Hartman
On Wed, Jun 19, 2019 at 12:53:12PM -0400, Joel Fernandes wrote: > > It is conceivable to have a "wakeup_sources" directory under > > /sys/power/ and sysfs nodes for all wakeup sources in there. > > One of the "issues" with this is, now if you have say 100 wake up > sources, with 10 entries each,

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 4:35 AM Rafael J. Wysocki wrote: > > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: [snip] > > > > > If no, then we would love to hear suggestions for any changes that > > > > > need to be > > > > > made or we

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Sandeep Patil
On Wed, Jun 19, 2019 at 10:35:17AM +0200, Rafael J. Wysocki wrote: > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: > > [snip] > > > > > > > > > > > > > > Android userspace reading wakeup_sources is not ideal because: > > > > > > > -

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Joel Fernandes
On Wed, Jun 19, 2019 at 4:35 AM Rafael J. Wysocki wrote: > > On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: > > [snip] > > > > > > > > > > > > > > Android userspace reading wakeup_sources is not ideal because: > > > > > > > - Debugfs

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-19 Thread Rafael J. Wysocki
On Wed, Jun 19, 2019 at 1:52 AM Joel Fernandes wrote: > > On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: > [snip] > > > > > > > > > > > > Android userspace reading wakeup_sources is not ideal because: > > > > > > - Debugfs API is not stable, i.e. Android tools built on top of it > > > > > > are

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-18 Thread Joel Fernandes
On Tue, Jun 18, 2019 at 7:15 PM Tri Vo wrote: [snip] > > > > > > > > > > Android userspace reading wakeup_sources is not ideal because: > > > > > - Debugfs API is not stable, i.e. Android tools built on top of it are > > > > > not guaranteed to be backward/forward compatible. > > > > > - This

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-18 Thread Tri Vo
On Tue, Jun 18, 2019 at 2:23 PM Rafael J. Wysocki wrote: > > On Tuesday, June 18, 2019 10:17:16 PM CEST Sandeep Patil wrote: > > > > Hi Rafael, Viresh etc. > > > > On Tue, Jun 11, 2019 at 10:31:16AM -0700, Tri Vo wrote: > > > On Tue, Jun 4, 2019 at 5:23 PM Tri Vo wrote: > > > > > > > > Hello

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-18 Thread Rafael J. Wysocki
On Tuesday, June 18, 2019 10:17:16 PM CEST Sandeep Patil wrote: > > Hi Rafael, Viresh etc. > > On Tue, Jun 11, 2019 at 10:31:16AM -0700, Tri Vo wrote: > > On Tue, Jun 4, 2019 at 5:23 PM Tri Vo wrote: > > > > > > Hello Rafael, > > > > > > Currently, Android reads wakeup sources statistics from >

Re: Alternatives to /sys/kernel/debug/wakeup_sources

2019-06-18 Thread Sandeep Patil
Hi Rafael, Viresh etc. On Tue, Jun 11, 2019 at 10:31:16AM -0700, Tri Vo wrote: > On Tue, Jun 4, 2019 at 5:23 PM Tri Vo wrote: > > > > Hello Rafael, > > > > Currently, Android reads wakeup sources statistics from > > /sys/kernel/debug/wakeup_sources in production environment. This > >