diff options
author | Stan Cox <scox@redhat.com> | 2009-04-08 17:19:04 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-04-08 17:19:04 -0400 |
commit | e87251e16921a2d52a35212278e45f0c0af1cc5d (patch) | |
tree | 6472215657cadcf3a86cc3b913c89eadc35f2097 /testsuite/systemtap.base | |
parent | 0af51b594e033a9d7148be6428f7365f2fcd1663 (diff) | |
download | systemtap-steved-e87251e16921a2d52a35212278e45f0c0af1cc5d.tar.gz systemtap-steved-e87251e16921a2d52a35212278e45f0c0af1cc5d.tar.xz systemtap-steved-e87251e16921a2d52a35212278e45f0c0af1cc5d.zip |
Consider function when handling .label
* tapsets.cxx(dwflpp::iterate_over_cu_labels): New parameter function.
Do wildcard match for function.
* testsuite/systemtap.base/labels.exp: Test .label function handling.
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/labels.exp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/labels.exp b/testsuite/systemtap.base/labels.exp index f389f08c..268bb320 100644 --- a/testsuite/systemtap.base/labels.exp +++ b/testsuite/systemtap.base/labels.exp @@ -10,9 +10,16 @@ set label_flags "additional_flags=-g" set fp [open $label_srcpath "w"] puts $fp " int +foo () +{ +init_an_int: + return 1; +} +int main () { sleep(5); + foo(); int a = 0; int b = 0; char *c; @@ -30,9 +37,9 @@ close $fp set label_stppath "[pwd]/labels.stp" set fp [open $label_stppath "w"] puts $fp " -probe process(\"labels.x\").function(\"main*@labels.c\").label(\"init_*\") {printf (\"VARS %s\\n\",\$\$vars)} -probe process(\"labels.x\").function(\"main*@labels.c\").label(\"ptr_inited\") {printf (\"VARS %s\\n\",\$\$vars)} -probe process(\"labels.x\").function(\"main*@labels.c\").label(\"init_an_int\") {printf (\"init_an_int\\n\")} +probe process(\"labels.x\").function(\"main@labels.c\").label(\"init_*\") {printf (\"VARS %s\\n\",\$\$vars)} +probe process(\"labels.x\").function(\"main@labels.c\").label(\"ptr_inited\") {printf (\"VARS %s\\n\",\$\$vars)} +probe process(\"labels.x\").function(\"main@labels.c\").label(\"init_an_int\") {printf (\"init_an_int\\n\")} " close $fp |