Skip to content

Commit ffe7370

Browse files
authoredMar 23, 2022
Merge pull request #25 from Ethane98/master
SPI and FPVA fixes
2 parents 1b403a2 + ede3641 commit ffe7370

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+777
-587
lines changed
 

‎README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222
file is also used by Makefile, I don't put `pwd` in it.
2323
- DYNLINK: true for building shared library for agent, otherwise for building
2424
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
2728
5. For more make options, see [Make Arguments](#make-arguments)
2829

2930
## How to Run
3031
1. Export Runtime environment variables, see Environment Variable section for [detail](#environment-variables):
3132
1. `SP_DIR`
3233
2. `PLATFORM`
3334
3. `SP_AGENT_DIR`
35+
4. `PLATFORM`
3436
2. Make sure that your system does not block non-child ptrace
3537
- To temporarily disable this measure (until a reboot), execute the following command:
3638
`echo 0 > /proc/sys/kernel/yama/ptrace_scope`
@@ -40,7 +42,7 @@
4042
1. To use the environment variable LD_PRELOAD when starting the user process.
4143
Ex: `LD_PRELOAD=$SP_DIR/PLATFORM/test_agent/print_test_agent.so [EXECUTABLE]`
4244
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]`
4446
### Interprocess Propel
4547
- Local Machine
4648
- Interprocess propelling relies on the following environment variables: `SP_DIR`, `PLATFORM`, `SP_AGENT_DIR`
@@ -90,4 +92,4 @@
9092
- make clean_test: clean test stuffs
9193
- make clean: only clean core self-propelled stuffs, excluding dependency
9294
- 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

‎common.flag.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COMMON_LDFLAGS += -lboost_system
2929

3030
COMMON_LDFLAGS += -lpthread -lthread_db
3131

32-
32+
COMMON_LDFLAGS += -ltbbmalloc
3333

3434

3535
#COMMON_LDFLAGS += -L$(LIBDWARF_LIB)

0 commit comments

Comments
 (0)
Please sign in to comment.