Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1227889
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Javi Merino <javi.merino@arm.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 4/5] devfreq_cooling: add trace information |
| Date | Fri, 18 Sep 2015 16:00:03 +0200 |
| Message-ID | <qa4mK-4oE-29@gated-at.bofh.it> (permalink) |
| References | <q7dFU-7WH-1@gated-at.bofh.it> <q7dFU-7WH-19@gated-at.bofh.it> <q7dFV-7WH-29@gated-at.bofh.it> |
| X-Original-To | Steven Rostedt <rostedt@goodmis.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "cw00.choi@samsung.com" <cw00.choi@samsung.com>, "edubezval@gmail.com" <edubezval@gmail.com>, Zhang Rui <rui.zhang@intel.com>, Ingo Molnar <mingo@redhat.com> |
| X-Original-Date | Fri, 18 Sep 2015 14:55:51 +0100 |
| X-Original-Message-ID | <20150918135550.GA5283@e104805> |
| X-Original-References | <1441904972-5809-1-git-send-email-javi.merino@arm.com> <1441904972-5809-5-git-send-email-javi.merino@arm.com> <20150910131928.3c88fe28@gandalf.local.home> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1227889 |
Show key headers only | View raw
Hi Steve, On Thu, Sep 10, 2015 at 06:19:28PM +0100, Steven Rostedt wrote: > On Thu, 10 Sep 2015 18:09:31 +0100 > Javi Merino <javi.merino@arm.com> wrote: > > > Tracing is useful for debugging and performance tuning. Add similar > > traces to what's present in the cpu cooling device. > > > > Cc: Zhang Rui <rui.zhang@intel.com> > > Cc: Eduardo Valentin <edubezval@gmail.com> > > Cc: Steven Rostedt <rostedt@goodmis.org> > > Cc: Ingo Molnar <mingo@redhat.com> > > Signed-off-by: Javi Merino <javi.merino@arm.com> > > --- > > drivers/thermal/devfreq_cooling.c | 6 +++++ > > include/trace/events/thermal.h | 53 +++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 59 insertions(+) > > > > diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c > > index a032c5d5c374..a27206815066 100644 > > --- a/drivers/thermal/devfreq_cooling.c > > +++ b/drivers/thermal/devfreq_cooling.c > > @@ -25,6 +25,8 @@ > > #include <linux/pm_opp.h> > > #include <linux/thermal.h> > > > > +#include <trace/events/thermal.h> > > + > > static DEFINE_MUTEX(devfreq_lock); > > static DEFINE_IDR(devfreq_idr); > > > > @@ -293,6 +295,9 @@ static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cd > > /* Get static power */ > > static_power = get_static_power(dfc, freq); > > > > + trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power, > > + static_power); > > + > > *power = dyn_power + static_power; > > > > return 0; > > @@ -348,6 +353,7 @@ static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev, > > break; > > > > *state = i; > > + trace_thermal_power_devfreq_limit(cdev, freq, *state, power); > > I'm curious, does changing the above to: > > trace_thermal_power_devfreq_limit(cdev, freq, i, power); > > make the compiled code better? > > A tracepoint does some whacky things, and gcc may not optimize this. I've compared the generated assembly on arm, arm64 and x86_64 and both options generate exactly the same code. Cheers, Javi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 0/5] Devfreq cooling device Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
[PATCH v6 5/5] PM / devfreq: drop comment about thermal setting max_freq Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
[PATCH v6 1/5] PM / devfreq: cache the last call to get_dev_status() Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
[PATCH v6 4/5] devfreq_cooling: add trace information Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
Re: [PATCH v6 4/5] devfreq_cooling: add trace information Steven Rostedt <rostedt@goodmis.org> - 2015-09-10 19:20 +0200
Re: [PATCH v6 4/5] devfreq_cooling: add trace information Javi Merino <javi.merino@arm.com> - 2015-09-18 16:00 +0200
Re: [PATCH v6 4/5] devfreq_cooling: add trace information Steven Rostedt <rostedt@goodmis.org> - 2015-09-18 16:10 +0200
[PATCH v6 2/5] PM / OPP: get the voltage for all OPPs Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
[PATCH v6 3/5] thermal: Add devfreq cooling Javi Merino <javi.merino@arm.com> - 2015-09-10 19:20 +0200
csiph-web