Changes in / [281806b6:5ff188f]
- Files:
-
- 12 edited
-
.gitignore (modified) (1 diff)
-
src/tests/preempt_longrun/Makefile.am (modified) (2 diffs)
-
src/tests/preempt_longrun/Makefile.in (modified) (2 diffs)
-
src/tests/preempt_longrun/block.c (modified) (1 diff)
-
src/tests/preempt_longrun/create.c (modified) (1 diff)
-
src/tests/preempt_longrun/disjoint.c (modified) (1 diff)
-
src/tests/preempt_longrun/enter.c (modified) (1 diff)
-
src/tests/preempt_longrun/enter3.c (modified) (1 diff)
-
src/tests/preempt_longrun/processor.c (modified) (1 diff)
-
src/tests/preempt_longrun/stack.c (modified) (1 diff)
-
src/tests/preempt_longrun/wait.c (modified) (1 diff)
-
src/tests/preempt_longrun/yield.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r281806b6 r5ff188f 11 11 /Makefile 12 12 src/**/Makefile 13 tools/**/Makefile14 13 /version 15 14 -
src/tests/preempt_longrun/Makefile.am
r281806b6 r5ff188f 19 19 preempt=1_000ul 20 20 21 REPEAT = ${abs_top_srcdir}/tools/repeat 22 TIME = /usr/bin/time -f "%E" 21 REPEAT = ${abs_top_srcdir}/tools/repeat -s 23 22 24 23 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -debug -O2 -DPREEMPTION_RATE=${preempt} … … 38 37 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} 39 38 40 %.run : % ${REPEAT}41 @ time ${REPEAT} -r out.log -i -s$(repeats) timeout ${max_time} ./${<}39 %.run : % 40 @ time ${REPEAT} $(repeats) timeout ${max_time} ./${<} 42 41 @ rm ${<} 43 42 @ echo -e "${<}: SUCCESS\n" 44 45 %.time : % ${REPEAT}46 @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}47 @ rm ${<}48 @ echo -e "${<}: SUCCESS\n"49 50 ${REPEAT}:51 @+make -C ${abs_top_srcdir}/tools/ -
src/tests/preempt_longrun/Makefile.in
r281806b6 r5ff188f 451 451 max_time = 600 452 452 preempt = 1_000ul 453 REPEAT = ${abs_top_srcdir}/tools/repeat 454 TIME = /usr/bin/time -f "%E" 453 REPEAT = ${abs_top_srcdir}/tools/repeat -s 455 454 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -debug -O2 -DPREEMPTION_RATE=${preempt} 456 455 TESTS = block create disjoint enter enter3 processor stack wait yield … … 875 874 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} 876 875 877 %.run : % ${REPEAT}878 @ time ${REPEAT} -r out.log -i -s$(repeats) timeout ${max_time} ./${<}876 %.run : % 877 @ time ${REPEAT} $(repeats) timeout ${max_time} ./${<} 879 878 @ rm ${<} 880 879 @ echo -e "${<}: SUCCESS\n" 881 882 %.time : % ${REPEAT}883 @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}884 @ rm ${<}885 @ echo -e "${<}: SUCCESS\n"886 887 ${REPEAT}:888 @+make -C ${abs_top_srcdir}/tools/889 880 890 881 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
src/tests/preempt_longrun/block.c
r281806b6 r5ff188f 1 ../ concurrent/signal/block.c1 ../sched-int-block.c -
src/tests/preempt_longrun/create.c
r281806b6 r5ff188f 14 14 thread worker_t {}; 15 15 16 void main(worker_t &this) {}16 void main(worker_t * this) {} 17 17 18 18 int main(int argc, char* argv[]) { -
src/tests/preempt_longrun/disjoint.c
r281806b6 r5ff188f 1 ../ concurrent/signal/disjoint.c1 ../sched-int-disjoint.c -
src/tests/preempt_longrun/enter.c
r281806b6 r5ff188f 17 17 mon_t mon; 18 18 19 void foo( mon_t &mutex this ) {}19 void foo( mon_t * mutex this ) {} 20 20 21 21 thread worker_t {}; 22 22 23 void main( worker_t &this ) {23 void main( worker_t * this ) { 24 24 for( unsigned long i = 0; i < N; i++ ) { 25 foo( mon );25 foo( &mon ); 26 26 } 27 27 } -
src/tests/preempt_longrun/enter3.c
r281806b6 r5ff188f 17 17 mon_t mon1, mon2, mon3; 18 18 19 void foo( mon_t & mutex a, mon_t & mutex b, mon_t &mutex c ) {}19 void foo( mon_t * mutex a, mon_t * mutex b, mon_t * mutex c ) {} 20 20 21 21 thread worker_t {}; 22 22 23 void main( worker_t &this ) {23 void main( worker_t * this ) { 24 24 for( unsigned long i = 0; i < N; i++ ) { 25 foo( mon1, mon2,mon3 );25 foo( &mon1, &mon2, &mon3 ); 26 26 } 27 27 } -
src/tests/preempt_longrun/processor.c
r281806b6 r5ff188f 14 14 thread worker_t {}; 15 15 16 void main(worker_t &this) {}16 void main(worker_t * this) {} 17 17 18 18 int main(int argc, char* argv[]) { -
src/tests/preempt_longrun/stack.c
r281806b6 r5ff188f 14 14 thread worker_t {}; 15 15 16 void main(worker_t &this) {16 void main(worker_t * this) { 17 17 volatile long long p = 5_021_609ul; 18 18 volatile long long a = 326_417ul; -
src/tests/preempt_longrun/wait.c
r281806b6 r5ff188f 1 ../ concurrent/signal/wait.c1 ../sched-int-wait.c -
src/tests/preempt_longrun/yield.c
r281806b6 r5ff188f 14 14 thread worker_t {}; 15 15 16 void main(worker_t &this) {16 void main(worker_t * this) { 17 17 for(int i = 0; i < N; i++) { 18 18 yield();
Note:
See TracChangeset
for help on using the changeset viewer.