We just care there is some debuginfo, it is allowed have bad var
location descriptors (which will cause some tests to fail of course).
e.g. 2.6.35.6-45.fc14.s390x kernels build with gcc version 4.5.1.
# NB: if one introduced a [kernel_debuginfo_p] proc like the
# ones for uprobes/utrace above, and sprinkled it throughout,
# then this wouldn't have to be a failing condition.
-if {[catch {exec stap -p4 -e {probe syscall.open {println (argstr)}}} result]} {
+# Note the --skip-badvars -w, we just care there is some debuginfo,
+# it is allowed have bad var location descriptors (which will cause
+# some tests to fail of course).
+if {[catch {exec stap --skip-badvars -w -p4 -e {probe syscall.open {println (argstr)}}} result]} {
puts "\n\n\n**** failed systemtap kernel-debuginfo smoke test:\n"
puts $result
# puts "****\n"