标签:
http://blog.csdn.net/jianqiangchen/article/details/29175285
http://blog.csdn.net/jianqiangchen/article/details/29201415
Nginx的configure, make以及install
./configure --prefix=/xx --with-debug --with-cc-opt=‘-g -O0 -finstrument-functions‘
make
make install
将etrace代码加入Ngnix
将ptrace.c拷贝至Nginx源码core目录下。修改objs/Makefile
objs/nginx: objs/src/core/nginx.o objs/src/core/ptrace.o $(LINK) -o objs/nginx objs/src/core/nginx.o objs/src/core/ptrace.o objs/src/core/nginx.o: $(CORE_DEPS) src/core/nginx.c $(CC) -c $(CFLAGS) $(CORE_INCS) -o objs/src/core/nginx.o src/core/nginx.c objs/src/core/ptrace.o: $(CORE_DEPS) src/core/ptrace.c $(CC) -c $(CFLAGS) $(CORE_INCS) -o objs/src/core/ptrace.o src/core/ptrace.c
用etrace跟踪Nginx代码+Nginx HTTP请求流程
标签:
原文地址:http://www.cnblogs.com/zengkefu/p/5572199.html