* Patch for tracing c states (power_end) on x86
@ 2010-02-24 8:19 Robert Schöne
2010-02-24 8:36 ` Li Zefan
2010-02-25 12:52 ` Peter Zijlstra
0 siblings, 2 replies; 9+ messages in thread
From: Robert Schöne @ 2010-02-24 8:19 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Ingo Molnar, Thomas Gleixner, kernel list
Hello,
Since noone replied to my last mail (Febr. 15th, 11:42), describing the
way to fix the missing c-state tracing, here's a patch.
Maybe its easier that way.
(I used the perf-fixes-for-linus git tree to obtain a
more-then-up-to-date version)
Bye Robert
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 02d6780..b1cfb88 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -384,6 +384,7 @@ void default_idle(void)
else
local_irq_enable();
current_thread_info()->status |= TS_POLLING;
+ trace_power_end(1);
} else {
local_irq_enable();
/* loop is done by the caller */
@@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
unsigned long cx)
if (!need_resched())
__mwait(ax, cx);
}
+ trace_power_end((ax>>4)+1);
}
/* Default MONITOR/MWAIT with no hints, used for default C1 state */
@@ -467,6 +469,7 @@ static void mwait_idle(void)
__sti_mwait(0, 0);
else
local_irq_enable();
+ trace_power_end(1);
} else
local_irq_enable();
}
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-24 8:19 Patch for tracing c states (power_end) on x86 Robert Schöne
@ 2010-02-24 8:36 ` Li Zefan
2010-02-24 8:44 ` Robert Schöne
2010-02-25 12:52 ` Peter Zijlstra
1 sibling, 1 reply; 9+ messages in thread
From: Li Zefan @ 2010-02-24 8:36 UTC (permalink / raw)
To: Robert Schöne
Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
Robert Schöne wrote:
> Hello,
>
> Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> way to fix the missing c-state tracing, here's a patch.
> Maybe its easier that way.
>
> (I used the perf-fixes-for-linus git tree to obtain a
> more-then-up-to-date version)
>
> Bye Robert
>
>
> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> index 02d6780..b1cfb88 100644
> --- a/arch/x86/kernel/process.c
> +++ b/arch/x86/kernel/process.c
> @@ -384,6 +384,7 @@ void default_idle(void)
> else
> local_irq_enable();
> current_thread_info()->status |= TS_POLLING;
> + trace_power_end(1);
> } else {
> local_irq_enable();
> /* loop is done by the caller */
> @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> unsigned long cx)
> if (!need_resched())
> __mwait(ax, cx);
> }
> + trace_power_end((ax>>4)+1);
The only argument of trace_power_end() is a dummy, so you can just
pass 0 or 1 to the trace hook, actually better pass 0 to be
consistent with other parts.
The dummy argument can't be eliminated, because the macros that
automatically generates racing code have some limitations, and
seems it's not so easy to get over.
> }
>
> /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> @@ -467,6 +469,7 @@ static void mwait_idle(void)
> __sti_mwait(0, 0);
> else
> local_irq_enable();
> + trace_power_end(1);
> } else
> local_irq_enable();
> }
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-24 8:36 ` Li Zefan
@ 2010-02-24 8:44 ` Robert Schöne
2010-02-24 9:00 ` Li Zefan
0 siblings, 1 reply; 9+ messages in thread
From: Robert Schöne @ 2010-02-24 8:44 UTC (permalink / raw)
To: Li Zefan; +Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
Hi,
I tried to pass 0 in "my" sleep routine "static void mwait_idle(void)"
Which led to the following behaviour:
The event was reported on /sys/kernel/debug/tracing, but still not
for sys_perf_open.
As 1 had been the argument which led to a working tracing, I assumed,
that the argument should be the same as the 2nd arg of the last
power_start event.
Since this argument had been 1 in my case, it worked for me. However, 0
did not.
Bye Robert
Am Mittwoch, den 24.02.2010, 16:36 +0800 schrieb Li Zefan:
> Robert Schöne wrote:
> > Hello,
> >
> > Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> > way to fix the missing c-state tracing, here's a patch.
> > Maybe its easier that way.
> >
> > (I used the perf-fixes-for-linus git tree to obtain a
> > more-then-up-to-date version)
> >
> > Bye Robert
> >
> >
> > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> > index 02d6780..b1cfb88 100644
> > --- a/arch/x86/kernel/process.c
> > +++ b/arch/x86/kernel/process.c
> > @@ -384,6 +384,7 @@ void default_idle(void)
> > else
> > local_irq_enable();
> > current_thread_info()->status |= TS_POLLING;
> > + trace_power_end(1);
> > } else {
> > local_irq_enable();
> > /* loop is done by the caller */
> > @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> > unsigned long cx)
> > if (!need_resched())
> > __mwait(ax, cx);
> > }
> > + trace_power_end((ax>>4)+1);
>
> The only argument of trace_power_end() is a dummy, so you can just
> pass 0 or 1 to the trace hook, actually better pass 0 to be
> consistent with other parts.
>
> The dummy argument can't be eliminated, because the macros that
> automatically generates racing code have some limitations, and
> seems it's not so easy to get over.
>
> > }
> >
> > /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> > @@ -467,6 +469,7 @@ static void mwait_idle(void)
> > __sti_mwait(0, 0);
> > else
> > local_irq_enable();
> > + trace_power_end(1);
> > } else
> > local_irq_enable();
> > }
> >
> >
> --
> 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/
>
------------------------- Mail from Febr. 15th --------------------
Hi,
I have a question regarding the event "power/power_end".
For the standard linux kernel (2.6.32.8), it's just not reported -
neither for the /sys/kernel/debug/tracing nor for the sys_perf_open
approach.
System:
Intel Core 2 Quad,
Kernel 2.6.32.8,
for sys_perf_open:always using sampling counters,
(Kernel 2.6.33-rcX should show the same behavior)
After finding "my" c-state procedure in arch/x86/kernel/process.c
(which was "static void mwait_idle(void)" btw), I added a
trace_power_end call on the correct line:
...
else
local_irq_enable();
} else
...
->
...
else
local_irq_enable();
trace_power_end(0);
} else
...
Now the event was reported on /sys/kernel/debug/tracing, but still not
for sys_perf_open.
Then I had the idea, that trace_power_end's argument should be the same
as the 2nd argument of the previous power_start.
That worked.
However, things to be done are: add trace_power_end's to some
process.c's procedures.
Bye Robert
-------------------------End of Mail of Febr. 15th --------------------
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-24 8:44 ` Robert Schöne
@ 2010-02-24 9:00 ` Li Zefan
2010-02-24 9:05 ` Robert Schöne
0 siblings, 1 reply; 9+ messages in thread
From: Li Zefan @ 2010-02-24 9:00 UTC (permalink / raw)
To: Robert Schöne
Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
Robert Schöne wrote:
> Hi,
>
Please don't top posting. :)
> I tried to pass 0 in "my" sleep routine "static void mwait_idle(void)"
> Which led to the following behaviour:
> The event was reported on /sys/kernel/debug/tracing, but still not
> for sys_perf_open.
The event was not reported by sys_perf_open()? Could you be more
elaborate on this? Because I don't get you here.
> As 1 had been the argument which led to a working tracing, I assumed,
> that the argument should be the same as the 2nd arg of the last
> power_start event.
> Since this argument had been 1 in my case, it worked for me. However, 0
> did not.
>
> Bye Robert
>
>
>
> Am Mittwoch, den 24.02.2010, 16:36 +0800 schrieb Li Zefan:
>> Robert Schöne wrote:
>>> Hello,
>>>
>>> Since noone replied to my last mail (Febr. 15th, 11:42), describing the
>>> way to fix the missing c-state tracing, here's a patch.
>>> Maybe its easier that way.
>>>
>>> (I used the perf-fixes-for-linus git tree to obtain a
>>> more-then-up-to-date version)
>>>
>>> Bye Robert
>>>
>>>
>>> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
>>> index 02d6780..b1cfb88 100644
>>> --- a/arch/x86/kernel/process.c
>>> +++ b/arch/x86/kernel/process.c
>>> @@ -384,6 +384,7 @@ void default_idle(void)
>>> else
>>> local_irq_enable();
>>> current_thread_info()->status |= TS_POLLING;
>>> + trace_power_end(1);
>>> } else {
>>> local_irq_enable();
>>> /* loop is done by the caller */
>>> @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
>>> unsigned long cx)
>>> if (!need_resched())
>>> __mwait(ax, cx);
>>> }
>>> + trace_power_end((ax>>4)+1);
>> The only argument of trace_power_end() is a dummy, so you can just
>> pass 0 or 1 to the trace hook, actually better pass 0 to be
>> consistent with other parts.
>>
>> The dummy argument can't be eliminated, because the macros that
>> automatically generates racing code have some limitations, and
>> seems it's not so easy to get over.
>>
>>> }
>>>
>>> /* Default MONITOR/MWAIT with no hints, used for default C1 state */
>>> @@ -467,6 +469,7 @@ static void mwait_idle(void)
>>> __sti_mwait(0, 0);
>>> else
>>> local_irq_enable();
>>> + trace_power_end(1);
>>> } else
>>> local_irq_enable();
>>> }
>>>
>>>
>> --
>> 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/
>>
> ------------------------- Mail from Febr. 15th --------------------
> Hi,
> I have a question regarding the event "power/power_end".
> For the standard linux kernel (2.6.32.8), it's just not reported -
> neither for the /sys/kernel/debug/tracing nor for the sys_perf_open
> approach.
>
> System:
> Intel Core 2 Quad,
> Kernel 2.6.32.8,
> for sys_perf_open:always using sampling counters,
> (Kernel 2.6.33-rcX should show the same behavior)
>
> After finding "my" c-state procedure in arch/x86/kernel/process.c
> (which was "static void mwait_idle(void)" btw), I added a
> trace_power_end call on the correct line:
> ...
> else
> local_irq_enable();
> } else
> ...
> ->
> ...
> else
> local_irq_enable();
> trace_power_end(0);
> } else
> ...
> Now the event was reported on /sys/kernel/debug/tracing, but still not
> for sys_perf_open.
>
> Then I had the idea, that trace_power_end's argument should be the same
> as the 2nd argument of the previous power_start.
>
> That worked.
>
> However, things to be done are: add trace_power_end's to some
> process.c's procedures.
>
>
> Bye Robert
>
> -------------------------End of Mail of Febr. 15th --------------------
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-24 9:00 ` Li Zefan
@ 2010-02-24 9:05 ` Robert Schöne
0 siblings, 0 replies; 9+ messages in thread
From: Robert Schöne @ 2010-02-24 9:05 UTC (permalink / raw)
To: Li Zefan; +Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
I forgot to mention that I appended my original mail at the bottom of my
previous one.
Here it is:
> ------------------------- Mail from Febr. 15th --------------------
> > Hi,
> > I have a question regarding the event "power/power_end".
> > For the standard linux kernel (2.6.32.8), it's just not reported -
> > neither for the /sys/kernel/debug/tracing nor for the sys_perf_open
> > approach.
Reported means here: sampling events were not generated/there were no entries in debug/tracing.
> >
> > System:
> > Intel Core 2 Quad,
> > Kernel 2.6.32.8,
> > for sys_perf_open:always using sampling counters,
> > (Kernel 2.6.33-rcX should show the same behavior)
> >
> > After finding "my" c-state procedure in arch/x86/kernel/process.c
> > (which was "static void mwait_idle(void)" btw), I added a
> > trace_power_end call on the correct line:
> > ...
> > else
> > local_irq_enable();
> > } else
> > ...
> > ->
> > ...
> > else
> > local_irq_enable();
> > trace_power_end(0);
> > } else
> > ...
> > Now the event was reported on /sys/kernel/debug/tracing, but still not
> > for sys_perf_open.
> >
> > Then I had the idea, that trace_power_end's argument should be the same
> > as the 2nd argument of the previous power_start.
> >
> > That worked.
> >
> > However, things to be done are: add trace_power_end's to some
> > process.c's procedures.
> >
> >
> > Bye Robert
> >
> > -------------------------End of Mail of Febr. 15th --------------------
Am Mittwoch, den 24.02.2010, 17:00 +0800 schrieb Li Zefan:
> Robert Schöne wrote:
> > Hi,
> >
>
> Please don't top posting. :)
>
> > I tried to pass 0 in "my" sleep routine "static void mwait_idle(void)"
> > Which led to the following behaviour:
> > The event was reported on /sys/kernel/debug/tracing, but still not
> > for sys_perf_open.
>
> The event was not reported by sys_perf_open()? Could you be more
> elaborate on this? Because I don't get you here.
>
> > As 1 had been the argument which led to a working tracing, I assumed,
> > that the argument should be the same as the 2nd arg of the last
> > power_start event.
> > Since this argument had been 1 in my case, it worked for me. However, 0
> > did not.
> >
> > Bye Robert
> >
> >
> >
> > Am Mittwoch, den 24.02.2010, 16:36 +0800 schrieb Li Zefan:
> >> Robert Schöne wrote:
> >>> Hello,
> >>>
> >>> Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> >>> way to fix the missing c-state tracing, here's a patch.
> >>> Maybe its easier that way.
> >>>
> >>> (I used the perf-fixes-for-linus git tree to obtain a
> >>> more-then-up-to-date version)
> >>>
> >>> Bye Robert
> >>>
> >>>
> >>> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> >>> index 02d6780..b1cfb88 100644
> >>> --- a/arch/x86/kernel/process.c
> >>> +++ b/arch/x86/kernel/process.c
> >>> @@ -384,6 +384,7 @@ void default_idle(void)
> >>> else
> >>> local_irq_enable();
> >>> current_thread_info()->status |= TS_POLLING;
> >>> + trace_power_end(1);
> >>> } else {
> >>> local_irq_enable();
> >>> /* loop is done by the caller */
> >>> @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> >>> unsigned long cx)
> >>> if (!need_resched())
> >>> __mwait(ax, cx);
> >>> }
> >>> + trace_power_end((ax>>4)+1);
> >> The only argument of trace_power_end() is a dummy, so you can just
> >> pass 0 or 1 to the trace hook, actually better pass 0 to be
> >> consistent with other parts.
> >>
> >> The dummy argument can't be eliminated, because the macros that
> >> automatically generates racing code have some limitations, and
> >> seems it's not so easy to get over.
> >>
> >>> }
> >>>
> >>> /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> >>> @@ -467,6 +469,7 @@ static void mwait_idle(void)
> >>> __sti_mwait(0, 0);
> >>> else
> >>> local_irq_enable();
> >>> + trace_power_end(1);
> >>> } else
> >>> local_irq_enable();
> >>> }
> >>>
> >>>
> >> --
> >> 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/
> >>
> >
> >
> >
> >
> --
> 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/
>
--
Robert Schoene
Technische Universitaet Dresden
Zentrum fuer Informationsdienste und Hochleistungsrechnen
01062 Dresden
Tel.: (0351) 463-42483, Fax: (0351) 463-37773
E-Mail: Robert.Schoene@tu-dresden.de
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-24 8:19 Patch for tracing c states (power_end) on x86 Robert Schöne
2010-02-24 8:36 ` Li Zefan
@ 2010-02-25 12:52 ` Peter Zijlstra
2010-03-11 6:36 ` Robert Schöne
1 sibling, 1 reply; 9+ messages in thread
From: Peter Zijlstra @ 2010-02-25 12:52 UTC (permalink / raw)
To: Robert Schöne
Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
On Wed, 2010-02-24 at 09:19 +0100, Robert Schöne wrote:
> Hello,
>
> Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> way to fix the missing c-state tracing, here's a patch.
> Maybe its easier that way.
>
> (I used the perf-fixes-for-linus git tree to obtain a
> more-then-up-to-date version)
Arjan, any comments?, you seem skilled with this power stuff ;-)
> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> index 02d6780..b1cfb88 100644
> --- a/arch/x86/kernel/process.c
> +++ b/arch/x86/kernel/process.c
> @@ -384,6 +384,7 @@ void default_idle(void)
> else
> local_irq_enable();
> current_thread_info()->status |= TS_POLLING;
> + trace_power_end(1);
> } else {
> local_irq_enable();
> /* loop is done by the caller */
> @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> unsigned long cx)
> if (!need_resched())
> __mwait(ax, cx);
> }
> + trace_power_end((ax>>4)+1);
> }
>
> /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> @@ -467,6 +469,7 @@ static void mwait_idle(void)
> __sti_mwait(0, 0);
> else
> local_irq_enable();
> + trace_power_end(1);
> } else
> local_irq_enable();
> }
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-02-25 12:52 ` Peter Zijlstra
@ 2010-03-11 6:36 ` Robert Schöne
2010-03-11 8:12 ` Peter Zijlstra
0 siblings, 1 reply; 9+ messages in thread
From: Robert Schöne @ 2010-03-11 6:36 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
Did anyone look at the problem described and checked the patch?
I still received no reply.
Am Donnerstag, den 25.02.2010, 13:52 +0100 schrieb Peter Zijlstra:
> On Wed, 2010-02-24 at 09:19 +0100, Robert Schöne wrote:
> > Hello,
> >
> > Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> > way to fix the missing c-state tracing, here's a patch.
> > Maybe its easier that way.
> >
> > (I used the perf-fixes-for-linus git tree to obtain a
> > more-then-up-to-date version)
>
> Arjan, any comments?, you seem skilled with this power stuff ;-)
>
> > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> > index 02d6780..b1cfb88 100644
> > --- a/arch/x86/kernel/process.c
> > +++ b/arch/x86/kernel/process.c
> > @@ -384,6 +384,7 @@ void default_idle(void)
> > else
> > local_irq_enable();
> > current_thread_info()->status |= TS_POLLING;
> > + trace_power_end(1);
> > } else {
> > local_irq_enable();
> > /* loop is done by the caller */
> > @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> > unsigned long cx)
> > if (!need_resched())
> > __mwait(ax, cx);
> > }
> > + trace_power_end((ax>>4)+1);
> > }
> >
> > /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> > @@ -467,6 +469,7 @@ static void mwait_idle(void)
> > __sti_mwait(0, 0);
> > else
> > local_irq_enable();
> > + trace_power_end(1);
> > } else
> > local_irq_enable();
> > }
> >
>
>
> --
> 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/
>
--
Robert Schoene
Technische Universitaet Dresden
Zentrum fuer Informationsdienste und Hochleistungsrechnen
01062 Dresden
Tel.: (0351) 463-42483, Fax: (0351) 463-37773
E-Mail: Robert.Schoene@tu-dresden.de
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-03-11 6:36 ` Robert Schöne
@ 2010-03-11 8:12 ` Peter Zijlstra
2010-03-11 10:56 ` Ingo Molnar
0 siblings, 1 reply; 9+ messages in thread
From: Peter Zijlstra @ 2010-03-11 8:12 UTC (permalink / raw)
To: Robert Schöne
Cc: Arjan van de Ven, Ingo Molnar, Thomas Gleixner, kernel list
On Thu, 2010-03-11 at 07:36 +0100, Robert Schöne wrote:
> Did anyone look at the problem described and checked the patch?
> I still received no reply.
Ingo, how about applying it and letting people complain when they don't
agree? :-)
> Am Donnerstag, den 25.02.2010, 13:52 +0100 schrieb Peter Zijlstra:
> > On Wed, 2010-02-24 at 09:19 +0100, Robert Schöne wrote:
> > > Hello,
> > >
> > > Since noone replied to my last mail (Febr. 15th, 11:42), describing the
> > > way to fix the missing c-state tracing, here's a patch.
> > > Maybe its easier that way.
> > >
> > > (I used the perf-fixes-for-linus git tree to obtain a
> > > more-then-up-to-date version)
> >
> > Arjan, any comments?, you seem skilled with this power stuff ;-)
> >
> > > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> > > index 02d6780..b1cfb88 100644
> > > --- a/arch/x86/kernel/process.c
> > > +++ b/arch/x86/kernel/process.c
> > > @@ -384,6 +384,7 @@ void default_idle(void)
> > > else
> > > local_irq_enable();
> > > current_thread_info()->status |= TS_POLLING;
> > > + trace_power_end(1);
> > > } else {
> > > local_irq_enable();
> > > /* loop is done by the caller */
> > > @@ -451,6 +452,7 @@ void mwait_idle_with_hints(unsigned long ax,
> > > unsigned long cx)
> > > if (!need_resched())
> > > __mwait(ax, cx);
> > > }
> > > + trace_power_end((ax>>4)+1);
> > > }
> > >
> > > /* Default MONITOR/MWAIT with no hints, used for default C1 state */
> > > @@ -467,6 +469,7 @@ static void mwait_idle(void)
> > > __sti_mwait(0, 0);
> > > else
> > > local_irq_enable();
> > > + trace_power_end(1);
> > > } else
> > > local_irq_enable();
> > > }
> > >
> >
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Patch for tracing c states (power_end) on x86
2010-03-11 8:12 ` Peter Zijlstra
@ 2010-03-11 10:56 ` Ingo Molnar
0 siblings, 0 replies; 9+ messages in thread
From: Ingo Molnar @ 2010-03-11 10:56 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Robert Sch?ne, Arjan van de Ven, Thomas Gleixner, kernel list
* Peter Zijlstra <peterz@infradead.org> wrote:
> On Thu, 2010-03-11 at 07:36 +0100, Robert Sch??ne wrote:
> > Did anyone look at the problem described and checked the patch?
> > I still received no reply.
>
> Ingo, how about applying it and letting people complain when they don't
> agree? :-)
We can do that. Robert, mind sending the patch with a changelog and with your
Signed-off-by and with Peter's Acked-by?
Thanks,
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-03-11 10:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 8:19 Patch for tracing c states (power_end) on x86 Robert Schöne
2010-02-24 8:36 ` Li Zefan
2010-02-24 8:44 ` Robert Schöne
2010-02-24 9:00 ` Li Zefan
2010-02-24 9:05 ` Robert Schöne
2010-02-25 12:52 ` Peter Zijlstra
2010-03-11 6:36 ` Robert Schöne
2010-03-11 8:12 ` Peter Zijlstra
2010-03-11 10:56 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox