mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] PM: refactor pm_pr_dbg() to support dynamic debug
@ 2022-03-24  8:07 David Cohen
  2022-03-24  8:07 ` [PATCH v3 1/2] PM: narrow down -DDEBUG on kernel/power/ files David Cohen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Cohen @ 2022-03-24  8:07 UTC (permalink / raw)
  To: rafael, len.brown, pavel; +Cc: linux-pm, linux-kernel, David Cohen

Hi,

I am currently debugging an issue with s2idle on my laptop where in a
rare occasion instead of sleeping, it gets stuck in an infinite loop.
The pm_pr_dbg() is placed on very useful functions and it helps me to
debug it, but the current all or nothing enabling mechanism with
pm_debug_messages_on flag is causing the suspending mechanism to be
disturbed with so many debug messages to the point it becomes extremely
difficult to reproduce the issue I'm debugging. More granularity when
enabling pm_pr_dbg() in this case is very welcome.

These patches I'm sending introduce dynamic debug support to pm_pr_dbg()
while still maintaining the pm_debug_messages_on flag behavior if
dynamic debug is not used.

Regards, David

---
David Cohen (2):
  PM: narrow down -DDEBUG on kernel/power/ files
  PM: enable dynamic debug support within pm_pr_dbg()

 include/linux/suspend.h | 44 ++++++++++++++++++++++++++++++++++++-----
 kernel/power/Makefile   |  6 +++++-
 kernel/power/main.c     | 29 ---------------------------
 kernel/power/process.c  |  3 ---
 4 files changed, 44 insertions(+), 38 deletions(-)

--
2.35.1



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

end of thread, other threads:[~2022-04-13 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24  8:07 [PATCH v3 0/2] PM: refactor pm_pr_dbg() to support dynamic debug David Cohen
2022-03-24  8:07 ` [PATCH v3 1/2] PM: narrow down -DDEBUG on kernel/power/ files David Cohen
2022-03-24  8:07 ` [PATCH v3 2/2] PM: enable dynamic debug support within pm_pr_dbg() David Cohen
2022-04-13 14:35 ` [PATCH v3 0/2] PM: refactor pm_pr_dbg() to support dynamic debug Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®