> > I had to extend the task_struct structure in the kernel (in sched.h) for
> > some measurements. First I thought this won't so difficult: I append a
> > new component at the end of the structure (an integer) and adapt the
> > INIT_TASK definition by inserting a ,0 at the end.
> yep, thats the way it's done. Take a look at say patch-2.1.107 as an
> example. (two new fields were added)
Nope. INIT_LOCKS expands to nothing on UP, and has to stay at the end to
work around a nasty gcc-2.7.2.3 bug. So the spinlock_t has to be last all
the time.
-- Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html