From 2c279bc4231e44dba80e5fdb10aa1626e412eab3 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sat, 31 Oct 2009 13:54:41 -0400 Subject: 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. --- includes/sys/sdt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/sys') 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 -- cgit