|
22 | 22 | file is also used by Makefile, I don't put `pwd` in it.
|
23 | 23 | - DYNLINK: true for building shared library for agent, otherwise for building
|
24 | 24 | static library
|
25 |
| -3. Run `make spi` to build injector and libagent.so. |
26 |
| -4. Run `make test_agent` to build example user agents |
| 25 | + - PLATFORM: set to x86_64-unknown-linux2.4 or i386-unknown-linux2.4 |
| 26 | +3. Run `make spi` in directory x86_64-unknown-linux2.4/ or i386-unknown-linux2.4/ to build injector and libagent.so. |
| 27 | +4. Run `make test_agent` in one of the above directories to build example user agents |
27 | 28 | 5. For more make options, see [Make Arguments](#make-arguments)
|
28 | 29 |
|
29 | 30 | ## How to Run
|
30 | 31 | 1. Export Runtime environment variables, see Environment Variable section for [detail](#environment-variables):
|
31 | 32 | 1. `SP_DIR`
|
32 | 33 | 2. `PLATFORM`
|
33 | 34 | 3. `SP_AGENT_DIR`
|
| 35 | + 4. `PLATFORM` |
34 | 36 | 2. Make sure that your system does not block non-child ptrace
|
35 | 37 | - To temporarily disable this measure (until a reboot), execute the following command:
|
36 | 38 | `echo 0 > /proc/sys/kernel/yama/ptrace_scope`
|
|
40 | 42 | 1. To use the environment variable LD_PRELOAD when starting the user process.
|
41 | 43 | Ex: `LD_PRELOAD=$SP_DIR/PLATFORM/test_agent/print_test_agent.so [EXECUTABLE]`
|
42 | 44 | 1. To use the injector to force a running process to load agent library, note that injector has two modes, pid injection and port injection
|
43 |
| - Ex: `$SP_DIR/PLATFORM/injector.exe pid [PID]` or `$SP_DIR/PLATFORM/injector.exe port [PORT NUMBER]` |
| 45 | + Ex: `$SP_DIR/$PLATFORM/injector.exe pid [PID]` or `$SP_DIR/$PLATFORM/injector.exe port [PORT NUMBER]` |
44 | 46 | ### Interprocess Propel
|
45 | 47 | - Local Machine
|
46 | 48 | - Interprocess propelling relies on the following environment variables: `SP_DIR`, `PLATFORM`, `SP_AGENT_DIR`
|
|
90 | 92 | - make clean_test: clean test stuffs
|
91 | 93 | - make clean: only clean core self-propelled stuffs, excluding dependency
|
92 | 94 | - make clean_all: clean everything, including dependency
|
93 |
| - - make clean_objs: clean core self-propelled objs |
| 95 | + - make clean_objs: clean core self-propelled objs |
0 commit comments