systemtap脚本出错

时间:2014-04-22 11:20:56

标签: linux ubuntu linux-kernel systemtap

我正在尝试执行systemtap脚本。但是在执行期间我遇到了以下语义错误。

stap -v -g netfilter.stp 
Pass 1: parsed user script and 96 library script(s) using 150164virt/25896res/2100shr/24504data kb, in 230usr/20sys/243real ms.
WARNING: Eliding unused function '__get_mac_addr': identifier '__get_mac_addr' at netfilter.stp:26:10
 source: function __get_mac_addr:string(addr:long) {
                  ^
WARNING: Eliding unused function '__get_skb_arphdr': identifier '__get_skb_arphdr' at :37:10
 source: function __get_skb_arphdr:long(addr:long)
                  ^
WARNING: Eliding unused function '__ip6_skb_proto': identifier '__ip6_skb_proto' at :43:10
 source: function __ip6_skb_proto:long(addr:long)
                  ^


**semantic error: no probes found**


Pass 2: analyzed script: 0 probe(s), 0 function(s), 2 embed(s), 0 global(s) using 352168virt/98268res/3352shr/95492data kb, in 950usr/250sys/2047real ms.
Pass 2: analysis failed.  [man error::pass2]

帮我解决这个问题

1 个答案:

答案 0 :(得分:2)

好像你正在尝试运行一个tapset .stp文件(这是一个可重用部分的库,比如libc),而不是一个实际包含探测器的脚本。要做的工作。有关示例用法,请参阅netfilter_drop.stpnetfilter_summary.stp文件。