* William Lee Irwin III ([EMAIL PROTECTED]) wrote:
> On Wed, May 30, 2007 at 10:00:34AM -0400, Mathieu Desnoyers wrote:
> >>> + if (prof_on)
> >>> + BUG_ON(cond_call_arm("profile_on"));
>
> * William Lee Irwin III ([EMAIL PROTECTED]) wrote:
> >> What's the point of this BUG_ON()? The condi
* Andi Kleen ([EMAIL PROTECTED]) wrote:
> > I see your point, but there is a level of control on the branch I would
> > lack by doing so: the ability to put the call in either the if or else
> > branch. It is an optimization on i386.
>
> What does it optimize exactly?
>
Nicholas McGuire told me
* Andrew Morton ([EMAIL PROTECTED]) wrote:
> On Fri, 1 Jun 2007 11:54:13 -0400 Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
>
> > * Andrew Morton ([EMAIL PROTECTED]) wrote:
> > > On Wed, 30 May 2007 10:00:34 -0400
> > > Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
> > >
> > > > @@ -2990,7 +2991,8
On Fri, 1 Jun 2007 11:54:13 -0400 Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
> * Andrew Morton ([EMAIL PROTECTED]) wrote:
> > On Wed, 30 May 2007 10:00:34 -0400
> > Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
> >
> > > @@ -2990,7 +2991,8 @@
> > > print_irqtrace_events(prev);
* Andrew Morton ([EMAIL PROTECTED]) wrote:
> On Wed, 30 May 2007 10:00:34 -0400
> Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
>
> > @@ -2990,7 +2991,8 @@
> > print_irqtrace_events(prev);
> > dump_stack();
> > }
> > - profile_hit(SCHED_PROFILING, __builtin_ret
On Wed, May 30, 2007 at 10:00:34AM -0400, Mathieu Desnoyers wrote:
>>> + if (prof_on)
>>> + BUG_ON(cond_call_arm("profile_on"));
* William Lee Irwin III ([EMAIL PROTECTED]) wrote:
>> What's the point of this BUG_ON()? The condition is a priori impossible.
On Thu, May 31, 2007 at 05:12
> I see your point, but there is a level of control on the branch I would
> lack by doing so: the ability to put the call in either the if or else
> branch. It is an optimization on i386.
What does it optimize exactly?
> Also, I live in the expectation that, someday, the gcc guys will be nice
> e
* Andi Kleen ([EMAIL PROTECTED]) wrote:
> Mathieu Desnoyers <[EMAIL PROTECTED]> writes:
> > }
> > - profile_hit(SCHED_PROFILING, __builtin_return_address(0));
> > + cond_call(profile_on,
> > + profile_hit(SCHED_PROFILING, __builtin_return_address(0)));
>
> Would it be possible to
* Matt Mackall ([EMAIL PROTECTED]) wrote:
> > - profile_hit(SCHED_PROFILING, __builtin_return_address(0));
> > + cond_call(profile_on,
> > + profile_hit(SCHED_PROFILING, __builtin_return_address(0)));
>
> I think we could do better here pretty trivially. profile hit still
> has an if
* William Lee Irwin III ([EMAIL PROTECTED]) wrote:
> On Wed, May 30, 2007 at 10:00:34AM -0400, Mathieu Desnoyers wrote:
> > Use conditional calls with lower d-cache hit in optimized version as a
> > condition for scheduler profiling call.
> [...]
> > + if (prof_on)
> > + BUG_ON(cond_cal
Mathieu Desnoyers <[EMAIL PROTECTED]> writes:
> }
> - profile_hit(SCHED_PROFILING, __builtin_return_address(0));
> + cond_call(profile_on,
> + profile_hit(SCHED_PROFILING, __builtin_return_address(0)));
Would it be possible to use a syntax like
if (unlikely_cond_
On Wed, May 30, 2007 at 10:00:34AM -0400, Mathieu Desnoyers wrote:
> Use conditional calls with lower d-cache hit in optimized version as a
> condition for scheduler profiling call.
>
> Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]>
>
> ---
> kernel/profile.c |4
> kernel/sched.c
On Wed, May 30, 2007 at 10:00:34AM -0400, Mathieu Desnoyers wrote:
> Use conditional calls with lower d-cache hit in optimized version as a
> condition for scheduler profiling call.
[...]
> + if (prof_on)
> + BUG_ON(cond_call_arm("profile_on"));
What's the point of this BUG_ON()? T
On Wed, 30 May 2007 10:00:34 -0400
Mathieu Desnoyers <[EMAIL PROTECTED]> wrote:
> @@ -2990,7 +2991,8 @@
> print_irqtrace_events(prev);
> dump_stack();
> }
> - profile_hit(SCHED_PROFILING, __builtin_return_address(0));
> + cond_call(profile_on,
> +
Use conditional calls with lower d-cache hit in optimized version as a
condition for scheduler profiling call.
Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]>
---
kernel/profile.c |4
kernel/sched.c |4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
Index: linux-2.6-lt
Use conditional calls with lower d-cache hit in optimized version as a
condition for scheduler profiling call.
Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]>
---
kernel/profile.c |4
kernel/sched.c | 32 +++-
2 files changed, 23 insertions(+), 13 de
16 matches
Mail list logo