Has anyone used systemtap on suse?
It looks like it might have some neat ways to get info about the system,
bus so far it's looking a bit like it isn't being maintained or some things have
changed in its base to break all or many of the examples...
I installed
systemtap-2.0-4.2.x86_64
systemtap-docs-2.0-4.1.noarch
systemtap-runtime-2.0-4.2.x86_64
systemtap-sdt-devel-2.0-4.2.x86_64
systemtap-server-2.0-4.2.x86_64
Just trying the example to show the colors and it fails miserably (below).
Tried other examples
as well, but haven't found one that works -- which is odd considering it's their
examples to show
off the code (you'd think some might work)....
just trying to show ansi_colors in the examples directory I get:
:/usr/share/doc/../examples/general# stap ansi_colors.stp
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/linux/runtime.h:166,
from /usr/share/systemtap/runtime/runtime.h:17,
from
/tmp/stapcr5IC8/stap_cd04e6b3d8fb1846d411ebc984d37ac1_1584_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
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:102:11: error:
‘hlist_for_each_entry_safe’ undeclared (first use in this function)
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:102:11: note: each undeclared
identifier is reported only once for each function it appears in
/usr/share/systemtap/runtime/task_finder_vma.c:102:66: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
/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
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:131:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:131:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/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
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:152:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:152:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/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
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:290:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:290:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/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
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:334:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:334:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/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
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:365:9: error:
‘hlist_for_each_entry_safe’ undeclared (first use in this function)
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
/usr/share/systemtap/runtime/task_finder_vma.c:365:64: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry_safe(entry, node, n, head, hlist) {
^
In file included from /usr/share/systemtap/runtime/linux/task_finder2.c:4:0,
from /usr/share/systemtap/runtime/linux/task_finder.c:17,
from /usr/share/systemtap/runtime/linux/runtime.h:170,
from /usr/share/systemtap/runtime/runtime.h:17,
from
/tmp/stapcr5IC8/stap_cd04e6b3d8fb1846d411ebc984d37ac1_1584_src.c:20:
/usr/share/systemtap/runtime/stp_utrace.c: In function ‘utrace_shutdown’:
/usr/share/systemtap/runtime/stp_utrace.c:266:61: error: macro
"hlist_for_each_entry_safe" passed 5 arguments, but takes just 4
hlist_for_each_entry_safe(utrace, node, node2, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c:266:3: error:
‘hlist_for_each_entry_safe’ undeclared (first use in this function)
hlist_for_each_entry_safe(utrace, node, node2, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c:266:63: error: expected ‘;’ before ‘{’
token
hlist_for_each_entry_safe(utrace, node, node2, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c: In function ‘__task_utrace_struct’:
/usr/share/systemtap/runtime/stp_utrace.c:285:48: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
hlist_for_each_entry(utrace, node, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c:285:2: error: ‘hlist_for_each_entry’
undeclared (first use in this function)
hlist_for_each_entry(utrace, node, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c:285:50: error: expected ‘;’ before ‘{’
token
hlist_for_each_entry(utrace, node, head, hlist) {
^
/usr/share/systemtap/runtime/stp_utrace.c:290:1: error: no return statement in
function returning non-void [-Werror=return-type]
}
^
In file included from /usr/share/systemtap/runtime/linux/task_finder2.c:13:0,
from /usr/share/systemtap/runtime/linux/task_finder.c:17,
from /usr/share/systemtap/runtime/linux/runtime.h:170,
from /usr/share/systemtap/runtime/runtime.h:17,
from
/tmp/stapcr5IC8/stap_cd04e6b3d8fb1846d411ebc984d37ac1_1584_src.c:20:
/usr/share/systemtap/runtime/linux/task_finder_map.c: In function
‘__stp_tf_map_get_free_entry’:
/usr/share/systemtap/runtime/linux/task_finder_map.c:74:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:74:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:74:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c: In function
‘__stp_tf_get_map_entry’:
/usr/share/systemtap/runtime/linux/task_finder_map.c:114:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:114:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:114:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c: In function
‘__stp_tf_add_map’:
/usr/share/systemtap/runtime/linux/task_finder_map.c:138:47: error: macro
"hlist_for_each_entry" passed 4 arguments, but takes just 3
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:138:2: error:
‘hlist_for_each_entry’ undeclared (first use in this function)
hlist_for_each_entry(entry, node, head, hlist) {
^
/usr/share/systemtap/runtime/linux/task_finder_map.c:138:49: error: expected ‘;’
before ‘{’ token
hlist_for_each_entry(entry, node, head, hlist) {
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapcr5IC8/stap_cd04e6b3d8fb1846d411ebc984d37ac1_1584_src.o]
Error 1
make: *** [_module_/tmp/stapcr5IC8] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. Try again with another '--vp 0001' option.
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse+owner(a)opensuse.org