├── .github └── workflows │ └── c-cpp.yml ├── .gitignore ├── .gitmodules ├── README.md ├── bpftools ├── README.md ├── nginx_uprobe_example │ ├── bcc_nginx_req.c │ ├── hello.py │ ├── nginx_uprobe.py │ └── test.c └── profile_nginx_lua │ ├── .gitignore │ ├── Makefile │ ├── README.md │ ├── lua_stacks_helper.cpp │ ├── lua_stacks_helper.h │ ├── lua_state.h │ ├── map_helper.h │ ├── maps.bpf.h │ ├── profile.bpf.c │ ├── profile.c │ ├── profile.h │ ├── results │ ├── uk-lua.svg │ ├── user-lua-c.svg │ └── user-lua.svg │ ├── trace_helpers.c │ ├── trace_helpers.h │ ├── uprobe_helpers.c │ └── uprobe_helpers.h ├── dockerfile ├── tools ├── bpftool ├── gen_vmlinux_h.sh └── namespace.sh └── vmlinux ├── arm64 ├── vmlinux.h └── vmlinux_516.h ├── vmlinux.h └── x86 ├── vmlinux.h └── vmlinux_508.h /.github/workflows/c-cpp.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/.github/workflows/c-cpp.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/.gitmodules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/README.md -------------------------------------------------------------------------------- /bpftools/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/README.md -------------------------------------------------------------------------------- /bpftools/nginx_uprobe_example/bcc_nginx_req.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/nginx_uprobe_example/bcc_nginx_req.c -------------------------------------------------------------------------------- /bpftools/nginx_uprobe_example/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/nginx_uprobe_example/hello.py -------------------------------------------------------------------------------- /bpftools/nginx_uprobe_example/nginx_uprobe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/nginx_uprobe_example/nginx_uprobe.py -------------------------------------------------------------------------------- /bpftools/nginx_uprobe_example/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/nginx_uprobe_example/test.c -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/.gitignore -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/Makefile -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/README.md -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/lua_stacks_helper.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/lua_stacks_helper.cpp -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/lua_stacks_helper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/lua_stacks_helper.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/lua_state.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/lua_state.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/map_helper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/map_helper.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/maps.bpf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/maps.bpf.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/profile.bpf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/profile.bpf.c -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/profile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/profile.c -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/profile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/profile.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/results/uk-lua.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/results/uk-lua.svg -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/results/user-lua-c.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/results/user-lua-c.svg -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/results/user-lua.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/results/user-lua.svg -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/trace_helpers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/trace_helpers.c -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/trace_helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/trace_helpers.h -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/uprobe_helpers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/uprobe_helpers.c -------------------------------------------------------------------------------- /bpftools/profile_nginx_lua/uprobe_helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/bpftools/profile_nginx_lua/uprobe_helpers.h -------------------------------------------------------------------------------- /dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/dockerfile -------------------------------------------------------------------------------- /tools/bpftool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/tools/bpftool -------------------------------------------------------------------------------- /tools/gen_vmlinux_h.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/tools/gen_vmlinux_h.sh -------------------------------------------------------------------------------- /tools/namespace.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/tools/namespace.sh -------------------------------------------------------------------------------- /vmlinux/arm64/vmlinux.h: -------------------------------------------------------------------------------- 1 | vmlinux_516.h -------------------------------------------------------------------------------- /vmlinux/arm64/vmlinux_516.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/vmlinux/arm64/vmlinux_516.h -------------------------------------------------------------------------------- /vmlinux/vmlinux.h: -------------------------------------------------------------------------------- 1 | x86/vmlinux_508.h -------------------------------------------------------------------------------- /vmlinux/x86/vmlinux.h: -------------------------------------------------------------------------------- 1 | vmlinux_508.h -------------------------------------------------------------------------------- /vmlinux/x86/vmlinux_508.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yunwei37/nginx-lua-ebpf-toolkit/HEAD/vmlinux/x86/vmlinux_508.h --------------------------------------------------------------------------------