linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Alternatives to /sys/kernel/debug/wakeup_sources
@ 2019-06-05  0:23 Tri Vo
  2019-06-11 17:31 ` Tri Vo
  0 siblings, 1 reply; 23+ messages in thread
From: Tri Vo @ 2019-06-05  0:23 UTC (permalink / raw)
  To: rjw; +Cc: hridya, linux-pm

Hello Rafael,

Currently, Android reads wakeup sources statistics from
/sys/kernel/debug/wakeup_sources in production environment. This
information is used, for example, to report which wake lock prevents
the device from suspending.

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 file requires debugfs to be mounted, which itself is
undesirable for security reasons.

To address these problems, we want to contribute a way to expose these
statistics that doesn't depend on debugfs.

Some initial thoughts/questions: Should we expose the stats in sysfs?
Or maybe implement eBPF-based solution? What do you think?

Thanks,
Tri

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-06-24 22:14 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05  0:23 Alternatives to /sys/kernel/debug/wakeup_sources Tri Vo
2019-06-11 17:31 ` Tri Vo
2019-06-18 20:17   ` Sandeep Patil
2019-06-18 21:23     ` Rafael J. Wysocki
2019-06-18 23:15       ` Tri Vo
2019-06-18 23:52         ` Joel Fernandes
2019-06-19  8:35           ` Rafael J. Wysocki
2019-06-19 10:33             ` Joel Fernandes
2019-06-19 16:51             ` Sandeep Patil
2019-06-19 16:53             ` Joel Fernandes
2019-06-19 17:07               ` Greg Kroah-Hartman
2019-06-19 18:01                 ` Joel Fernandes
2019-06-19 18:31                   ` Tri Vo
2019-06-19 18:35                   ` Greg Kroah-Hartman
2019-06-19 18:55                     ` Joel Fernandes
     [not found]                       ` <CAGETcx-ZZRc_jtBws2cFTe1wjiWeBowdqfqOhcCJV_7AUyBEVw@mail.gmail.com>
2019-06-19 20:09                         ` Joel Fernandes
2019-06-19 20:40                           ` Saravana Kannan
2019-06-19 20:52                             ` Joel Fernandes
2019-06-24  1:48             ` Tri Vo
2019-06-24  7:36               ` Greg Kroah-Hartman
2019-06-24 12:27                 ` Joel Fernandes
2019-06-24 21:55                   ` Rafael J. Wysocki
2019-06-24 22:14                     ` Tri Vo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).