From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932915AbcKAETz (ORCPT ); Tue, 1 Nov 2016 00:19:55 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:48914 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754327AbcKAETy (ORCPT ); Tue, 1 Nov 2016 00:19:54 -0400 From: "Rafael J. Wysocki" To: Brian Norris Cc: Pavel Machek , Len Brown , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Doug Anderson , Brian Norris , Jeffy Chen , linux-pm@vger.kernel.org, Chuansheng Liu , Dmitry Torokhov Subject: Re: [RESEND PATCH 1/2] PM / sleep: print function name of callbacks Date: Tue, 01 Nov 2016 05:27:05 +0100 Message-ID: <1739391.aWGq2sgtym@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.9.0-rc2+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1476923170-111986-1-git-send-email-briannorris@chromium.org> References: <1476923170-111986-1-git-send-email-briannorris@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, October 19, 2016 05:26:09 PM Brian Norris wrote: > From: Douglas Anderson > > 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 > Acked-by: Pavel Machek > Signed-off-by: Brian Norris 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