error when running probes

corpaul c.bezemer@tudelft.nl
Wed Jun 12 08:27:00 GMT 2013


I am trying to install systemtap with python probes in Debian. After
buildling 2.1 from source (for some reason the 2.2.1 wasn't functioning
correctly with the python stuff on my Ubuntu box, so I decided to go 2.1),
I get the following error when running a simple C probe:

probe:
probe process("./helloworld").function("*")
{
  printf("starting hello world\n")
}

error:
    (venv)jenkins@gorilla1:~/systemtap/probes$ stap helloworld.stp
-c'./helloworld'
    In file included from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder2.c:4:0,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder.c:17,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/runtime.h:185,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/runtime.h:24,
                     from
/tmp/stapTMvT4T/stap_72669031ec089e8f3ad1e54ff45d18b7_1070_src.c:22:
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c: In
function ‘utrace_shutdown’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:373:61:
error: macro "hlist_for_each_entry_safe" passed 5 arguments, but takes just
4
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:373:3:
error: ‘hlist_for_each_entry_safe’ undeclared (first use in this function)
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:373:3:
note: each undeclared identifier is reported only once for each function it
appears in
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:373:63:
error: expected ‘;’ before ‘{’ token
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c: In
function ‘__task_utrace_struct’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:392:48:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:392:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:392:50:
error: expected ‘;’ before ‘{’ token
    /home/jenkins/systemtap/inst/share/systemtap/runtime/stp_utrace.c:397:1:
error: no return statement in function returning non-void
[-Werror=return-type]
    In file included from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder2.c:13:0,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder.c:17,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/runtime.h:185,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/runtime.h:24,
                     from
/tmp/stapTMvT4T/stap_72669031ec089e8f3ad1e54ff45d18b7_1070_src.c:22:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:
In function ‘__stp_tf_map_get_free_entry’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:74:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:74:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:74:49:
error: expected ‘;’ before ‘{’ token
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:
In function ‘__stp_tf_get_map_entry’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:114:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:114:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:114:49:
error: expected ‘;’ before ‘{’ token
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:
In function ‘__stp_tf_add_map’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:138:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:138:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder_map.c:138:49:
error: expected ‘;’ before ‘{’ token
    In file included from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder2.c:14:0,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/task_finder.c:17,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/linux/runtime.h:185,
                     from
/home/jenkins/systemtap/inst/share/systemtap/runtime/runtime.h:24,
                     from
/tmp/stapTMvT4T/stap_72669031ec089e8f3ad1e54ff45d18b7_1070_src.c:22:
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘stap_destroy_vma_map’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:105:64:
error: macro "hlist_for_each_entry_safe" passed 5 arguments, but takes just
4
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:105:11:
error: ‘hlist_for_each_entry_safe’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:105:66:
error: expected ‘;’ before ‘{’ token
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘__stp_tf_get_vma_map_entry_internal’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:134:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:134:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:134:49:
error: expected ‘;’ before ‘{’ token
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:141:1:
error: no return statement in function returning non-void
[-Werror=return-type]
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘__stp_tf_get_vma_map_entry_end_internal’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:155:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:155:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:155:49:
error: expected ‘;’ before ‘{’ token
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:162:1:
error: no return statement in function returning non-void
[-Werror=return-type]
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘stap_find_vma_map_info’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:293:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:293:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:293:49:
error: expected ‘;’ before ‘{’ token
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘stap_find_vma_map_info_user’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:337:47:
error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:337:2:
error: ‘hlist_for_each_entry’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:337:49:
error: expected ‘;’ before ‘{’ token
    /home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:
In function ‘stap_drop_vma_maps’:
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:368:62:
error: macro "hlist_for_each_entry_safe" passed 5 arguments, but takes just
4
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:368:9:
error: ‘hlist_for_each_entry_safe’ undeclared (first use in this function)
   
/home/jenkins/systemtap/inst/share/systemtap/runtime/task_finder_vma.c:368:64:
error: expected ‘;’ before ‘{’ token
    cc1: all warnings being treated as errors
    make[1]: ***
[/tmp/stapTMvT4T/stap_72669031ec089e8f3ad1e54ff45d18b7_1070_src.o] Error 1
    make: *** [_module_/tmp/stapTMvT4T] Error 2
    WARNING: kbuild exited with status: 2
    Pass 4: compilation failed.  [man error::pass4]

Does anyone have a suggestion on what's going wrong?




--
View this message in context: http://sourceware-org.1504.n7.nabble.com/error-when-running-probes-tp235083.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.



More information about the Systemtap mailing list