[PATCH] Scheduler Profiling - Use Immediate Values

2007-12-05 Thread Mathieu Desnoyers
Use immediate values with lower d-cache hit in optimized version as a condition for scheduler profiling call. Changelog : - Use imv_* instead of immediate_*. It applies on 2.6.24-rc4-git3. It depends on the Immediate Values (redux) patchset. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> -

Re: [PATCH] Scheduler Profiling - Use Immediate Values

2007-09-12 Thread Andi Kleen
> The idea is not to hide the unlikely, but to leave the opportunity to > make this primitive evolve in something that won't depend on a load > immediate and only require patching of a jump, given the appropriate gcc > support (yet to come). If that ever happens the code can be still changed. But

Re: [PATCH] Scheduler Profiling - Use Immediate Values

2007-09-12 Thread Mathieu Desnoyers
* Andi Kleen ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers <[EMAIL PROTECTED]> writes: > > > > - profile_hit(SCHED_PROFILING, __builtin_return_address(0)); > > + immediate_if (&sched_profiling) > > I must say I really dislike immediate_if(). You complained earlier > that something breaks co

Re: [PATCH] Scheduler Profiling - Use Immediate Values

2007-09-08 Thread Andi Kleen
Mathieu Desnoyers <[EMAIL PROTECTED]> writes: > > - profile_hit(SCHED_PROFILING, __builtin_return_address(0)); > + immediate_if (&sched_profiling) I must say I really dislike immediate_if(). You complained earlier that something breaks coloring, but adding such macros will definitely bre

Re: [PATCH] Scheduler Profiling - Use Immediate Values

2007-09-07 Thread Mathieu Desnoyers
Hi Randy, * Randy Dunlap ([EMAIL PROTECTED]) wrote: > On Thu, 6 Sep 2007 16:05:37 -0400 Mathieu Desnoyers wrote: > > > Scheduler Profiling - Use Immediate Values > > > > Use immediate values with lower d-cache hit in optimized version as a > > condition for scheduler profiling call. > > > > Dep

Re: [PATCH] Scheduler Profiling - Use Immediate Values

2007-09-06 Thread Randy Dunlap
On Thu, 6 Sep 2007 16:05:37 -0400 Mathieu Desnoyers wrote: > Scheduler Profiling - Use Immediate Values > > Use immediate values with lower d-cache hit in optimized version as a > condition for scheduler profiling call. > > Depends on the Immediate values patches, applies to 2.6.23-rc4-mm1. > >

[PATCH] Scheduler Profiling - Use Immediate Values

2007-09-06 Thread Mathieu Desnoyers
Scheduler Profiling - Use Immediate Values Use immediate values with lower d-cache hit in optimized version as a condition for scheduler profiling call. Depends on the Immediate values patches, applies to 2.6.23-rc4-mm1. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> --- drivers/kvm/svm.c