diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-10-31 13:54:41 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-31 13:58:38 -0400 |
commit | 2c279bc4231e44dba80e5fdb10aa1626e412eab3 (patch) | |
tree | c931b7a898830dea6684b091e9f2c2c9585d241c /includes/sys/sdt.h | |
parent | 5b8642a208b614769f934c6a4ce2991658025a57 (diff) | |
download | systemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.tar.gz systemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.tar.xz systemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.zip |
reorganize app tests; rewrite tcl as sample of improvements
* testsuite/configure.ac (--enable-testapps): New option.
* testsuite/Makefile.am (TESTAPPS): Pass to dejagnu.
* testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}:
Moved under new systemtap.apps/ subdirectory.
* testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl.
* testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl.
* testsuite/systemtap.apps/tcl.exp: New simplified test driver.
* dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet.
* includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.
Diffstat (limited to 'includes/sys/sdt.h')
-rw-r--r-- | includes/sys/sdt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h index d31d7326..3847c497 100644 --- a/includes/sys/sdt.h +++ b/includes/sys/sdt.h @@ -42,7 +42,7 @@ #if defined STAP_HAS_SEMAPHORES && defined EXPERIMENTAL_UTRACE_SDT #define STAP_SEMAPHORE(probe) \ - if ( probe ## _semaphore ) + if (__builtin_expect ( probe ## _semaphore , 0)) #else #define STAP_SEMAPHORE(probe) #endif |