From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752695AbdGSAv2 (ORCPT ); Tue, 18 Jul 2017 20:51:28 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:55293 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752191AbdGSAvC (ORCPT ); Tue, 18 Jul 2017 20:51:02 -0400 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Thomas Gleixner Subject: [PATCH 0/3] PM / sleep: Avoid filling up kernel log buffer with debug messages Date: Wed, 19 Jul 2017 02:37:24 +0200 Message-ID: <2539550.y54cRb749c@aspire.rjw.lan> User-Agent: KMail/4.14.10 (Linux/4.12.0-rc1+; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The problem at hand is that on some systems suspend-to-idle can easily fill up the kernel log buffer with debug messages in one cycle (if spurious wakeups happen ofter enough). I tried to make that somewhat better before, but it still turns out to be problematic, so here's a patch series to possibly address this. [1/3] adds a sysfs knob to turn debug messages from the core suspend/hibernate code on and off (default) and a printk() wrapper taking that into account. [2/3] adds some "info" messages to indicate when system power transitions start and finish which IMO is useful to see in the log regardless. [3/3] modifies the wrapper introduced by [1/3] to make it suitable for tk_debug_account_sleep_time() and uses it in there instead of the plain printk_deferred() as that also is a debug thing really and can fill up the log buffer by itself in some cases. Thanks, Rafael