操作系统版本
/home/vagrant/src/systemtap ➜ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
内核版本
/home/vagrant/src/systemtap ➜ uname -r
3.10.0-514.10.2.el7.x86_64
Openresty版本
GeekBang ➽ /home/vagrant/src/systemtap ➜ /usr/local/bin/nginx -V
nginx version: openresty/1.11.2.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
Systemtap版本
/home/vagrant/src/systemtap ➜ /usr/bin/stap -V
Systemtap translator/driver (version 3.2/0.168, commit release-3.1-309-gc21b4e888cff + changes)
Copyright (C) 2005-2017 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 4.11
enabled features: NLS
错误信息
/home/vagrant/stapxx ➜ sudo ./stap++ ./samples/lj-lua-stacks.sxx --arg time=5 --skip-badvars -x 4669 -v > tmp.bt
/home/vagrant/stapxx/tapset/luajit.sxx: line 7: libluajit is not found, assuming it is statically linked.
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:7:1
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:154:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:161:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:168:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:175:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:308:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:356:35
source: o = @cast(L, "lua_State", "/usr/local/openresty/1.11.2.2/nginx/sbin/nginx (deleted)->base + (idx - 1) * @sizeof_TValue
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:377:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:385:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:405:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:425:5
source: ")
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:449:32
source: gco = @cast(pt, "GCproto", "/usr/local/openresty/1.11.2.2/nginx/sbin/nginx (deleted)->chunkname->gcptr32
^
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/luajit.stp:474:35
source: sizebc = @cast(pt, "GCproto", "/usr/local/openresty/1.11.2.2/nginx/sbin/nginx (deleted)->sizebc
^
parse error: could not find end of macro invocation
at: operator '@proto_bcpos' at stapxx-0Pw4U2VV/luajit.stp:481:15
source: pos = @proto_bcpos(pt, @cast(T, "GCtrace", "/usr/local/openresty/1.11.2.2/nginx/sbin/nginx (deleted)->startpc->ptr32);
^
14 parse errors.
WARNING: tapset "stapxx-0Pw4U2VV/luajit.stp" has errors, and will be skipped
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/nginx.config.stp:6:5
source: ")
^
1 parse error.
WARNING: tapset "stapxx-0Pw4U2VV/nginx.config.stp" has errors, and will be skipped
parse error: Could not find matching closing quote
at: junk '' at stapxx-0Pw4U2VV/nginx.lua.stp:18:9
source: ")
^
1 parse error.
WARNING: tapset "stapxx-0Pw4U2VV/nginx.lua.stp" has errors, and will be skipped
Pass 1: parsed user script and 469 library scripts using 177972virt/45948res/2404shr/44256data kb, in 250usr/20sys/264real ms.
Pass 1: parse failed. [man error::pass1]