From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Brian Norris <briannorris@chromium.org>
Cc: Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org,
Doug Anderson <dianders@chromium.org>,
Brian Norris <computersforpeace@gmail.com>,
Jeffy Chen <jeffy.chen@rock-chips.com>,
linux-pm@vger.kernel.org,
Chuansheng Liu <chuansheng.liu@intel.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [RESEND PATCH 1/2] PM / sleep: print function name of callbacks
Date: Tue, 01 Nov 2016 05:27:05 +0100 [thread overview]
Message-ID: <1739391.aWGq2sgtym@vostro.rjw.lan> (raw)
In-Reply-To: <1476923170-111986-1-git-send-email-briannorris@chromium.org>
On Wednesday, October 19, 2016 05:26:09 PM Brian Norris wrote:
> From: Douglas Anderson <dianders@chromium.org>
>
> The printouts writen to the logs by suspend can be a bit opaque: it can
> be hard to track them down to the actual function called. You might
> see:
>
> calling rfkill1+ @ 19473, parent: phy0
> call rfkill1+ returned 0 after 1 usecs
> calling phy0+ @ 19473, parent: mmc2:0001:1
> call phy0+ returned 0 after 19 usecs
>
> It's a bit hard to know what's actually happening. Instead, it's nice
> to see:
>
> calling rfkill1+ @ 15793, parent: phy0, cb: rfkill_suspend
> call rfkill1+ returned 0 after 1 usecs
> calling phy0+ @ 15793, parent: mmc2:0001:1, cb: wiphy_suspend [cfg80211]
> call phy0+ returned 0 after 7 usecs
>
> That makes it very obvious what's going on. It also has the nice side
> effect of making the suspend/resume spew a little more obvious, since
> many resume functions have the word "resume" in the name:
>
> calling phy0+ @ 15793, parent: mmc2:0001:1, cb: wiphy_resume [cfg80211]
> call phy0+ returned 0 after 12 usecs
> calling rfkill1+ @ 15793, parent: phy0, cb: rfkill_resume
> call rfkill1+ returned 0 after 1 usecs
>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> Acked-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
Any reason why you need to rely on the initcall_debug stuff instead of using
the tracepoints we have there (for exactly the reason why you are pushing this
patch)?
Thanks,
Rafael
next prev parent reply other threads:[~2016-11-01 4:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-20 0:26 Brian Norris
2016-10-20 0:26 ` [PATCH 2/2] PM / sleep: don't suspend parent when async child suspend_{noirq,early} fails Brian Norris
2016-10-20 0:46 ` Brian Norris
2016-10-27 15:34 ` Greg Kroah-Hartman
2016-10-27 16:03 ` Brian Norris
2016-10-20 0:56 ` Dmitry Torokhov
2016-10-27 16:05 ` [PATCH v2 2/2] PM / sleep: don't suspend parent when async child suspend_{noirq,late} fails Brian Norris
2016-11-01 4:25 ` Rafael J. Wysocki
2016-11-01 5:22 ` Brian Norris
2016-11-01 6:04 ` Dmitry Torokhov
2016-11-02 3:51 ` Rafael J. Wysocki
2016-11-02 5:07 ` Brian Norris
2016-11-10 0:08 ` Rafael J. Wysocki
2016-11-10 0:18 ` Brian Norris
2016-11-10 1:21 ` [PATCH v3] " Brian Norris
2016-11-10 1:53 ` Rafael J. Wysocki
2016-11-10 2:00 ` Brian Norris
2016-11-11 1:42 ` Rafael J. Wysocki
2016-10-20 0:52 ` [RESEND PATCH 1/2] PM / sleep: print function name of callbacks Dmitry Torokhov
2016-11-01 4:27 ` Rafael J. Wysocki [this message]
2016-11-02 21:02 ` Brian Norris
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=1739391.aWGq2sgtym@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=briannorris@chromium.org \
--cc=chuansheng.liu@intel.com \
--cc=computersforpeace@gmail.com \
--cc=dianders@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jeffy.chen@rock-chips.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
/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
all inboxes | Powered by JetHome®