diff options
author | Stan Cox <scox@redhat.com> | 2010-01-15 15:06:35 -0500 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2010-01-15 15:06:35 -0500 |
commit | 77694f530954dfeaf76662ebaae67ac39239a24b (patch) | |
tree | fef1a3f05ba8de5086a088a3fd0acf743bdc4e9d /testsuite/systemtap.base | |
parent | 2a1c9b5db533fe7d2d2d4bac572195c490de62fb (diff) | |
download | systemtap-steved-77694f530954dfeaf76662ebaae67ac39239a24b.tar.gz systemtap-steved-77694f530954dfeaf76662ebaae67ac39239a24b.tar.xz systemtap-steved-77694f530954dfeaf76662ebaae67ac39239a24b.zip |
Relax sdt address check for attach to running process case.
* uprobes-common.c (stap_uprobe_change_plus): Relax VM_EXEC check.
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/sdt_misc.exp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/sdt_misc.exp b/testsuite/systemtap.base/sdt_misc.exp index 74ebdc4e..3ba38c45 100644 --- a/testsuite/systemtap.base/sdt_misc.exp +++ b/testsuite/systemtap.base/sdt_misc.exp @@ -74,13 +74,13 @@ int main () { #ifdef LOOP + #include <signal.h> + signal (SIGINT, &int_handler); + signal (SIGALRM, &alrm_handler); alarm (30); while (!loop_check()) { } - #include <signal.h> - signal (SIGINT, &int_handler); - signal (SIGALRM, &alrm_handler); #endif bar(2); baz(3,(char*)\"abc\"); @@ -379,6 +379,11 @@ if {$ok == 5} { # 5. Test attaching to a running process with markers in a shared object if { $pbtype_mssg != "kprobe" } { +set loop_flags "additional_flags=-I$srcdir/../includes/sys" +set loop_flags "$loop_flags additional_flags=-I$sdtdir" +set loop_flags "$loop_flags additional_flags=-g" +set loop_flags "$loop_flags additional_flags=-I. $pbtype_flag" +set loop_flags "$loop_flags additional_flags=-DLOOP" set loop_flags "$loop_flags additional_flags=-DONLY_MAIN" set loop_flags "$loop_flags additional_flags=-Wl,-rpath,[pwd]" set loop_flags "$loop_flags additional_flags=-L[pwd] additional_flags=-lsdt-$pbtype_mssg" |