enabling/disabling trampoline

Cristiano Ligieri Pereira cpereira at ics.uci.edu
Mon Mar 10 15:54:30 CET 2003


Actually what I'm doing is trying the reproduce some of the results from
the paper "The performance of micro-kernel Based Systems" using
lmbench/hbench/AIM benchmarks on a P4 machine. I'm not quite sure if I
understood what you mean by generating a new C library. Where is the code
for the C library in the source tree?. Isn't there a piece of code
handling all system calls in which I could just change it instead of
changing every occurrence of "int 0x80" in my code?

Cristiano.

------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira

On Mon, 10 Mar 2003, Frank Mehnert wrote:

> On Monday 10 March 2003 14:27, Cristiano Ligieri Pereira wrote:
> > Isn't there a quick (but perhaps not very nice or friendly) way to do it?
> > I'm kind of tight on a schedule to have this data collected.
> 
> Hmm. There isn't a quick hack. You have to replace every occurrence of 
> "int $0x80" in your programs by
> 
>         "1:                     \n\t"
>         "pushf                  \n\t"
>         "push   %%cs            \n\t"
>         "pushl  $2f             \n\t"
>         "pushl  $0x402          \n\t"
>         "pushl  $0xa0008000     \n\t"
>         "ret                    \n\t"
>         "jmp    1b              \n\t"
>         "2:                     \n\t"
> 
> So the best is to generate an extra C library for this, right?
> 
> Frank
> -- 
> ## Dept. of Computer Science, Dresden University of Technology, Germany ##
> ## E-Mail: fm3 at os.inf.tu-dresden.de    http://os.inf.tu-dresden.de/~fm3 ##
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20030310/a5dc2de9/attachment-0001.sig>


More information about the l4-hackers mailing list