William Lee Irwin III <[EMAIL PROTECTED]> writes: > On Fri, Mar 09, 2007 at 12:07:06PM +0300, Serge Belyshev wrote: >> If you see sched_yield() when stracing any 3d program, I suggest you >> to try this bruteforce workaround, which works fine for me, >> disable sched_yield(): > > May I suggest LD_PRELOAD of a library consisting of only a nopped > sched_yield() function in userspace? >
Sure. This is definitely clearer way to do. You just need to put export LD_PRELOAD=/path/to/your/lib.so somewhere early enough. cat > yield.c << EOF int sched_yield (void) { return 0; } EOF gcc yield.c -o yield.so -shared -O2 -fPIC -g - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/