From: Steven Rostedt <rostedt@goodmis.org>
To: Shuah Khan <shuah.kh@samsung.com>
Cc: "len.brown@intel.com" <len.brown@intel.com>,
"pavel@ucw.cz" <pavel@ucw.cz>, "rjw@sisk.pl" <rjw@sisk.pl>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"fweisbec@gmail.com" <fweisbec@gmail.com>,
"mingo@redhat.com" <mingo@redhat.com>,
"paul.gortmaker@windriver.com" <paul.gortmaker@windriver.com>,
"joe@perches.com" <joe@perches.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"shuahkhan@gmail.com" <shuahkhan@gmail.com>
Subject: Re: [PATCH v3] power: new trace event to print device suspend and resume time
Date: Thu, 18 Jul 2013 10:21:49 -0400 [thread overview]
Message-ID: <1374157309.6458.232.camel@gandalf.local.home> (raw)
In-Reply-To: <B8EFE96D1287C24090BAD9D858E15E6173D4A9@sisaex02sj>
On Thu, 2013-07-18 at 14:00 +0000, Shuah Khan wrote:
> >
> > Don't you want to convert the ops_time on display? You can have:
> >
> > TP_printk("%s %s parent=%s state=%s ops=%snsecs=%lld err=%d",
> > __get_str(driver), __get_str(device), __get_str(parent),
> > __get_str(pm_event_str), __get_str(pm_ops),
> > ktime_to_ns(__entry->ops_time), __entry->error)
> >
> >
> > -- Steve
>
> I decided to pass in the converted value to the tracepoint. Please see
> the drivers/base/power/main.c call to trace_device_pm_report_time()
But why? You are still doing the calculation in the fast path. The
TP_printk() is in the slow path. Why add overhead to the execution of
the code?
-- Steve
>
> +
> + trace_device_pm_report_time(dev_name(dev), dev_driver_string(dev),
> + dev->parent ? dev_name(dev->parent) : "none",
> + info ? info : "none ",
> + (s64) ktime_to_ns(delta), pm_verb(state.event),
> + error);
>
> -- Shuah
>
> Shuah Khan, Linux Kernel Developer - Open Source Group Samsung Research
> America (Silicon Valley) shuah.kh@samsung.com | (970) 672-0658
next prev parent reply other threads:[~2013-07-18 14:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 23:03 Shuah Khan
2013-07-18 1:22 ` Steven Rostedt
2013-07-18 14:00 ` Shuah Khan
2013-07-18 14:21 ` Steven Rostedt [this message]
2013-07-18 15:12 ` Shuah Khan
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=1374157309.6458.232.camel@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=fweisbec@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paul.gortmaker@windriver.com \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=shuah.kh@samsung.com \
--cc=shuahkhan@gmail.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
all inboxes | Powered by JetHome®