diff options
author | Stan Cox <scox@redhat.com> | 2009-04-13 17:51:58 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-04-13 17:51:58 -0400 |
commit | 8ca27b7dc58bf14e86cd40ae6246962fa580966d (patch) | |
tree | cd47c90e42a0956a87fee74aaa42fb9b5e90a930 /testsuite | |
parent | f5f4f6b9712d3a93e42d5c2f81d21bf229d65ab6 (diff) | |
download | systemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.tar.gz systemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.tar.xz systemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.zip |
Improve -l output for .label
* tapsets.cxx (iterate_over_cu_labels): Treat -l specially so the
output of a .label can be improved.
* labels.stp: Test -l
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/systemtap.base/labels.exp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/labels.exp b/testsuite/systemtap.base/labels.exp index 268bb320..88ed4619 100644 --- a/testsuite/systemtap.base/labels.exp +++ b/testsuite/systemtap.base/labels.exp @@ -55,8 +55,23 @@ if { $res != "" } { pass "compiling labels.c -g" } +# list of labels + +spawn stap -l "process(\"$label_exepath\").function(\"*\").label(\"*\")" + +wait +expect { + -timeout 180 + -re {process.*function.*labels.c:5...label..init_an_int.*process.*function.*labels.c:16...label..init_an_int.*process.*function.*labels.c:18...label..init_an_int_again} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} + +if {$ok == 1} { pass "$test -l .label" } { fail "$test -l .label $ok" } + # label in an executable +set ok 0 verbose -log "spawn stap -c $label_exepath $label_stppath" spawn stap -c $label_exepath $label_stppath |