-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #911 from syxl-time/develop
memwatcher:添加直接回收的监控指定进程和测试程序
- Loading branch information
Showing
3 changed files
with
115 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 19 additions & 5 deletions
24
eBPF_Supermarket/Memory_Subsystem/mem_watcher/test/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
# 编译器和编译选项 | ||
CC = gcc | ||
CFLAGS = -g | ||
LDFLAGS = -pthread | ||
|
||
# 可执行文件名 | ||
TARGET = test_mem | ||
|
||
# 源文件 | ||
SRCS = test_mem.c | ||
|
||
# 目标文件 | ||
OBJS = $(SRCS:.c=.o) | ||
|
||
# 伪目标 | ||
.PHONY: all clean | ||
|
||
all: test_mem | ||
# 默认目标 | ||
all: $(TARGET) | ||
|
||
test_mem: test_mem.c | ||
$(CC) $(CFLAGS) -o test_mem test_mem.c | ||
# 目标文件 | ||
$(TARGET): $(SRCS) | ||
$(CC) $(LDFLAGS) -o $@ $(SRCS) | ||
|
||
# 清理目标文件和可执行文件 | ||
clean: | ||
rm -f test_mem | ||
rm -f $(TARGET) $(OBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters