| 1 |
ld-preload-test |
| 2 |
=============== |
| 3 |
1. The idea of this test tool is to check the sanity of the LD_PRELOAD |
| 4 |
mechanism in libc for the system on which booster needs to run. |
| 5 |
|
| 6 |
2. Basically, this test tool calls various system calls for which there is |
| 7 |
support in the booster library. Combined with the logging output from this |
| 8 |
tool and the preload-test-lib, one can determine whether the |
| 9 |
pre-loading mechanism is working working in order for booster to initialize. |
| 10 |
|
| 11 |
3. This tool does not test GlusterFS functionality running under booster |
| 12 |
although the path specified to the tool can be a GlusterFS mountpoint but |
| 13 |
that is not very useful. |
| 14 |
|
| 15 |
4. This tool is incomplete without the preload-test-lib and the |
| 16 |
accompanyung shell script that needs to be run for running the test. |
| 17 |
|
| 18 |
ld-preload-lib.so |
| 19 |
================= |
| 20 |
A very simple library that intercepts booster supported system calls |
| 21 |
and prints a log message to stdout. |
| 22 |
Combined with the ld-preload-test, we cam determine whether all system calls |
| 23 |
are getting redirected into this library when LD_PRELOAD'ed. This helps us |
| 24 |
conduct a basic test to ensure that the required syscalls actually will |
| 25 |
be intercepted by the booster library. |
| 26 |
|
| 27 |
|
| 28 |
Instructions |
| 29 |
============ |
| 30 |
|
| 31 |
1. Build the binaries. |
| 32 |
$ make |
| 33 |
|
| 34 |
(We've tested the tool on Debian and CentOS. If there are build errors or |
| 35 |
warnings, please do report them to [email protected].) |
| 36 |
|
| 37 |
2. Run the test. |
| 38 |
$ ./test-preload.sh > preload.log |
| 39 |
|
| 40 |
3. Mail the log to [email protected]. |