diff options
author | Stan Cox <scox@redhat.com> | 2009-02-18 18:00:42 -0500 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-02-18 18:00:42 -0500 |
commit | 59b2ec52534f90cf22a741cfb482b36f9dcb6a78 (patch) | |
tree | f0329c6e254038b5cd0a967dd662c477a9c30772 /testsuite/systemtap.base | |
parent | 37d42f2a8792be9c25a71b2ad6b4c55252a1b204 (diff) | |
download | systemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.tar.gz systemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.tar.xz systemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.zip |
Always emit .probes section; use .label method as a backup strategy
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/static_uprobes.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/static_uprobes.exp b/testsuite/systemtap.base/static_uprobes.exp index 64cb6434..d80bd0c4 100644 --- a/testsuite/systemtap.base/static_uprobes.exp +++ b/testsuite/systemtap.base/static_uprobes.exp @@ -4,6 +4,7 @@ set test "sduprobes" # Compile a C program to use as the user-space probing target set sup_srcpath "[pwd]/static_uprobes.c" set sup_exepath "[pwd]/static_uprobes.x" +set supcplus_exepath "[pwd]/static_uprobes_cplus.x" set fp [open $sup_srcpath "w"] puts $fp " #include <stdlib.h> @@ -117,7 +118,7 @@ if { $res != "" } { spawn mv $sup_srcpath "[pwd]/static_uprobes.cc" set sup_srcpath "[pwd]/static_uprobes.cc" set sup_flags "$sup_flags c++" -set res [target_compile $sup_srcpath $sup_exepath executable $sup_flags] +set res [target_compile $sup_srcpath $supcplus_exepath executable $sup_flags] if { $res != "" } { verbose "target_compile failed: $res" 2 fail "compiling $sup_srcpath -g" @@ -162,6 +163,7 @@ if {$ok == 4} { pass "$test" } { fail "$test ($ok)" } set ok 0 +spawn objcopy -R .probes $supcplus_exepath $sup_exepath verbose -log "spawn stap -c $sup_exepath $sup_stppath" spawn stap -c $sup_exepath $sup_stppath expect { @@ -178,4 +180,4 @@ expect { wait if {$ok == 4} { pass "$test" } { fail "$test ($ok)" } -catch {exec rm -f $sup_srcpath $sup_exepath $sup_hpath $sup_stppath} +catch {exec rm -f $sup_srcpath $sup_exepath $supcplus_exepath $sup_hpath $sup_stppath} |