From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@ucw.cz>
Cc: Greg KH <gregkh@suse.de>,
"Mansoor, Illyas" <illyas.mansoor@intel.com>,
"Liu, ShuoX" <shuox.liu@intel.com>,
"linux-pm@lists.linux-foundation.org"
<linux-pm@lists.linux-foundation.org>,
"Brown, Len" <len.brown@intel.com>,
"Yanmin_zhang@linux.intel.com" <Yanmin_zhang@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [linux-pm] [PATCH v4] PM: add statistics debugfs file for suspend to ram
Date: Fri, 12 Aug 2011 09:13:34 +0200 [thread overview]
Message-ID: <201108120913.35046.rjw@sisk.pl> (raw)
In-Reply-To: <20110812070424.GA5249@ucw.cz>
On Friday, August 12, 2011, Pavel Machek wrote:
> On Wed 2011-08-10 12:58:54, Greg KH wrote:
> > On Thu, Aug 11, 2011 at 01:22:56AM +0530, Mansoor, Illyas wrote:
> > > static pm_message_t pm_transition;
> > > > > >
> > > > > > @@ -464,8 +465,12 @@ void dpm_resume_noirq(pm_message_t state)
> > > > > > mutex_unlock(&dpm_list_mtx);
> > > > > >
> > > > > > error = device_resume_noirq(dev, state);
> > > > > > - if (error)
> > > > > > + if (error) {
> > > > > > + suspend_stats.failed_resume_noirq++;
> > > > > > + dpm_save_failed_step(SUSPEND_RESUME_NOIRQ);
> > > > > > + dpm_save_failed_dev(dev_name(dev));
> > > > >
> > > > > Please make these statistics conditionally enabled, so on a production system
> > > > > If we need to disable these statistics code we should be able to do so.
> > > >
> > > > Why, are they taking time or space that is needed for something else?
> > > > What's the downside here of just not always having this enabled?
> > >
> > > Why have something that is not required/Used?
> >
> > Because someone might need it and rebuilding a kernel isn't possible on
> > lots of devices.
>
> Yeah, and someone may need tetris, lets put it into kernel and enable
> unconditionaly :-(.
>
> Really, this is just patch to provide dmesg subset, because someone is
> cool enough to hack kernel, but will not just use grep.
>
> The patch should be just dropped.
And what's the _technical_ reason?
Do you think it's generally wrong to have two different ways of getting
the same debug information from the kernel?
Really, the truth is that suspend debugging is still way too difficult
for the majority of users and I don't quite see a reason to drop patches
that may improve the situation in this area.
Thanks,
Rafael
next prev parent reply other threads:[~2011-08-12 7:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 7:28 [PATCH v4] PM: add statistics debugfs file for suspend to ram Liu, ShuoX
2011-08-10 18:00 ` [linux-pm] " Mansoor, Illyas
2011-08-10 19:45 ` Greg KH
2011-08-10 19:52 ` Mansoor, Illyas
2011-08-10 19:58 ` Greg KH
2011-08-10 20:20 ` Mansoor, Illyas
2011-08-10 20:25 ` Mansoor, Illyas
2011-08-12 7:04 ` Pavel Machek
2011-08-12 7:13 ` Rafael J. Wysocki [this message]
2011-08-10 21:07 ` Rafael J. Wysocki
2011-08-10 21:44 ` Pavel Machek
2011-08-11 1:55 ` Yanmin Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201108120913.35046.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=Yanmin_zhang@linux.intel.com \
--cc=gregkh@suse.de \
--cc=illyas.mansoor@intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=shuox.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox