[PATCH v2] arm: add cpu_idle tracepoints to arch_cpu_idle
Steven Rostedt
rostedt at goodmis.org
Thu Sep 17 06:14:51 PDT 2015
On Thu, 17 Sep 2015 16:44:24 +0800
Jisheng Zhang <jszhang at marvell.com> wrote:
> Dear Steven,
>
> On Thu, 17 Sep 2015 16:07:44 +0800
> Jisheng Zhang <jszhang at marvell.com> wrote:
>
> > Dear all,
> >
> > On Thu, 17 Sep 2015 01:32:40 +0800
> > Jisheng Zhang <jszhang at marvell.com> wrote:
> >
> > > Currently, if cpuidle is disabled or not supported, powertop reports
> > > zero wakeups and zero events. This is due to the cpu_idle tracepoints
> > > are missing.
> > >
> > > This patch is to make cpu_idle tracepoints always available even if
> > > cpuidle is disabled or not supported.
> > >
> > > Signed-off-by: Jisheng Zhang <jszhang at marvell.com>
> > > ---
> > > Since v1:
> > > - ignore arm_pm_idle.
> >
> > Something related: let's have a look at arch/arm/mach-omap2/pm34xx.c
> > the omap3_pm_idle(void) function, it uses trace_cpu_idle(), should we
> > use the _rcuidle version as below:
>
> 484546509ce5 ("x86/tracing: Denote the power and cpuidle tracepoints as
> _rcuidle()") make me think we need to fix omap3_pm_idle, right?
>
Probably. If those tracepoints can be called after rcu_idle_enter()
(see cpuidle_idle_call()), then yes.
-- Steve
More information about the linux-arm-kernel
mailing list