|
From: <sv...@va...> - 2008-03-24 12:19:10
|
Author: bart Date: 2008-03-24 12:19:14 +0000 (Mon, 24 Mar 2008) New Revision: 7779 Log: Merged trunk changes r7771:7778 to DRDDEV branch. Added: branches/DRDDEV/exp-drd/Testing.txt Modified: branches/DRDDEV/exp-drd/TODO.txt branches/DRDDEV/exp-drd/docs/README.txt branches/DRDDEV/exp-drd/tests/omp_matinv.vgtest branches/DRDDEV/exp-drd/tests/omp_matinv_racy.vgtest branches/DRDDEV/exp-drd/tests/omp_prime_racy.vgtest branches/DRDDEV/exp-drd/tests/run_openmp_test branches/DRDDEV/exp-drd/tests/tc09_bad_unlock.stderr.exp branches/DRDDEV/exp-drd/tests/tc20_verifywrap.stderr.exp branches/DRDDEV/exp-drd/tests/tc20_verifywrap2.stderr.exp branches/DRDDEV/exp-drd/tests/tc23_bogus_condwait.stderr.exp Modified: branches/DRDDEV/exp-drd/TODO.txt =================================================================== --- branches/DRDDEV/exp-drd/TODO.txt 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/TODO.txt 2008-03-24 12:19:14 UTC (rev 7779) @@ -1,4 +1,4 @@ -Last updated February 17, 2008 +Last updated March 24, 2008. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copied: branches/DRDDEV/exp-drd/Testing.txt (from rev 7778, trunk/exp-drd/Testing.txt) =================================================================== --- branches/DRDDEV/exp-drd/Testing.txt (rev 0) +++ branches/DRDDEV/exp-drd/Testing.txt 2008-03-24 12:19:14 UTC (rev 7779) @@ -0,0 +1,57 @@ +How to test DRD +~~~~~~~~~~~~~~~ + +1. Run the regression tests. After having compiled DRD, run the following + command: + perl tests/vg_regtest exp-drd +2. Test whether DRD works with standard KDE applications and whether it does + not print any error messages: + ./vg-in-place --tool=exp-drd kate + ./vg-in-place --trace-children=yes --tool=exp-drd knode +3. Test DRD with Firefox. First of all, build and install Firefox 3. Next, + run the following command: + LD_LIBRARY_PATH=$HOME/firefox3: ./vg-in-place --tool=exp-drd \ + $HOME/firefox3/firefox-bin + + + + +The Firefox source code can be obtained here: +ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${version}/source + +See also http://developer.mozilla.org/en/docs/Build_Documentation + +Firefox can be compiled via the following shell script: +------------------------------------------------------------ +#!/bin/sh + +SRCDIR=$HOME/software +SRC=$SRCDIR/mozilla +BUILD=${SRC}-build +PREFIX=$HOME/firefox3 +MOZCONFIG=$BUILD/mozconfig-firefox + +rm -rf ${BUILD} || exit $? +rm -rf ${PREFIX} || exit $? +mkdir -p ${BUILD} || exit $? +cd ${BUILD} || exit $? + +cat <<EOF >$MOZCONFIG +. $SRC/browser/config/mozconfig +mk_add_options MOZ_OBJDIR="$BUILD" +ac_add_app_options browser --enable-application=browser +ac_add_options --disable-optimize +ac_add_options --disable-tests +ac_add_options --enable-debug +ac_add_options --enable-static +ac_add_options --prefix $PREFIX +EOF + +export MOZCONFIG +export CFLAGS=-pipe + +${SRC}/configure + +make -s || exit $? +make -s install || exit $? +------------------------------------------------------------ Modified: branches/DRDDEV/exp-drd/docs/README.txt =================================================================== --- branches/DRDDEV/exp-drd/docs/README.txt 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/docs/README.txt 2008-03-24 12:19:14 UTC (rev 7779) @@ -381,6 +381,16 @@ http://rsim.cs.uiuc.edu/~sadve/Publications/isca91.dataraces.ps http://portal.acm.org/citation.cfm?doid=115953.115976 +[Cameron 1995] + Steven Cameron Woo, Moriyoshi Ohara, Evan Torrie, Jaswinder Pal Singh + and Anoop Gupta. + The SPLASH-2 Programs: Characterization and Methodological Considerations. + Proceedings of the 22nd International Symposium on Computer Architecture, + pages 24-36, Santa Margherita Ligure, Italy, June 1995. + http://portal.acm.org/citation.cfm?doid=225830.223990 + ftp://www-flash.stanford.edu/pub/splash2/splash2_isca95.ps.Z + http://www-flash.stanford.edu/apps/SPLASH/splash2.tar.gz + [Ousterhout 1996] John Ousterhout. Why Threads Are A Bad Idea (for most purposes). Modified: branches/DRDDEV/exp-drd/tests/omp_matinv.vgtest =================================================================== --- branches/DRDDEV/exp-drd/tests/omp_matinv.vgtest 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/omp_matinv.vgtest 2008-03-24 12:19:14 UTC (rev 7779) @@ -1,3 +1,3 @@ -prereq: ./supported_libpthread && ./run_openmp_test ./omp_matinv +prereq: ./run_openmp_test ./omp_matinv prog: omp_matinv args: 30 -t 15 -q Modified: branches/DRDDEV/exp-drd/tests/omp_matinv_racy.vgtest =================================================================== --- branches/DRDDEV/exp-drd/tests/omp_matinv_racy.vgtest 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/omp_matinv_racy.vgtest 2008-03-24 12:19:14 UTC (rev 7779) @@ -1,4 +1,4 @@ -prereq: ./supported_libpthread && ./run_openmp_test ./omp_matinv +prereq: ./run_openmp_test ./omp_matinv prog: omp_matinv args: 3 -t 2 -q -r stderr_filter: filter_error_summary Modified: branches/DRDDEV/exp-drd/tests/omp_prime_racy.vgtest =================================================================== --- branches/DRDDEV/exp-drd/tests/omp_prime_racy.vgtest 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/omp_prime_racy.vgtest 2008-03-24 12:19:14 UTC (rev 7779) @@ -1,4 +1,4 @@ -prereq: ./supported_libpthread && ./run_openmp_test ./omp_prime +prereq: ./run_openmp_test ./omp_prime prog: omp_prime args: 4 -q stderr_filter: filter_error_summary Modified: branches/DRDDEV/exp-drd/tests/run_openmp_test =================================================================== --- branches/DRDDEV/exp-drd/tests/run_openmp_test 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/run_openmp_test 2008-03-24 12:19:14 UTC (rev 7779) @@ -6,6 +6,8 @@ test -e "$1" || exit $? +./supported_libpthread || exit $? + if [ "$(uname)" = Linux ]; then # Let the dynamic linker/loader print the path of libgomp. See also man ld.so Modified: branches/DRDDEV/exp-drd/tests/tc09_bad_unlock.stderr.exp =================================================================== --- branches/DRDDEV/exp-drd/tests/tc09_bad_unlock.stderr.exp 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/tc09_bad_unlock.stderr.exp 2008-03-24 12:19:14 UTC (rev 7779) @@ -13,7 +13,7 @@ by 0x........: clone (in /...libc...) Thread 1: -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) by 0x........: nearly_main (tc09_bad_unlock.c:41) by 0x........: main (tc09_bad_unlock.c:49) @@ -36,7 +36,7 @@ by 0x........: clone (in /...libc...) Thread 1: -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) by 0x........: nearly_main (tc09_bad_unlock.c:41) by 0x........: main (tc09_bad_unlock.c:50) Modified: branches/DRDDEV/exp-drd/tests/tc20_verifywrap.stderr.exp =================================================================== --- branches/DRDDEV/exp-drd/tests/tc20_verifywrap.stderr.exp 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/tc20_verifywrap.stderr.exp 2008-03-24 12:19:14 UTC (rev 7779) @@ -17,7 +17,7 @@ ---------------- pthread_mutex_lock et al ---------------- -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:92) @@ -25,19 +25,19 @@ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:102) -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:108) -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:116) -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:121) -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:125) Modified: branches/DRDDEV/exp-drd/tests/tc20_verifywrap2.stderr.exp =================================================================== --- branches/DRDDEV/exp-drd/tests/tc20_verifywrap2.stderr.exp 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/tc20_verifywrap2.stderr.exp 2008-03-24 12:19:14 UTC (rev 7779) @@ -18,7 +18,7 @@ [1/1] mutex_init invalid mutex 0x........ -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:92) [1/1] mutex_init mutex 0x........ @@ -31,25 +31,25 @@ by 0x........: main (tc20_verifywrap.c:102) [1/1] pre_mutex_lock invalid mutex 0x........ rc 0 owner 0 -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:108) [1/1] post_mutex_lock invalid mutex 0x........ rc 0 owner 0 [1/1] pre_mutex_lock invalid mutex 0x........ rc 0 owner 0 -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:116) [1/1] post_mutex_lock invalid mutex 0x........ rc 0 owner 0 [1/1] pre_mutex_lock invalid mutex 0x........ rc 0 owner 0 -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:121) [1/1] post_mutex_lock invalid mutex 0x........ rc 0 owner 0 [1/1] mutex_unlock invalid mutex 0x........ rc 0 -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) by 0x........: main (tc20_verifywrap.c:125) Modified: branches/DRDDEV/exp-drd/tests/tc23_bogus_condwait.stderr.exp =================================================================== --- branches/DRDDEV/exp-drd/tests/tc23_bogus_condwait.stderr.exp 2008-03-24 11:56:57 UTC (rev 7778) +++ branches/DRDDEV/exp-drd/tests/tc23_bogus_condwait.stderr.exp 2008-03-24 12:19:14 UTC (rev 7779) @@ -1,5 +1,5 @@ -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?) by 0x........: main (tc23_bogus_condwait.c:69) @@ -7,7 +7,7 @@ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?) by 0x........: main (tc23_bogus_condwait.c:72) -Not a mutex +Not a mutex: mutex 0x......... at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?) by 0x........: main (tc23_bogus_condwait.c:75) |