2014-04-22 31 views
0

我正在嘗試執行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

它好像你要運行一個tapset的.stp文件(這是可重複使用的部件庫,如libc中),而不是實際包含的腳本探針&工作要做。有關示例用法,請參閱netfilter_drop.stpnetfilter_summary.stp文件。