We recently noticed an issue where freezing of user space tasks is failed due to a process being in uninterruptible sleep state. Currently, the logging of unfrozen tasks is disabled by default. Although it can be enabled for debugging via a adb command, it's usually hard to reproduce the issue. So we want to add a vendor hook to log unfrozen tasks. pm_debug_messages enables a large amount of log output during every suspend/resume cycle of which at most 1 line is helpful for investigating this recurring class of battery life issues. Deploying builds with pm_debug_messages is therefore not viable, as it substantially shortens the temporal span of the log. The new vendor hook will only emit logs specific to this class of problem, and only when the problem actually manifests. Bug: 240091483 Test: all presubmit tests passed Change-Id: Ief3d4196ea7220d4897c00a37ab96f456dbf2259 Signed-off-by: Darren Hsu <darrenhsu@google.com> (cherry picked from commit 3821e5b25c4067d2263bc47c674fde57a17cf7c4)
5.9 KiB
5.9 KiB