Dear Members,

I am trying to use systemtap on Pandaboard with Linaro Ubuntu 13.04
version. http://releases.linaro.org/13.04/ubuntu/panda

I have installed systemtap & other dependencies by apt-get. And followed
the instructions below.

https://wiki.linaro.org/Platform/DevPlatform/Tools/Systemtap

Simple script to test systemtap:
stap -k -v -e 'probe vfs.read {printf("read performed\n"); exit()}'

It failed at the step 4(pass) to compile the code.
By default -Werror flag is also enabled by stap. I guess that would be the
cause. Also there are few other errors.

Please find the compilation error message below & let me know how to solve
this.
Thanks in advance.


localhost:~# stap -k -v -e 'probe vfs.read {printf("read performed\n"); exi
Pass 1: parsed user script and 79 library script(s) using
17588virt/12740res/1716shr kb, in 900usr/20sys/912real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 3 embed(s), 0 global(s)
using 188456virt/72220res/2284shr kb, in 9440usr/590sys/10031real ms.
Pass 3: translated to C into "/tmp/staprrXuW5/stap_1871_src.c" using
188456virt/75576res/5640shr kb, in 120usr/20sys/145real ms.
In file included from /usr/share/systemtap/runtime/runtime.h:130:0,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/copy.c: In function '_stp_strncpy_from_user':
/usr/share/systemtap/runtime/copy.c:137:3: error: implicit declaration of
function '__strncpy_from_user' [-Werror=implicit-function-declaration]
In file included from /usr/share/systemtap/runtime/stp_utrace.c:32:0,
                 from /usr/share/systemtap/runtime/task_finder2.c:4,
                 from /usr/share/systemtap/runtime/task_finder.c:21,
                 from /usr/share/systemtap/runtime/runtime.h:138,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/stp_utrace.h: At top level:
/usr/share/systemtap/runtime/stp_utrace.h:258:14: error: 'struct
linux_binprm' declared inside parameter list [-Werror]
/usr/share/systemtap/runtime/stp_utrace.h:258:14: error: its scope is only
this definition or declaration, which is probably not what you want
[-Werror]
In file included from /usr/share/systemtap/runtime/task_finder2.c:4:0,
                 from /usr/share/systemtap/runtime/task_finder.c:21,
                 from /usr/share/systemtap/runtime/runtime.h:138,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/stp_utrace.c: In function 'utrace_shutdown':
/usr/share/systemtap/runtime/stp_utrace.c:289:61: error: macro
"hlist_for_each_entry_safe" passed 5 arguments, but takes just 4
/usr/share/systemtap/runtime/stp_utrace.c:289:3: error:
'hlist_for_each_entry_safe' undeclared (first use in this function)
/usr/share/systemtap/runtime/stp_utrace.c:289:3: note: each undeclared
identifier is reported only once for each function it appears in
/usr/share/systemtap/runtime/stp_utrace.c:289:63: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/stp_utrace.c: In function
'__task_utrace_struct':
/usr/share/systemtap/runtime/stp_utrace.c:308:48: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/stp_utrace.c:308:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/stp_utrace.c:308:50: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/stp_utrace.c:313:1: error: no return statement
in function returning non-void [-Werror=return-type]
In file included from /usr/share/systemtap/runtime/task_finder2.c:13:0,
                 from /usr/share/systemtap/runtime/task_finder.c:21,
                 from /usr/share/systemtap/runtime/runtime.h:138,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/task_finder_map.c: In function
'__stp_tf_map_get_free_entry':
/usr/share/systemtap/runtime/task_finder_map.c:74:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_map.c:74:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_map.c:74:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_map.c: In function
'__stp_tf_get_map_entry':
/usr/share/systemtap/runtime/task_finder_map.c:114:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_map.c:114:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_map.c:114:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_map.c: In function
'__stp_tf_add_map':
/usr/share/systemtap/runtime/task_finder_map.c:138:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_map.c:138:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_map.c:138:49: error: expected ';'
before '{' token
In file included from /usr/share/systemtap/runtime/task_finder.c:21:0,
                 from /usr/share/systemtap/runtime/runtime.h:138,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/task_finder2.c: In function
'stap_register_task_finder_target':
/usr/share/systemtap/runtime/task_finder2.c:152:27: error: assignment from
incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/task_finder2.c: In function
'__stp_get_mm_path':
/usr/share/systemtap/runtime/task_finder2.c:353:24: error: 'VM_EXECUTABLE'
undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder2.c: At top level:
/usr/share/systemtap/runtime/task_finder2.c:1324:2: error: initialization
from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/task_finder2.c:1324:2: error: (near
initialization for '__stp_utrace_task_finder_ops.report_exec') [-Werror]
In file included from /usr/share/systemtap/runtime/vma.c:18:0,
                 from /usr/share/systemtap/runtime/sym.c:16,
                 from /usr/share/systemtap/runtime/runtime.h:140,
                 from /tmp/staprrXuW5/stap_1871_src.c:20:
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'stap_destroy_vma_map':
/usr/share/systemtap/runtime/task_finder_vma.c:102:64: error: macro
"hlist_for_each_entry_safe" passed 5 arguments, but takes just 4
/usr/share/systemtap/runtime/task_finder_vma.c:102:11: error:
'hlist_for_each_entry_safe' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:102:66: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'__stp_tf_get_vma_map_entry_internal':
/usr/share/systemtap/runtime/task_finder_vma.c:131:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_vma.c:131:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:131:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_vma.c:138:1: error: no return
statement in function returning non-void [-Werror=return-type]
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'__stp_tf_get_vma_map_entry_end_internal':
/usr/share/systemtap/runtime/task_finder_vma.c:152:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_vma.c:152:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:152:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_vma.c:159:1: error: no return
statement in function returning non-void [-Werror=return-type]
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'stap_find_vma_map_info':
/usr/share/systemtap/runtime/task_finder_vma.c:290:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_vma.c:290:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:290:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'stap_find_vma_map_info_user':
/usr/share/systemtap/runtime/task_finder_vma.c:334:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
/usr/share/systemtap/runtime/task_finder_vma.c:334:2: error:
'hlist_for_each_entry' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:334:49: error: expected ';'
before '{' token
/usr/share/systemtap/runtime/task_finder_vma.c: In function
'stap_drop_vma_maps':
/usr/share/systemtap/runtime/task_finder_vma.c:365:62: error: macro
"hlist_for_each_entry_safe" passed 5 arguments, but takes just 4
/usr/share/systemtap/runtime/task_finder_vma.c:365:9: error:
'hlist_for_each_entry_safe' undeclared (first use in this function)
/usr/share/systemtap/runtime/task_finder_vma.c:365:64: error: expected ';'
before '{' token
cc1: all warnings being treated as errors
make[1]: *** [/tmp/staprrXuW5/stap_1871_src.o] Error 1
make: *** [_module_/tmp/staprrXuW5] Error 2
WARNING: make exited with status: 2
Pass 4: compiled C into "stap_1871.ko" in 22840usr/1690sys/31630real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
Keeping temporary directory "/tmp/staprrXuW5"
root@localhost:~#
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to