Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513077 > unrolled thread
| Started by | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| First post | 2016-11-01 05:30 +0100 |
| Last post | 2016-11-02 22:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RESEND PATCH 1/2] PM / sleep: print function name of callbacks "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-11-01 05:30 +0100
Re: [RESEND PATCH 1/2] PM / sleep: print function name of callbacks Brian Norris <briannorris@chromium.org> - 2016-11-02 22:10 +0100
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2016-11-01 05:30 +0100 |
| Subject | Re: [RESEND PATCH 1/2] PM / sleep: print function name of callbacks |
| Message-ID | <syyRY-3Jm-13@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Brian Norris <briannorris@chromium.org> |
|---|---|
| Date | 2016-11-02 22:10 +0100 |
| Message-ID | <szaXg-34T-35@gated-at.bofh.it> |
| In reply to | #1513077 |
On Tue, Nov 01, 2016 at 05:27:05AM +0100, Rafael J. Wysocki wrote: > 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)? This was mentioned on the last submission. I'll paste Doug's reply from there: """ On Tue, Sep 22, 2015 at 10:33 AM, Brown, Len <len.brown@intel.com> wrote: > have you used analyze_suspend? > It used to parse this output, but that was abandoned > when it cut over to using ftrace directly. > > https://01.org/suspendresume Ah, good to know about. In my case this output is enabled on shipping devices and sometimes we get back bug reports with these prints in the log, so I'm interested in making the prints more useful. :) -Doug """ Perhaps I should have elabotated on the RESEND... Or is there a really good way to make use of the tracepoints for production systems, including for crash reports? We currently get the kernel log from pstore, but I see ftrace support has been there for a little while too. Still, it's awfully useful to have kernel prints and warnings interleave with initcall_debug, and it wouldn't be quite as easy to have to piece this together between kernel log + ftrace log. Brian
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web